[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 20:35:49 -0400 |
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
- Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support, (continued)
- Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support, Michael Goffioul, 2011/10/12
- Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support, Michael Goffioul, 2011/10/12
- Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support, J. Luis, 2011/10/12
- Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support, Joaquim Luis, 2011/10/12
- Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support, Michael Goffioul, 2011/10/12
- Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support, J. Luis, 2011/10/12
- Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support, Michael Goffioul, 2011/10/12
- Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support, J. Luis, 2011/10/12
- Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support, Kai Habel, 2011/10/13
- Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support, Ben Abbott, 2011/10/09
- Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support,
Ben Abbott <=
- 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, Ben Abbott, 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, Ben Abbott, 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, bpabbott, 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, Jordi Gutiérrez Hermoso, 2011/10/10