PDA

View Full Version : Qwt 6.0 compilation fails on Mac OSX 10.7.1 with Qt SDK 1.1.3 (Qt 4.7.4)



mpita
3rd October 2011, 14:40
Hello,

when trying to build Qwt 6.0 on Mac OSX 10.7.1 with Qt SDK 1.1.3 (Qt 4.7.4) compilation fails with this error



[...]
qwt_mml_document.cpp: In member function ‘void QwtMmlDocument::_dump(const QwtMmlNode*, QString&) const’:
qwt_mml_document.cpp:3125: warning: format not a string literal and no format arguments
qwt_mml_document.cpp: In member function ‘virtual int QwtMmlNode::scriptlevel(const QwtMmlNode*) const’:
qwt_mml_document.cpp:3705: warning: format not a string literal and no format arguments
qwt_mml_document.cpp:3722: warning: format not a string literal and no format arguments
qwt_mml_document.cpp: In function ‘QString decodeEntityValue(QString)’:
qwt_mml_document.cpp:5640: warning: format not a string literal and no format arguments
qwt_mml_document.cpp:5649: warning: format not a string literal and no format arguments
qwt_mml_document.cpp:5658: warning: format not a string literal and no format arguments
qwt_mml_document.cpp:5669: warning: format not a string literal and no format arguments
qwt_mml_document.cpp:5680: warning: format not a string literal and no format arguments
rm -f qwtmathml_debug qwtmathml.framework/qwtmathml_debug ../../lib/qwtmathml.framework/qwtmathml_debug
linking ../../lib/qwtmathml.framework/qwtmathml_debug
ld: framework not found qwt
collect2: ld returned 1 exit status
make[2]: *** [../../lib/qwtmathml.framework/qwtmathml_debug] Error 1
make[1]: *** [sub-mathml-make_default] Error 2
make: *** [sub-textengines-make_default-ordered] Error 2

I followed the both building instruction specified by INSTALL file:



qmake
make


and



qmake -spec macx-g++
make


The error is similar to an already reported (and fixed) bug

http://sourceforge.net/tracker/?func=detail&aid=3086657&group_id=13693&atid=113693

It's my first time in compiling third parts libraries on an Mac arch.

Thanks in advance for your help,

Marco

P.S. I've tried to compile the development snapshot version too

[edited:]

Searching on bug tracker I've found another user who has the same issue

http://sourceforge.net/tracker/?func=detail&aid=3398035&group_id=13693&atid=113693

mpita
4th October 2011, 08:15
I've done some tries yesterday and I get it "works", or, at least, install, acting on qwtconfig.pri:

- Qwt library (framework) compiles successfully;
- QwtMathML compiles successfully with some already known warnings, but at linking time ld fails to find the Qwt framework;
- Disabling QwtMathML compilation, the story will repeat again when the Qwt Qt Designer plugin is linking;
- Finally, disabling the QwtDesigner compilation, i can reach the end and launch "make install" which, now, installs only the Qwt framework.

Thanks,

Marco

willodotcom
13th December 2011, 16:44
Hi Marco,

Sorry for reviving a (two month) old thread, but I had the exactly the same problem as you on OSX. I fixed it by setting the CONFIG variable to 'release' in the qwtbuild.pri file. That allows all the plugins to be compiled as well. Hope this helps!

Cheers,

Chris.