Results 1 to 5 of 5

Thread: Want to deploy Qt5 standalone executable through static linking on ubuntu 12.04 HELP!

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

    Default Want to deploy Qt5 standalone executable through static linking on ubuntu 12.04 HELP!

    I'm trying to statically build Qt5 on ubuntu 12.04 so I could deploy a standalone executable.

    So I'm trying to follow the instructions in these two links:

    http://qt-project.org/doc/qt-5/linux-building.html
    http://qt-project.org/doc/qt-4.8/deployment-x11.html

    In the first link it says to run make and make install to install Qt on my ubuntu, but I can't even get past the make stage.

    I'm running make without any parameters, but I'm getting errors in the following areas:

    make[4]: *** [imagegestures] Error 1
    make[4]: Leaving directory `/home/.../Desktop/qt-everywhere-opensource-src-5.2.1/qtbase/examples/gestures/imagegestures'
    make[3]: *** [sub-imagegestures-make_first] Error 2
    make[3]: Leaving directory `/home/.../Desktop/qt-everywhere-opensource-src-5.2.1/qtbase/examples/gestures'
    make[2]: *** [sub-gestures-make_first] Error 1
    make[2]: Leaving directory `/home/.../Desktop/qt-everywhere-opensource-src-5.2.1/qtbase/examples'
    make[1]: *** [sub-examples-make_first] Error 1
    make[1]: Leaving directory `/home/.../Desktop/qt-everywhere-opensource-src-5.2.1/qtbase'
    make: *** [module-qtbase-make_first] Error 2

    What should I do?
    Last edited by bloks; 15th May 2014 at 21:35.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Want to deploy Qt5 standalone executable through static linking on ubuntu 12.04 H

    The actual error is missing from your output.

    But since this is in examples, you could try configuring with -noexamples

    Cheers,
    _

  3. #3
    Join Date
    May 2014
    Posts
    5
    Thanks
    1
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default Re: Want to deploy Qt5 standalone executable through static linking on ubuntu 12.04 H

    Thanks! But after reading and following some documentation, I've encountered some other problems:

    Following the ‘Qt for X11 Requirements’ [qt-project.org] page, I’ve installed the following packages:
    libfontconfig1-dev libfreetype6-dev libx11-dev libxcursor-dev libxext-dev libxfixes-dev libxft-dev libxi-dev libxrandr-dev libxrender-dev

    but I can never get past the make stage.

    My configuration is as follows: ./configure -static -prefix /tmp/qt-everywhere-opensource-src-5.2.1 -opensource -qt-xcb

    I’m getting errors in the following areas:

    make[3]: Leaving directory `/tmp/qt-everywhere-opensource-src-5.2.1/qtdeclarative/tools/qmlprofiler'
    make[2]: Leaving directory `/tmp/qt-everywhere-opensource-src-5.2.1/qtdeclarative/tools'
    make[1]: Leaving directory `/tmp/qt-everywhere-opensource-src-5.2.1/qtdeclarative'
    make: *** [module-qtdeclarative-make_first] Error 2

    What should I do?

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Want to deploy Qt5 standalone executable through static linking on ubuntu 12.04 H

    Post the actual compiler errors and we might have a clue.

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

    Default Re: Want to deploy Qt5 standalone executable through static linking on ubuntu 12.04 H

    So to start over...

    I’m trying to statically build Qt5 on ubuntu 12.04 so I could deploy a standalone executable.

    Following the ‘Qt for X11 Requirements’ [qt-project.org] page, I’ve installed the following packages:
    libfontconfig1-dev libfreetype6-dev libx11-dev libxcursor-dev libxext-dev libxfixes-dev libxft-dev libxi-dev libxrandr-dev libxrender-dev

    I’m trying to follow the instructions from these links:

    http://qt-project.org/doc/qt-5/linux-building.html
    http://qt-project.org/doc/qt-4.8/deployment-x11.html

    but I can never get past the make stage.

    My configuration is as follows: ./configure -static -prefix $HOME/Qt -opensource -qt-xcb

    I’m getting errors in the following areas:

    Using PCH Using PCHsh: 1: /tmp/qt-everywhere-opensource-src-5.2.1/qtdeclarative/bin/qmlimportscanner: not found
    Project ERROR: Failed to parse qmlimportscanner output.

Similar Threads

  1. Qt Standalone Application Static Linking?
    By awpitt13 in forum Qt Programming
    Replies: 1
    Last Post: 12th December 2013, 03:51
  2. How to create executable in Ubuntu
    By WingFalcon in forum Installation and Deployment
    Replies: 2
    Last Post: 19th June 2013, 14:20
  3. Replies: 3
    Last Post: 7th February 2012, 11:40
  4. Replies: 3
    Last Post: 1st June 2011, 16:32
  5. How to create a standalone executable?
    By Ashish in forum Qt Programming
    Replies: 1
    Last Post: 25th January 2007, 16:04

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.