Results 1 to 8 of 8

Thread: Installing qwtpolar 1.0 on Linux

  1. #1
    Join Date
    Jun 2011
    Location
    Delft, Netherlands
    Posts
    11
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Installing qwtpolar 1.0 on Linux

    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:
    Qt Code:
    1. - qmake
    2. - make
    3. - sudo make install
    To copy to clipboard, switch view to plain text mode 

    This is the error message I get:

    Qt Code:
    1. ufechner@uwe-ssd:~/00Software/qwtpolar-1.0.0$ qmake
    2. ufechner@uwe-ssd:~/00Software/qwtpolar-1.0.0$ make
    3. cd src/ && make -f Makefile
    4. make[1]: Betrete Verzeichnis '/home/ufechner/00Software/qwtpolar-1.0.0/src'
    5. compiling qwt_polar_fitter.cpp
    6. In file included from qwt_polar_fitter.cpp:9:0:
    7. qwt_polar_fitter.h:13:30: fatal error: qwt_curve_fitter.h: Datei oder Verzeichnis nicht gefunden
    8. compilation terminated.
    9. make[1]: *** [obj/qwt_polar_fitter.o] Fehler 1
    10. make[1]: Verlasse Verzeichnis '/home/ufechner/00Software/qwtpolar-1.0.0/src'
    11. make: *** [sub-src-make_default-ordered] Fehler 2
    12. ufechner@uwe-ssd:~/00Software/qwtpolar-1.0.0$
    To copy to clipboard, switch view to plain text mode 

    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:
    Qt Code:
    1. INCLUDEPATH += /usr/local/qwt-6.0.1/include/
    To copy to clipboard, switch view to plain text mode 

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

    I am using Ubuntu 11.04.

    Best regards:

    Uwe Fechner
    Last edited by ufechner; 8th December 2011 at 23:13.

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,312
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Installing qwtpolar 1.0 on Linux

    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

  3. #3
    Join Date
    Jun 2011
    Location
    Delft, Netherlands
    Posts
    11
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Installing qwtpolar 1.0 on Linux

    I tried:
    Qt Code:
    1. export QMAKEFEATURES=/home/ufechner/00Software/qwt-6.0.1
    2. cd ~/00Software/qwt/qwtpolar-1.0.0
    3. qmake
    4. make
    To copy to clipboard, switch view to plain text mode 
    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-D...nd%20QWT%206.0

    What is wrong with my approach?

    I have a lot of programs, that use QWT and compile fine. I only include:
    Qt Code:
    1. INCLUDEPATH += /usr/local/qwt-6.0.1/include
    2. LIBS += /usr/local/qwt-6.0.1/lib/libqwt.so.6
    To copy to clipboard, switch view to plain text mode 
    in my project file, and that works well.

    Only with qwtpolar it doesn't work.

    Best regards:

    Uwe Fechner

  4. #4
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,312
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Installing qwtpolar 1.0 on Linux

    Qt Code:
    1. export QMAKEFEATURES=/usr/local/qwt-6.0.1/features
    To copy to clipboard, switch view to plain text mode 
    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

  5. #5
    Join Date
    Jun 2011
    Location
    Delft, Netherlands
    Posts
    11
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Installing qwtpolar 1.0 on Linux

    Quote Originally Posted by Uwe View Post
    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.

  6. #6
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,312
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Installing qwtpolar 1.0 on Linux

    Quote Originally Posted by ufechner View Post
    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 ).

  7. #7
    Join Date
    Jun 2011
    Location
    Delft, Netherlands
    Posts
    11
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Installing qwtpolar 1.0 on Linux

    Ok, I typed:
    Qt Code:
    1. qmake -set QMAKEFEATURES /usr/local/qwt-6.0.1/features
    To copy to clipboard, switch view to plain text mode 
    Now I have the following settings:
    Qt Code:
    1. ufechner@uwe-ssd:~/00Software/qwtpolar-1.0.0$ qmake -query
    2. QMAKEFEATURES:/usr/local/qwt-6.0.1/features
    3. QT_INSTALL_PREFIX:/usr
    4. QT_INSTALL_DATA:/usr/share/qt4
    5. QT_INSTALL_DOCS:/usr/share/qt4/doc
    6. QT_INSTALL_HEADERS:/usr/include/qt4
    7. QT_INSTALL_LIBS:/usr/lib
    8. QT_INSTALL_BINS:/usr/bin
    9. QT_INSTALL_PLUGINS:/usr/lib/qt4/plugins
    10. QT_INSTALL_IMPORTS:/usr/lib/qt4/imports
    11. QT_INSTALL_TRANSLATIONS:/usr/share/qt4/translations
    12. QT_INSTALL_CONFIGURATION:/etc/xdg
    13. QT_INSTALL_EXAMPLES:/usr/lib/qt4/examples
    14. QT_INSTALL_DEMOS:/usr/lib/qt4/demos
    15. QMAKE_MKSPECS:/usr/share/qt4/mkspecs
    16. QMAKE_VERSION:2.01a
    17. QT_VERSION:4.7.2
    18. ufechner@uwe-ssd:~/00Software/qwtpolar-1.0.0$
    To copy to clipboard, switch view to plain text mode 

    But I still get the same compilation error for qwtpolar:
    Qt Code:
    1. ufechner@uwe-ssd:~$ cd 00Software/qwtpolar-1.0.0/
    2. ufechner@uwe-ssd:~/00Software/qwtpolar-1.0.0$ qmake
    3. ufechner@uwe-ssd:~/00Software/qwtpolar-1.0.0$ make
    4. cd src/ && make -f Makefile
    5. make[1]: Betrete Verzeichnis '/home/ufechner/00Software/qwtpolar-1.0.0/src'
    6. compiling qwt_polar_fitter.cpp
    7. In file included from qwt_polar_fitter.cpp:9:0:
    8. qwt_polar_fitter.h:13:30: fatal error: qwt_curve_fitter.h: Datei oder Verzeichnis nicht gefunden
    9. compilation terminated.
    10. make[1]: *** [obj/qwt_polar_fitter.o] Fehler 1
    11. make[1]: Verlasse Verzeichnis '/home/ufechner/00Software/qwtpolar-1.0.0/src'
    12. make: *** [sub-src-make_default-ordered] Fehler 2
    13. ufechner@uwe-ssd:~/00Software/qwtpolar-1.0.0$
    To copy to clipboard, switch view to plain text mode 

    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

  8. #8
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,312
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Installing qwtpolar 1.0 on Linux

    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
    Last edited by Uwe; 11th December 2011 at 10:07.

Similar Threads

  1. Installing Qt SDK 1.1 on Linux Cent OS 5.5
    By ThomasKennedy in forum Installation and Deployment
    Replies: 1
    Last Post: 2nd November 2012, 21:28
  2. Replies: 6
    Last Post: 29th September 2011, 15:10
  3. problem installing qwt 5.1.1 on linux for ARM
    By raman_31181 in forum Qwt
    Replies: 4
    Last Post: 18th August 2010, 14:51
  4. problem Qt installing in Linux
    By addu in forum Qt Programming
    Replies: 10
    Last Post: 21st October 2009, 14:02
  5. Installing on Linux with gcc
    By BSchow in forum Installation and Deployment
    Replies: 2
    Last Post: 26th August 2008, 20:27

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.