[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: |
Sun, 09 Oct 2011 14:57:56 -0400 |
On Oct 9, 2011, at 1:27 PM, Michael Goffioul wrote:
> Hi,
>
> It's now publicly available on github: https://github.com/goffioul/QtHandles
>
> To try it, use qmake (sometimes called qmake-qt4) to generate the Makefile's,
> then compile as usual. Along with __init_qt__.oct, this will also compile
> a tool called "octave-qt" that should be started instead of plain octave.
> This tool is a simple wrapper around octave_main, but run it in a separate
> thread, while creating a regular Qt event loop in the main thread. The main
> reason is Mac OS X: on this platform, the GUI event loop MUST run in the
> main thread, there's no way around that.
>
> Once, you've started octave, you can enable the Qt-backend with:
> graphics_toolkit('qt')
>
> Note that this toolkit requires a current dev version of octave.
>
> Michael.
I've not built an app using Qt previously. When I try to build 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
Maybe I don't have the proper Qt dependencies? ... any suggestions?
Ben
- QtHandles: Qt-based toolkit with uicontrol/uipanel support, Michael Goffioul, 2011/10/09
- Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support, Jordi Gutiérrez Hermoso, 2011/10/09
- Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support,
Ben Abbott <=
- Message not available
- Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support, Michael Goffioul, 2011/10/09
- Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support, John W. Eaton, 2011/10/09
- Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support, Michael Goffioul, 2011/10/09
- Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support, Martin Helm, 2011/10/09
- Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support, Michael Goffioul, 2011/10/10
- Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support, John W. Eaton, 2011/10/10
- Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support, Martin Helm, 2011/10/10
- Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support, Michael Goffioul, 2011/10/10
- Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support, John W. Eaton, 2011/10/10
- Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support, Michael Goffioul, 2011/10/10