octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support


From: Ben Abbott
Subject: Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support
Date: Mon, 10 Oct 2011 08:21:45 -0400

On Oct 10, 2011, at 2:52 AM, Michael Goffioul wrote:

> On Mon, Oct 10, 2011 at 2:06 AM, Martin Helm <address@hidden> wrote:
>>> I tried both qt4-mac and qt4-mac-devel, and encountered the same error each 
>>> time.  I checked for the libs, but they are not part of my install.
>>> 
>>> $ ls -1 /opt/local/lib/libQt*debug*
>>> /opt/local/lib/libQtUiTools_debug.a
>>> /opt/local/lib/libQtUiTools_debug.prl
>>> 
>>> My Qt version is 4.7.4.
>>> 
>>> Ben
>>> 
>> 
>> This link seems to indicate that there are problems in using qt debug
>> libraries on some MacOS versions
>> http://developer.qt.nokia.com/wiki/Mac_OS_X_Troubleshooting
>> and suggests to use the release libraries by copying them to the
>> corresponding _debug name.
> 
> That, or simple don't compile with debug. Edit common.pri at toplevel
> and replace the line:
> 
> !win32:CONFIG += debug
> 
> with:
> 
> !win32:CONFIG += release
> 
> Then re-run qmake and try to compile again.
> 
> Michael.

Ok. Now I'm one step closer :-)

I had to run "make" twice. The first time, I got an error complaining that the 
directory QtHandles/octave-qt.app/Contents/MacOS/octave-q does not exist. I 
didn't create this directory structure, and it still is not there, but when I 
ran make the second time, I got no error.  So the part of tools/Makefile below 
doesn't work for me.

        @$(CHK_DIR_EXISTS) octave-qt.app/Contents/MacOS/ || $(MKDIR) 
octave-qt.app/Contents/MacOS/ 

In any event, with the second make, I see ...

$ qmake
$ make
cd tool/ && make -f Makefile 
/Developer/usr/bin/llvm-g++-4.2 -c -pipe 
-I/opt/local/include/octave-3.5.0+/octave/.. 
-I/opt/local/include/octave-3.5.0+/octave -I/opt/local/include/freetype2 -pipe 
-O2 -m64 -O2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.7 -Wall -W 
-DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED 
-I/opt/local/share/qt4/mkspecs/macx-g++ -I. -I. -I/opt/local/include/QtGui 
-I/opt/local/include/QtCore -I/opt/local/include -o octave-qt.o octave-qt.cpp
/Developer/usr/bin/llvm-g++-4.2 -headerpad_max_install_names -arch x86_64 
-Xarch_x86_64 -mmacosx-version-min=10.7 -o 
octave-qt.app/Contents/MacOS/octave-qt octave-qt.o    
-L/opt/local/lib/octave/3.5.0+ -loctinterp -loctave -lcruft -L/opt/local/lib 
-lQtGui -lQtCore 
cp -f octave-qt.app/Contents/MacOS/octave-qt 
../octave-qt.app/Contents/MacOS/octave-qt
cp: ../octave-qt.app/Contents/MacOS/octave-qt: No such file or directory
make[1]: *** [octave-qt.app/Contents/MacOS/octave-qt] Error 1
make: *** [sub-tool-make_default] Error 2
Bens-MacBook-Pro:QtHandles bpabbott$ make
cd tool/ && make -f Makefile 
make[1]: Nothing to be done for `first'.
cd src/ && make -f Makefile 
/Developer/usr/bin/llvm-g++-4.2 -c -pipe 
-I/opt/local/include/octave-3.5.0+/octave/.. 
-I/opt/local/include/octave-3.5.0+/octave -I/opt/local/include/freetype2 -pipe 
-O2 -m64 -O2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.7 -Wall -W 
-fPIC -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED 
-I/opt/local/share/qt4/mkspecs/macx-g++ -I. -I. -I/opt/local/include/QtOpenGL 
-I/opt/local/include/QtGui -I/opt/local/include/QtCore -I/opt/local/include 
-I/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers 
-I/System/Library/Frameworks/AGL.framework/Headers -o __init_qt__.o 
__init_qt__.cpp
In file included from __init_qt__.cpp:30:
Backend.h:58: error: conflicting return type specified for ‘virtual bool 
QtHandles::Backend::initialize(const graphics_object&)’
/opt/local/include/octave-3.5.0+/octave/../octave/graphics.h:2033: error:   
overriding ‘virtual void base_graphics_toolkit::initialize(const 
graphics_object&)’
__init_qt__.cpp: In function ‘bool QtHandles::__init__()’:
__init_qt__.cpp:52: error: ‘enable_event_processing’ is not a member of 
‘gh_manager’
__init_qt__.cpp: In function ‘bool QtHandles::__shutdown__()’:
__init_qt__.cpp:103: error: ‘enable_event_processing’ is not a member of 
‘gh_manager’
make[1]: *** [__init_qt__.o] Error 1
make: *** [sub-src-make_default] Error 2

Ben



reply via email to

[Prev in Thread] Current Thread [Next in Thread]