Results 1 to 2 of 2

Thread: Building an application using static QT libraries on Linux openSuse 10.2

  1. #1
    Join Date
    Jul 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default 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.

  2. #2
    Join Date
    Jul 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Wink 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.

Similar Threads

  1. Replies: 10
    Last Post: 20th December 2015, 12:14
  2. Replies: 3
    Last Post: 2nd January 2010, 20:19
  3. Building application with static Qt libraries
    By nedlab in forum Installation and Deployment
    Replies: 1
    Last Post: 28th December 2008, 21:07
  4. Building a static application using MS Visual C++ 2005
    By hunsrus in forum Installation and Deployment
    Replies: 1
    Last Post: 25th July 2008, 19:16
  5. Replies: 2
    Last Post: 8th March 2007, 23:22

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.