Building an application using static QT libraries on Linux openSuse 10.2
Hi,
I have been working on a little app for Linux using Qt. I started with shared libraries, and things are all OK.
Now, however, I want to change the project such that it uses static Qt libraries.
I have successfully recompiled Qt, with the -static option
I modified my path so that the it is now pointing to the static stuff.
I modified the .pro file of my app to include "CONFIG += static", and reran qmake (in the generated makefile I can see that indeed the new, static stuff is being used)
My application builds fine.
The problem is, that it is still using shared libraries. When I run ldd ./app, it still shows the paths to the .so's ?
What am I doing wrong ?
Best regards,
Marc.
Re: Building an application using static QT libraries on Linux openSuse 10.2
Hi,
I figured out how to make things work, but I am still a bit puzzled as to why this works.
I decided to start with a clean source package, and build the static stuff from there. Now everything works as expected. I had noticed that in the previous runs there were still so's in the lib dir, but I did not expect those files to cause problems.
Anyway, things are working now.
Regards,
Marc.