Qwt 6.0.2 on Mac OS X
-
I'm trying to compile qwt under mac os x with these steps:
qmake -spec macx-g++ qwt.pro
qmake
but is impossible. I obtain this error:@linking ../../lib/qwtmathml.framework/qwtmathml
ld: library not found for -lqwt
collect2: ld returned 1 exit status
make[2]: *** [../../lib/qwtmathml.framework/qwtmathml] Error 1
make[1]: *** [sub-mathml-make_default] Error 2
make: *** [sub-textengines-make_default-ordered] Error 2
Mac-Pro-di-Denis:qwt-6.0.2 denis$ cd
Mac-Pro-di-Denis:~ denis$ @or using qtcreator
@:-1: error: library not found for -lqwt
:-1: error: collect2: ld returned 1 exit status@Can you help me?
-
mrdebug already solved this problem?
If you have already solved, could share?
-
The messages above look like a classical lib path problem.
Check out qwt.pro file for "LIBS" parameter. The parameter description for "LIBS":http://qt-project.org/doc/qt-4.8/qmake-variable-reference.html#libs
The most common problem is that there are two parameter possibilities "-L" and "-l". So basically upper and lower case letters. With "-L" you specify path and with "-l" you specify the lib. Check out if the lib is where it is supposed to be and check its name. Then you should adjust the .pro file accordingly. -
qwt.pro and qwtconfig.pri of version 6.2 seems to be equals of version 6.1.
I confirm that I can compile and use the 6.2 version on Windows and Linux but not on Mac OSX. On MacOSX I use 6.1 because is impossible to compile it. -
mrdebug, how did you compile QWT 6.1 on Mac OS X? I'm trying to compile and gives the same error ...
I'm using Qt5 and Mountain Lion.
[quote author="mrdebug" date="1355675946"]I'm trying to compile qwt under mac os x with these steps:
qmake -spec macx-g++ qwt.pro
qmake
but is impossible. I obtain this error:@linking ../../lib/qwtmathml.framework/qwtmathml
ld: library not found for -lqwt
collect2: ld returned 1 exit status
make[2]: *** [../../lib/qwtmathml.framework/qwtmathml] Error 1
make[1]: *** [sub-mathml-make_default] Error 2
make: *** [sub-textengines-make_default-ordered] Error 2
Mac-Pro-di-Denis:qwt-6.0.2 denis$ cd
Mac-Pro-di-Denis:~ denis$ @or using qtcreator
@:-1: error: library not found for -lqwt
:-1: error: collect2: ld returned 1 exit status@Can you help me?[/quote]
-
I don't know. I haven't obtained errors with 6.1. Are you sure you haven't run make install with a old version?