Hi all,
I didn't get any response on the qwt mailing list, so maybe there's some help in here:
I have to port an existing project to OSX but have to admit that I am not at all an expert on OSX.
I have OSX 10.6 on a Macbook pro and tried to compile qwt with the examples.
The steps I did
- Install the Qt SDK with 4.7.4
- Download qwt-6.0 from svn
- In QtCreator: Create project for debug and release for every Qt version
- Compile the release version with QtCreator (src compiled, examples didn't)
- from console: make install
Now, I have the framework in /usr/local/qwt-6.0.2-svn and also the prf and pri files in features
Also, this is in the source/lib directory of the downloaded qwt.
Unfortunately, the examples don't compile. The framework is not found. What I additionally did, then is to add
LIBS += -F$${QWT_ROOT}/lib
qtAddLibrary(qwt)
LIBS += -F$${QWT_ROOT}/lib
qtAddLibrary(qwt)
To copy to clipboard, switch view to plain text mode
in the examples.pro file. This may explain a part of the output that I get from compiling
make: Entering directory `/Users/rthaden/src/qwt-build-desktop-Desktop_Qt_4_7_4_for_GCC__Qt_SDK__Release/examples'
cd cpuplot/ && /usr/bin/make -f Makefile
make[1]: Entering directory `/Users/rthaden/src/qwt-build-desktop-Desktop_Qt_4_7_4_for_GCC__Qt_SDK__Release/examples/cpuplot'
g++-4.2 -headerpad_max_install_names -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -o ../../../qwt-6.0/examples/bin/cpuplot.app/Contents/MacOS/cpuplot obj/cpuplot.o obj/cpustat.o obj/cpupiemarker.o obj/moc_cpuplot.o -F/Users/rthaden/QtSDK/Desktop/Qt/474/gcc/lib -L/Users/rthaden/QtSDK/Desktop/Qt/474/gcc/lib -F/Users/rthaden/src/qwt-6.0/examples/../lib -framework qwt -framework QtGui -framework QtCore
ld: framework not found qwt
collect2: ld returned 1 exit status
make[1]: *** [../../../qwt-6.0/examples/bin/cpuplot.app/Contents/MacOS/cpuplot] Error 1
make[1]: Leaving directory `/Users/rthaden/src/qwt-build-desktop-Desktop_Qt_4_7_4_for_GCC__Qt_SDK__Release/examples/cpuplot'
make: *** [sub-cpuplot-make_default] Error 2
make: Leaving directory `/Users/rthaden/src/qwt-build-desktop-Desktop_Qt_4_7_4_for_GCC__Qt_SDK__Release/examples'
10:12:51: Der Prozess "/usr/bin/make" wurde mit dem Rückgabewert 2 beendet.
Fehler beim Erstellen des Projekts qwt(Ziel: Desktop)
Bei der Ausführung von Build-Schritt 'Make'
make: Entering directory `/Users/rthaden/src/qwt-build-desktop-Desktop_Qt_4_7_4_for_GCC__Qt_SDK__Release/examples'
cd cpuplot/ && /usr/bin/make -f Makefile
make[1]: Entering directory `/Users/rthaden/src/qwt-build-desktop-Desktop_Qt_4_7_4_for_GCC__Qt_SDK__Release/examples/cpuplot'
g++-4.2 -headerpad_max_install_names -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -o ../../../qwt-6.0/examples/bin/cpuplot.app/Contents/MacOS/cpuplot obj/cpuplot.o obj/cpustat.o obj/cpupiemarker.o obj/moc_cpuplot.o -F/Users/rthaden/QtSDK/Desktop/Qt/474/gcc/lib -L/Users/rthaden/QtSDK/Desktop/Qt/474/gcc/lib -F/Users/rthaden/src/qwt-6.0/examples/../lib -framework qwt -framework QtGui -framework QtCore
ld: framework not found qwt
collect2: ld returned 1 exit status
make[1]: *** [../../../qwt-6.0/examples/bin/cpuplot.app/Contents/MacOS/cpuplot] Error 1
make[1]: Leaving directory `/Users/rthaden/src/qwt-build-desktop-Desktop_Qt_4_7_4_for_GCC__Qt_SDK__Release/examples/cpuplot'
make: *** [sub-cpuplot-make_default] Error 2
make: Leaving directory `/Users/rthaden/src/qwt-build-desktop-Desktop_Qt_4_7_4_for_GCC__Qt_SDK__Release/examples'
10:12:51: Der Prozess "/usr/bin/make" wurde mit dem Rückgabewert 2 beendet.
Fehler beim Erstellen des Projekts qwt(Ziel: Desktop)
Bei der Ausführung von Build-Schritt 'Make'
To copy to clipboard, switch view to plain text mode
I added a message command to see the CONFIG and QWT_CONFIG defines in the project:
Project MESSAGE: lex yacc warn_on debug uic resources sdk rez qt warn_on release app_bundle incremental global_init_link_order lib_version_first plugin_no_soname link_prl def_files_disabled exceptions no_mocdepend debug stl qt_framework x86_64 release
Project MESSAGE
: QwtDll
QwtPlot QwtWidgets QwtExamples QwtFramework
Project MESSAGE: lex yacc warn_on debug uic resources sdk rez qt warn_on release app_bundle incremental global_init_link_order lib_version_first plugin_no_soname link_prl def_files_disabled exceptions no_mocdepend debug stl qt_framework x86_64 release
Project MESSAGE: QwtDll QwtPlot QwtWidgets QwtExamples QwtFramework
To copy to clipboard, switch view to plain text mode
Any ideas what's wrong?
--
Thanks in advance,
Rainer
Bookmarks