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: Michael Goffioul
Subject: Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support
Date: Sun, 9 Oct 2011 20:17:48 +0100

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.


>
> Ben


reply via email to

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