Error while trying to create a static version of Qt
-
And also to repeat just another time (and you didn't answer the respective question):
If you compile Qt manually, then please do so with the stand alone framework sources ("Qt download page":http://qt.nokia.com/downloads, go LGPL, Qt: Framework Only on the right side, the introductory paragraph has the links to a zip or a tar.gz).
Recompiling from the installed SDK is very known to cause problem, please avoid this!
-
[quote author="Volker" date="1304875302"]And also to repeat just another time (and you didn't answer the respective question):
If you compile Qt manually, then please do so with the stand alone framework sources ("Qt download page":http://qt.nokia.com/downloads, go LGPL, Qt: Framework Only on the right side, the introductory paragraph has the links to a zip or a tar.gz).
Recompiling from the installed SDK is very known to cause problem, please avoid this![/quote]
Hi Pufo, recompiling is typically not a major issue. However, you might want to follow Volker's advice.
-
[quote author="Pufo" date="1304880968"]Sorry guys, i've used @./configure -static -prefix /path/toQt@
Is it me or this library thing is harder than programming itself ?[/quote]
Static compilation in a Linux/Mac environment should be seamless. I do it regularly without any problems from the source package.
-
Yes ! It worked GREAT using Volker's advice.
My binary is 14 MB and in ldd the Qt libraries aren't listed anymore.Another question:
What is the best choice to distribuite the software, now that i've compiled it?
Should i create a .deb pack ?
If i've compiled on my Ubuntu machine ( 2.6.35-22-generic ) someone with Slackware or another distribution would be able to run it ? -
A Debian package (.deb) is the most convenient for all the users with native .deb support. As far as I know there are converters for the various package formats (deb, rpm, dunno what Slackware uses nowadays).
I personally would go with a .deb, maybe a .rpm and a zip file as fallback option.
-
I've built a static release 10 days ago, but i don't remember how i did it.
I remember i've followed this tutorial: http://doc.qt.nokia.com/latest/deployment-x11.html
Now, if i run: qmake -config release i get the qmake help -
Hi Pufo,
@
qmake -config release
@
is for building your application after you have built your static libs.If you like to build the static libs you probably should start with a fresh copy of the source. Then you need to start with
@
./configure -static -prefix /path/to/Qt <other parameters>
@ -
I've already build my static libs.
How to i use them ?
I've used them once, 10 days ago, but i don't know how.
qmake -config release - works if i run it from sources directory ( earlier i was in build folder )I've also put CONFIG +=static in my .pro file.
All this happens on Linux.Also, i'm trying to compile on Windows.
Same story there too. -
I've remembered and found that i've downloaded the framework separately, and built it !
I've added to the PATH the path of the static compiled release, and it worked !For Windows i've done this: http://developer.qt.nokia.com/wiki/How_to_build_a_static_Qt_version_for_Windows_with_gcc