Results 1 to 8 of 8

Thread: make fails when installing on Beaglebone Black

  1. #1
    Join Date
    Feb 2016
    Posts
    8
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11

    Default make fails when installing on Beaglebone Black

    I have Qt Creator 3.2.1 (based on Qt 5.3.2 - GCC 4.9.1, 32 bit) installed and running on my Beaglebone black. It's running Debian 8 kernel 4.1.17-bone19 which runs the libpruio library nicely. I can compile and run Qt programs no problem. I want to install Qwt 6.1.2. I have already installed libqwt6 using apt-get. I downloaded Qwt 6.1.2, unpacked it, did a qmake5 and it made the makefile. When I run make I get this error:
    Qt Code:
    1. Project ERROR: Unknown module(s) in QT: designer
    2. Makefile:170: recipe for target 'sub-designer-make_first-ordered' failed
    3. make: *** [sub-designer-make_first-ordered] Error 3
    To copy to clipboard, switch view to plain text mode 
    I made the makefile verbose and this is what it choked on:
    Qt Code:
    1. cd designer/ && ( test -e Makefile || /usr/lib/arm-gnueabihf/qt5/bin/qmake /home/debian/Downloads/untard/qwt-6.1.2/designer/designer.pro -o Makefile ) && make -f Makefile
    To copy to clipboard, switch view to plain text mode 

    My suspicion is that it's a path problem. My version of Qt doesn't use Qt designer, it's all rolled into Qt Creator, could that be it? Thanks for making such a great bunch of widgets, it's long overdue that that Qwt get rolled into Qt and the default install.

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

    Default Re: make fails when installing on Beaglebone Black

    As your Qt version has been built without the designer module you also have to disable "QWT_CONFIG += QwtDesigner" in qwtconfig.pri.

    Uwe

  3. #3
    Join Date
    Feb 2016
    Posts
    8
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: make fails when installing on Beaglebone Black

    Hey that worked great. Make and make install proceeded and finished without problem. But I still don't see any widgets on the palette in Qt Creator. Help - About Plugins doesn't show any Qwt widgets and neither does Tools - Form Editor - About Qt Designer Plugins. Should I create a qwt directory in /qt5/plugins and copy the qwt so file there? Thanks so much for your help!

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

    Default Re: make fails when installing on Beaglebone Black

    When you want to use the Qwt designer plugin you need to build and install a 2nd version of Qwt ( this time with QwtDesigner enabled ), one that is compatible with the creator itself.
    Note that the creator is a just a desktop application ( build for some architecture and Qt version ) - and loading the designer plugin is like linking a shared object to the creator at runtime.

    Uwe

  5. #5
    Join Date
    Feb 2016
    Posts
    8
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: make fails when installing on Beaglebone Black

    Well now I'm back where I started. If I enable QwtDesigner in qwtconfig.pri then the make file crashes. If I don't enable it then I end up with an incompatible plugin that won't load. Is there no escape from this infinite loop of frustration?

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

    Default Re: make fails when installing on Beaglebone Black

    Again, you need to have 2 different builds of Qwt: cross compiled for the Beaglebone + another build for the desktop. Those builds have to be done with different Qt versions - the first one is the one that you have cross compiled for the Beaglebone ( here the designer API was disabled as you probably never run the designer/creator on the target ) and the second one is a Qt version that has been compiled for the desktop ( where you run the creator ). The Qt version for the desktop is usually always build with support for designer plugins.

    Maybe it helps to read: http://qwt.sourceforge.net/qwtinstall.html#USEPLUGIN

    But in your case it should be enough to do the cross compilation with having QwtDesigner disabled. For the Qt creator simply install an official Qwt 6.1 Debiam package, without doing any compilation. This combination should usually match and if you still don't see the Qwt widgets it should be a problem of configuring the Creator ( see link above ).

    Then the only problem you need to take care of is, that your build and the Debian package are installed into different directories. Check the options in qwtconfig.pri.

    Uwe

  7. #7
    Join Date
    Feb 2016
    Posts
    8
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: make fails when installing on Beaglebone Black

    Actually I am using Qt Creator on the BBB. Compile time is slow but it runs at an acceptable speed when developing. I tried to set up cross compilation but progress was slow and frustrating. Also my application takes place in the wilderness where even a laptop would be inconvenient.

  8. #8
    Join Date
    Feb 2016
    Posts
    8
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: make fails when installing on Beaglebone Black

    Okay I solved it. I was installing qt stuff from apt-get in a daze and I ended up with Qt4 Assistant, Designer and Linguist. In Qt Designer the qwt widgets were present and worked fine. I looked at another custom widget which was a blinking led and it would not compile either - it also had the Unknown module(s) in Qt Designer error.

    So I did some research and found that I was missing qttools5-dev package. I installed it, and the led widget compiled. I tried compiling qwt and this time it worked. It took like 30 minutes on the BBB but it finished correctly. However make install put the libqwt_designer_plugin.so file in an odd place: /usr/plugins/designer. I tried exporting that as QT_PLUGIN_PATH but it didn't work. I copied the file to a bunch of different places but only after putting it into /usr/lib/arm-linux-gnueabihf/qt5/plugins/designer did it finally work. The qwt plugins appear in Qt Creator and everything works. Whew! Thank you for a great product!

Similar Threads

  1. Issue Deploying Qt app to my Beaglebone Black
    By MarkB in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 10th October 2014, 15:33
  2. Problem configuring Qt for BeagleBone Black
    By sask1236 in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 7th November 2013, 07:30
  3. Qt creator for Beaglebone black
    By Nagarajan in forum Newbie
    Replies: 0
    Last Post: 24th October 2013, 06:28
  4. Replies: 2
    Last Post: 30th September 2013, 13:18
  5. Installing Qt using gcc, g++ 4.5.0 and Msys-1.0.14 fails!
    By olejh in forum Installation and Deployment
    Replies: 2
    Last Post: 14th June 2010, 06:15

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.