[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support
From: |
John W. Eaton |
Subject: |
Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support |
Date: |
Sun, 9 Oct 2011 15:43:19 -0400 |
On 9-Oct-2011, 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.
I see the following when I try to build on Debian testing, amd64, with
Qt 4.7 libraries:
$ qmake
$ make
cd tool/ && /usr/bin/qmake /tmp/QtHandles/tool/tool.pro -o Makefile
cd tool/ && make -f Makefile
make[1]: Entering directory `/tmp/QtHandles/tool'
g++ -c -m64 -pipe -I/usr/local/octave/dev/include/octave-3.5.0+/octave/..
-I/usr/local/octave/dev/include/octave-3.5.0+/octave
-I/usr/local/octave/dev/include -I/usr/include/freetype2 -ggdb3 -g -Wall -W
-D_REENTRANT -DQT_WEBKIT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore
-I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -o octave-qt.o octave-qt.cpp
g++ -m64 -o octave-qt octave-qt.o -L/usr/local/octave/dev/lib/octave/3.5.0+
-L/usr/lib -loctinterp -loctave -lcruft -lQtGui -lQtCore -lpthread
cp -f octave-qt ../octave-qt
make[1]: Leaving directory `/tmp/QtHandles/tool'
cd src/ && /usr/bin/qmake /tmp/QtHandles/src/src.pro -o Makefile
cd src/ && make -f Makefile
make[1]: Entering directory `/tmp/QtHandles/src'
g++ -c -m64 -pipe -I/usr/local/octave/dev/include/octave-3.5.0+/octave/..
-I/usr/local/octave/dev/include/octave-3.5.0+/octave
-I/usr/local/octave/dev/include -I/usr/include/freetype2 -ggdb3 -g -Wall -W
-D_REENTRANT -fPIC -DQT_WEBKIT -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB
-DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore
-I/usr/include/qt4/QtGui -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4
-I/usr/X11R6/include -I. -o __init_qt__.o __init_qt__.cpp
g++ -c -m64 -pipe -I/usr/local/octave/dev/include/octave-3.5.0+/octave/..
-I/usr/local/octave/dev/include/octave-3.5.0+/octave
-I/usr/local/octave/dev/include -I/usr/include/freetype2 -ggdb3 -g -Wall -W
-D_REENTRANT -fPIC -DQT_WEBKIT -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB
-DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore
-I/usr/include/qt4/QtGui -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4
-I/usr/X11R6/include -I. -o Backend.o Backend.cpp
Backend.cpp: In member function ‘virtual bool
QtHandles::Backend::initialize(const graphics_object&)’:
Backend.cpp:85:56: warning: format ‘%x’ expects argument of type ‘unsigned
int’, but argument 3 has type ‘Qt::HANDLE {aka long unsigned int}’ [-Wformat]
Backend.cpp:91:44: error: cast from ‘QtHandles::ObjectProxy*’ to ‘uint32_t {aka
unsigned int}’ loses precision [-fpermissive]
Backend.cpp: In member function ‘virtual void QtHandles::Backend::update(const
graphics_object&, int)’:
Backend.cpp:113:57: warning: format ‘%x’ expects argument of type ‘unsigned
int’, but argument 4 has type ‘Qt::HANDLE {aka long unsigned int}’ [-Wformat]
Backend.cpp: In member function ‘virtual void
QtHandles::Backend::finalize(const graphics_object&)’:
Backend.cpp:138:52: warning: format ‘%x’ expects argument of type ‘unsigned
int’, but argument 3 has type ‘Qt::HANDLE {aka long unsigned int}’ [-Wformat]
make[1]: *** [Backend.o] Error 1
make[1]: Leaving directory `/tmp/QtHandles/src'
make: *** [sub-src-make_default] Error 2
jwe
- 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, 2011/10/09
- 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 <=
- 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
- Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support, Martin Helm, 2011/10/10
- Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support, Kai Habel, 2011/10/11