Results 1 to 4 of 4

Thread: Error building qwt 6.1.0 with qmake 3.0

  1. #1
    Join Date
    May 2014
    Posts
    4
    Qt products
    Qt5
    Platforms
    Unix/X11

    Question Error building qwt 6.1.0 with qmake 3.0

    My Aim = qt on raspberry-pi
    So far qt is running on the target OK, both widgets and qml
    Now trying to add qwt to the mix

    Ubuntu 12.04
    Qt 5.3.0
    qwt 6.0.1 - no changes to .pri .pro

    QMake version 2.01a - Using Qt version 4.8.1 in /usr/lib/i386-linux-gnu
    .... OR ...
    QMake version 3.0 - Using Qt version 5.3.0 in /mnt/rasp-pi-rootfs/usr/local/qt5pi/lib

    qmake 3.0 runs OK, but the following 'make' gives this error:

    ......
    cd designer/ && ( test -e Makefile || /usr/local/qt5pi/bin/qmake /home/mike/pi/qwt6/qwt-6.1.0/designer/designer.pro -o Makefile ) && make -f Makefile
    Project ERROR: Unknown module(s) in QT: designer
    make: *** [sub-designer-make_first-ordered] Error 3
    mike@i5:~/pi/qwt6/qwt-6.1.0$

    Using qmake 2.01a completes 'qmake', 'make' and 'make install' successfully

    I have seen that when using qmake 3.0 there is no Makefile or .pro file in the 'designer' directory, the correct files are however in 'src', 'textengines' etc.

    I'm stumped, any help welcomed!

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

    Default Re: Error building qwt 6.1.0 with qmake 3.0

    Looks like your Qt version has been built without the designer module ( what wouldn't make much sense as long as you don't plan to run the creator/designer on the pi ).
    Edit qwtconfig.pri and disable the QwtDesigner option.

    Uwe

  3. #3
    Join Date
    May 2014
    Posts
    4
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default Re: Error building qwt 6.1.0 with qmake 3.0

    Thanks, Uwe.

    After much searching, seems that when I cloned the qt5 git, I got some version without the designer module. This module *seems* to be under qttools. I'm going to re-build the entire thing using qt 5.2.x which is stable, instead of qt 5.3.0 which is still in beta. I will not use the pi to run creator or designer, it's too slow. These will run on the host, and the generated app will run on the pi. Therefore I need libqwt_designer_plugin.so to enable the qt creator on the host to see the qwt widgets.

    I'll post the results in case someone else has the same problem

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

    Default Re: Error building qwt 6.1.0 with qmake 3.0

    Quote Originally Posted by MadMike View Post
    I will not use the pi to run creator or designer, it's too slow. These will run on the host, and the generated app will run on the pi. Therefore I need libqwt_designer_plugin.so to enable the qt creator on the host to see the qwt widgets.
    Then you have to build qwt twice:

    One for the desktop ( including the designer plugin ) compatible with the Qt version that was used for building the creator ( probably i386 and not Qt 5.3 ! ) and another one for cross compiling ( Qt 5.3 arm - without the designer plugin ).

    Uwe

Similar Threads

  1. building non-qt project with qmake
    By sajis997 in forum Newbie
    Replies: 1
    Last Post: 23rd February 2013, 13:28
  2. using qmake for building app which requires non-qt libs.
    By coding_neo in forum Qt Programming
    Replies: 1
    Last Post: 4th October 2011, 11:37
  3. building only qmake?
    By akos.maroy in forum Qt Tools
    Replies: 4
    Last Post: 27th November 2009, 00:58
  4. Building documentation with qmake
    By nurtsi in forum Installation and Deployment
    Replies: 3
    Last Post: 27th April 2008, 20:58
  5. Building a library with qmake
    By wallyqt in forum Qt Programming
    Replies: 3
    Last Post: 22nd November 2007, 14:17

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.