PDA

View Full Version : Installing qwtpolar 1.0 on Linux



ufechner
8th December 2011, 22:15
Hello,

I am trying to install qwtpolar 1.0 on Linux.

I downloaded it, unpacked it in the folder ~/00Software and than tried
to do:

- qmake
- make
- sudo make install

This is the error message I get:


ufechner@uwe-ssd:~/00Software/qwtpolar-1.0.0$ qmake
ufechner@uwe-ssd:~/00Software/qwtpolar-1.0.0$ make
cd src/ && make -f Makefile
make[1]: Betrete Verzeichnis '/home/ufechner/00Software/qwtpolar-1.0.0/src'
compiling qwt_polar_fitter.cpp
In file included from qwt_polar_fitter.cpp:9:0:
qwt_polar_fitter.h:13:30: fatal error: qwt_curve_fitter.h: Datei oder Verzeichnis nicht gefunden
compilation terminated.
make[1]: *** [obj/qwt_polar_fitter.o] Fehler 1
make[1]: Verlasse Verzeichnis '/home/ufechner/00Software/qwtpolar-1.0.0/src'
make: *** [sub-src-make_default-ordered] Fehler 2
ufechner@uwe-ssd:~/00Software/qwtpolar-1.0.0$

I tried to copy all header files from qwt into the src directory. This works, but there must
be a better way. Any idea, how to tell qwtpolar that it can find the qwt header files in
/usr/local/qwt-6.0.1/include/ ?

I tried to add:

INCLUDEPATH += /usr/local/qwt-6.0.1/include/

to qwtpolar.pro, but this didn't help.

I am using Ubuntu 11.04.

Best regards:

Uwe Fechner

Uwe
9th December 2011, 08:11
Should be a problem of your Qwt installation.

In qwtpolarbuild.pri you find the line "CONFIG += qwt" that adds all Qwt related stuff to your Makefile - as long you have configured qmake to find qwt.prf.
Read the Qt docs how to do it - one possible way is: "qmake -set QMAKEFEATURES ..."

Of course your Qwt installation has to be built the regular way - ended with "make install".

Uwe

ufechner
9th December 2011, 15:15
I tried:


export QMAKEFEATURES=/home/ufechner/00Software/qwt-6.0.1
cd ~/00Software/qwt/qwtpolar-1.0.0
qmake
make
Same error message.

What am I doing wrong?

I installed QWT in the way, as it is described on my website:
http://www.kieltech.de/uweswiki/QT-Development/Installation%2C%20using%20QT-Creator%202.2%20and%20QWT%206.0

What is wrong with my approach?

I have a lot of programs, that use QWT and compile fine. I only include:


INCLUDEPATH += /usr/local/qwt-6.0.1/include
LIBS += /usr/local/qwt-6.0.1/lib/libqwt.so.6

in my project file, and that works well.

Only with qwtpolar it doesn't work.

Best regards:

Uwe Fechner

Uwe
9th December 2011, 15:48
export QMAKEFEATURES=/usr/local/qwt-6.0.1/features
This is the path, where qmake is looking for feature ( f.e qwt.prf ) files.


Use "CONFIG += qwt" or "CONFIG += qwtpolar" instead of what is written on your wiki
Don't copy the designer plugin - configure your designer/creator to load the plugin from where it is installed
Better edit /etc/ld.so.conf or use LD_LIBRARY_PATH instead of doing links manually

Uwe

ufechner
9th December 2011, 15:53
Use "CONFIG += qwt" or "CONFIG += qwtpolar" instead of what is written on your wiki

But this doesn't work. And you don't give me any hint, how to make it work.

Uwe
9th December 2011, 16:51
But this doesn't work. And you don't give me any hint, how to make it work.
Come on: I gave you a better path, than the wrong one you have written in your request.

Uwe

