Results 1 to 2 of 2

Thread: run qwt example in Qt 5 on linux ubuntu

  1. #1
    Join Date
    Jul 2015
    Posts
    8
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default run qwt example in Qt 5 on linux ubuntu

    I cant figure out what i need to do for runing example program which use qwt library. I download the file qwt-6.1.2.tar.bz2 from here as usual it goes to Download Direcory and i extract the file to this directory. I have now qwt-6.1.2 directory in Downloads directory.

    The qt directory in my machine located in /opt/Qt5.4.1/

    How i continue from here ??

    I try to run qmake :

    natile@natile-Precision-T1650:/opt/Qt5.4.1/5.4/gcc_64/bin$ sudo ./qmake /home/natile/Downloads/qwt-6.1.2/qwt.pro

    And after i ran make :

    natile@natile-Precision-T1650:/opt/Qt5.4.1/5.4/gcc_64/bin$ sudo make

    but i get an error:

    cd src/ && ( test -e Makefile || /opt/Qt5.4.1/5.4/gcc_64/bin/qmake /home/natile/Downloads/qwt-6.1.2/src/src.pro -o Makefile ) && make -f Makefile make1: Entering directory /opt/Qt5.4.1/5.4/gcc_64/bin/src'
    compiling /home/natile/qtcreator-projects/qwt/qwt-5.2/src/qwt_abstract_scale_draw.cpp
    In file included from /home/natile/qtcreator-projects/qwt/qwt-5.2/src/qwt_abstract_scale_draw.cpp:19:0:
    /home/natile/qtcreator-projects/qwt/qwt-5.2/src/qwt_scale_map.h:92:5: error: ‘QT_STATIC_CONST’ does not name a type
    /home/natile/qtcreator-projects/qwt/qwt-5.2/src/qwt_scale_map.h:93:5: error: ‘QT_STATIC_CONST’ does not name a type
    make[1]: *** [obj/qwt_abstract_scale_draw.o] Error 1
    make[1]: Leaving directory/opt/Qt5.4.1/5.4/gcc_64/bin/src' make: *** [sub-src-make_first-ordered] Error 2

    I understand that i have to run qmake

    I get nothing in the installation url : http://qwt.sourceforge.net/qwtinstall.html

    Please help.

  2. #2
    Join Date
    Oct 2013
    Posts
    102
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: run qwt example in Qt 5 on linux ubuntu

    I'm not able to help much, but anyway...I had similar problems when trying to build qwt library from source. I've buid it ok with mingw compiler, while with msvc I wasn't able to. So my best guess is, that compilers have subtle diferences and kind of preferences with code syntax. On qwt site, if I remember wll, you have different sources available (probalby meant for different compilers, but I'm not sure). You could also try a differnet compiler instead of gcc.

Similar Threads

  1. QtService on Ubuntu/Linux
    By mentalmushroom in forum Qt Programming
    Replies: 5
    Last Post: 11th April 2014, 13:48
  2. qt creator and linux ubuntu
    By giugio in forum Qt Programming
    Replies: 2
    Last Post: 21st August 2013, 13:30
  3. Replies: 6
    Last Post: 9th May 2012, 11:53
  4. Can't Compile on Ubuntu Linux
    By mpauley in forum Newbie
    Replies: 6
    Last Post: 9th April 2010, 23:00
  5. Replies: 10
    Last Post: 13th November 2009, 20:31

Tags for this Thread

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.