Results 1 to 5 of 5

Thread: Linker fails to use static QT libraries it uses shared libraries

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2011
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Linker fails to use static QT libraries it uses shared libraries

    I currently have two installations of QT on my linux machine. The shared version is installed in /opt/QTSDK/Desktop and the static version is installed in /usr/local/Trolltech.

    I am also using the mysql plugin.

    How do I get the linker during the build of my executable in Netbeans to use the static XX.a libraries and not the shared XX.so libraries?

    Also do I need to make any modifications to my xx/xx/xx/xx/Release/program.pro file or will that automatically be generated with " CONFIG +=static" and "QTPLUGIN += qsqlmysql " keywords once Netbeans sees I am building a static executable?

    Thanks in advance.

  2. #2
    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: Linker fails to use static QT libraries it uses shared libraries

    Use the qmake from the Qt install that you wish to link to and the Makefile should be correctly built.

Similar Threads

  1. Replies: 2
    Last Post: 10th December 2010, 07:54
  2. Qt linguist and qt shared libraries
    By webquinty in forum Qt Tools
    Replies: 0
    Last Post: 15th July 2010, 09:44
  3. qobject_cast<T> in shared libraries...
    By seim in forum Qt Programming
    Replies: 7
    Last Post: 5th January 2009, 18:23
  4. Deployment (shared libraries)
    By amagdy.ibrahim in forum Qt Programming
    Replies: 5
    Last Post: 26th June 2008, 21:55
  5. exception in shared libraries
    By big4mil in forum Qt Programming
    Replies: 2
    Last Post: 5th December 2006, 19:51

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.