PS: better do "qmake -set QMAKEFEATURES ..." instead of setting a environment variable. It does a persistant setting + and you don't have to take care about where you are calling qmake ( f.e when calling the creator from a different shell ).

ufechner
10th December 2011, 10:33
Ok, I typed:

qmake -set QMAKEFEATURES /usr/local/qwt-6.0.1/features
Now I have the following settings:

ufechner@uwe-ssd:~/00Software/qwtpolar-1.0.0$ qmake -query
QMAKEFEATURES:/usr/local/qwt-6.0.1/features
QT_INSTALL_PREFIX:/usr
QT_INSTALL_DATA:/usr/share/qt4
QT_INSTALL_DOCS:/usr/share/qt4/doc
QT_INSTALL_HEADERS:/usr/include/qt4
QT_INSTALL_LIBS:/usr/lib
QT_INSTALL_BINS:/usr/bin
QT_INSTALL_PLUGINS:/usr/lib/qt4/plugins
QT_INSTALL_IMPORTS:/usr/lib/qt4/imports
QT_INSTALL_TRANSLATIONS:/usr/share/qt4/translations
QT_INSTALL_CONFIGURATION:/etc/xdg
QT_INSTALL_EXAMPLES:/usr/lib/qt4/examples
QT_INSTALL_DEMOS:/usr/lib/qt4/demos
QMAKE_MKSPECS:/usr/share/qt4/mkspecs
QMAKE_VERSION:2.01a
QT_VERSION:4.7.2
ufechner@uwe-ssd:~/00Software/qwtpolar-1.0.0$

But I still get the same compilation error for qwtpolar:


ufechner@uwe-ssd:~$ cd 00Software/qwtpolar-1.0.0/
ufechner@uwe-ssd:~/00Software/qwtpolar-1.0.0$ qmake
ufechner@uwe-ssd:~/00Software/qwtpolar-1.0.0$ make
cd src/ && make -f Makefile
make[1]: Betrete Verzeichnis '/home/ufechner/00Software/qwtpolar-1.0.0/src'
compiling qwt_polar_fitter.cpp
In file included from qwt_polar_fitter.cpp:9:0:
qwt_polar_fitter.h:13:30: fatal error: qwt_curve_fitter.h: Datei oder Verzeichnis nicht gefunden
compilation terminated.
make[1]: *** [obj/qwt_polar_fitter.o] Fehler 1
make[1]: Verlasse Verzeichnis '/home/ufechner/00Software/qwtpolar-1.0.0/src'
make: *** [sub-src-make_default-ordered] Fehler 2
ufechner@uwe-ssd:~/00Software/qwtpolar-1.0.0$


My impression is, that qwtpolar 1.0.0 is serverly broken.
Was anybody, who downloaded it able to compile it on Ubuntu Linux?
And if yes, how?

Best regards:

Uwe Fechner

Uwe
11th December 2011, 09:55
Disable the line "CONFIG += silent" in qwtpolarbuild.pri and do a qmake and make. Then you will see the include paths, that are used for building qwtpolar. Check what ( or if no path ) is set for the Qwt headers - something like "-I/.../.../qwt/include". Then check if there is a file "/usr/local/qwt-6.0.1/features/qwt.prf" on your box.

It works like this: in qwtpolarbuild.pri you find the line "CONFIG += qwt". This line has the effect, that qmake tries to locate ( using QMAKEFEATURES ) a file qwt.prf and to process it. The commands from qwt.prf add the paths for finding the includes of the Qwt headers.

a) You don't see qwt.prf ( and another file qwtconfig.pri ) in /usr/local/qwt-6.0.1/features: you have a broken Qwt installation and you have to reinstall Qwt properly.

b) You see a different path as /usr/local/qwt-6.0.1/include when compiling: you have a broken Qwt installation and you have to reinstall Qwt properly.

c) You don't see any qwt include path when compiling: your QMAKEFEATURES line didn't work ( maybe you have different versions of qmake on your box and configured the wrong one ).

Uwe