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: Martin Helm
Subject: Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support
Date: Mon, 10 Oct 2011 03:06:56 +0200

Am Sonntag, den 09.10.2011, 20:35 -0400 schrieb Ben Abbott: 
> On Oct 9, 2011, at 5:52 PM, Ben Abbott wrote:
> 
> > On Oct 9, 2011, at 3:17 PM, Michael Goffioul wrote:
> > 
> >> On Sun, Oct 9, 2011 at 7:26 PM, Ben Abbott <address@hidden> wrote:
> >>> I've not built an app using Qt previously. When I try to build this on 
> >>> MacOS 10.7.1 ...
> >>> 
> >>> qmake
> >>> make
> >>> cd tool && qmake tool.pro -o Makefile
> >>> cd tool && make -f Makefile
> >>> /Developer/usr/bin/llvm-g++-4.2 -c -pipe -O2 
> >>> -I/opt/local/include/octave-3.5.0+/octave/.. 
> >>> -I/opt/local/include/octave-3.5.0+/octave -I/opt/local/include 
> >>> -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include 
> >>> -I/opt/local/include -pipe -O2 -m64 -Wall -W -g  -D__DARWIN_X11__ 
> >>> -I/opt/local/lib/qt3/mkspecs/default -I. -I/opt/local/lib/qt3/include 
> >>> -I/include -o octave-qt.o octave-qt.cpp
> >>> octave-qt.cpp:22:24: error: QApplication: No such file or directory
> >>> octave-qt.cpp:23:19: error: QThread: No such file or directory
> >>> octave-qt.cpp:31: error: expected class-name before ‘{’ token
> >>> octave-qt.cpp: In member function ‘void OctaveThread::run()’:
> >>> octave-qt.cpp:43: error: ‘QApplication’ has not been declared
> >>> octave-qt.cpp: In function ‘int main(int, char**)’:
> >>> octave-qt.cpp:56: error: ‘QApplication’ was not declared in this scope
> >>> octave-qt.cpp:56: error: expected `;' before ‘app’
> >>> octave-qt.cpp:59: error: ‘app’ was not declared in this scope
> >>> octave-qt.cpp:60: error: ‘class OctaveThread’ has no member named ‘start’
> >>> make[1]: *** [octave-qt.o] Error 1
> >>> make: *** [sub-tool] Error 2
> >>> 
> >>> Do I need to configure something first? ... or maybe I don't have the 
> >>> proper Qt dependencies?
> >> 
> >> From the output above, it seems you're using Qt 3.x, while the code
> >> actually requires
> >> Qt >= 4. I'd recommend using Qt 4.7, which is the version I've developing 
> >> with.
> >> 
> >> Michael.
> > 
> > You are correct. I've installed Qt 4.7.1 and now ....
> > 
> > $ qmake
> > $ make
> > cd tool/ && /opt/local/bin/qmake 
> > /Users/bpabbott/Development/git/QtHandles/tool/tool.pro -o Makefile
> > 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 -g -gdwarf-2 -arch x86_64 -Xarch_x86_64 
> > -mmacosx-version-min=10.7 -Wall -W -DQT_GUI_LIB -DQT_CORE_LIB 
> > -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_debug -lQtCore_debug 
> > ld: library not found for -lQtGui_debug
> > collect2: ld returned 1 exit status
> > make[1]: *** [octave-qt.app/Contents/MacOS/octave-qt] Error 1
> > make: *** [sub-tool-make_default] Error 2
> > 
> > Macports has both qt4-mac and a qt4-mac-devel ports. I installed the 
> > former, but I assume I need the latter?
> > 
> > Ben
> 
> 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.




reply via email to

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