PDA

View Full Version : Want to deploy Qt5 standalone executable through static linking on ubuntu 12.04 HELP!



bloks
15th May 2014, 19:55
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?

anda_skoa
16th May 2014, 08:50
The actual error is missing from your output.

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

Cheers,
_

bloks
16th May 2014, 16:20
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?

ChrisW67
16th May 2014, 23:33
Post the actual compiler errors and we might have a clue.

bloks
26th May 2014, 14:48
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.