Results 1 to 4 of 4

Thread: Mixing static and dynamic Qt builds.

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

    Question Mixing static and dynamic Qt builds.

    Hi,

    I have just finished compiling Qt dynamically, everything works fine. I would like to do a static compile (configure -static), but I need to keep the dynamic build. Is it possible to have two separate folders with static and dynamic Qt and switch between them whenever you want? I assume there could be conflicts with the environmental variables (PATH and QTDIR), also I’m afraid MOC will malfunction, so I haven’t tried yet. Any tips and wisdom on this subject are appreciated!

    By the way, I'm using VS 2008 on Windows Vista, theres quite allot of tutorials on mixing static and dynamic with the g++ compiler, I assume the proccess could be different for msvc2008.

  2. #2
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    13
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Mixing static and dynamic Qt builds.

    You can use different folders with Visual Studio easily if you use the VS AddIn for Visual Studio.
    The AddIn manages the switching for you (it doesn't use the PATH variable).

    Attention: To use the VS AddIn you must run Visual Studio as administrator..

  3. #3
    Join Date
    Mar 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Mixing static and dynamic Qt builds.

    Quote Originally Posted by BenPa View Post
    You can use different folders with Visual Studio easily if you use the VS AddIn for Visual Studio.
    The AddIn manages the switching for you (it doesn't use the PATH variable).

    Attention: To use the VS AddIn you must run Visual Studio as administrator..
    Thanks for the information. I have downloaded the VS AddIn, compiling static Qt right now. I hope everything works

  4. #4
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    13
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Mixing static and dynamic Qt builds.

    Don't forget to use seperate folders to avoid problems (e. g. qt-everywhere-4.6.1-static and qt-everywhere-4.6.1-shared). You can setup both folders in the options of the AddIn (there should be a new button in the toolbar..

Similar Threads

  1. Size of Static Builds
    By Stobie in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 19th January 2010, 21:24
  2. Coexisting static and shared builds of QT on windows
    By doggrant in forum Installation and Deployment
    Replies: 2
    Last Post: 10th September 2009, 16:52
  3. Static vs. Dynamic
    By hosseinyounesi in forum Qt Programming
    Replies: 2
    Last Post: 24th July 2009, 11:21
  4. having both static and dynamic libraries?
    By gfunk in forum Qt Programming
    Replies: 2
    Last Post: 7th May 2007, 07:33
  5. Qt libs static and dynamic
    By conexion2000 in forum Installation and Deployment
    Replies: 3
    Last Post: 24th May 2006, 09:09

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.