Results 1 to 2 of 2

Thread: STATIC vs. SHARED

  1. #1
    Join Date
    Feb 2006
    Location
    Jarrell, Texas, USA
    Posts
    70
    Thanks
    7
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default STATIC vs. SHARED

    I recently installed both static and shared versions of QT 4.3.1 on my Suse 10.2 system intending to switch between the two as I went from a debugging mode to a release mode. I switch between the two by changing my PATH variable in my startup script.

    NOTE: I installed the shared version first, then did a 'gmake confclean' and installed the static version in a different directory using -prefix option.

    When I use the static version, I seem to produce executables that are linked to a mixture of static and shared libraries. The most glaring of these is the ld.so library. Is there a configuration file somewhere in my Home directory or other place that I need to change to switch between the two versions?

    I appreciate any insight.

    Karl

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: STATIC vs. SHARED

    There is no configuration file like that. You just don't have all the libraries Qt uses in static versions, so they are linked dynamically.

Similar Threads

  1. Replies: 16
    Last Post: 23rd May 2008, 10:12
  2. Replies: 5
    Last Post: 18th April 2007, 20:02
  3. Accessing to a static variable from the same class
    By xgoan in forum General Programming
    Replies: 6
    Last Post: 5th March 2007, 10:50
  4. I got two problems when I used static compiled library of QT4
    By qintm in forum Installation and Deployment
    Replies: 8
    Last Post: 20th April 2006, 08:52
  5. shared versus static build
    By jcr in forum Installation and Deployment
    Replies: 2
    Last Post: 28th January 2006, 08:05

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.