Results 1 to 3 of 3

Thread: Coexisting static and shared builds of QT on windows

  1. #1
    Join Date
    Jun 2009
    Posts
    66
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Coexisting static and shared builds of QT on windows

    Hi All,

    Does anyone know the best way to setup a windows system to ahve coexisting static and share builds of the QT software on windows. On linux and solaris, this is easy, since you use the the -prefix switch when running configure, and then install the libraries in separate locations.

    The windows configure command doesn't looks to have this -prefix switch, so I'm wondering the best thing to do. Currently, I can only think of installing QT twice, then building the QT libraries static in one directory, and share in another.

    The reason I want to do this is because I develop 2 qt apps. One contains a number of dll's itself, so i want to include the qt dll's, to reduce the size of my dll's. The other consists of a single exe, so i don't want to have to deploy the dll's with this one.

    obviously i want to build both apps on the same box (as i do on linux and solaris).

    cheers,

    David

    btw - i'm using QT 4.5.2

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Coexisting static and shared builds of QT on windows

    Yeah, having two installations is the way to go. Then just use qmake from the appropriate installation and in case it's a dynamic one, make sure to have the appropriate bin folder in PATH.
    J-P Nurmi

  3. #3
    Join Date
    Jun 2009
    Posts
    66
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Coexisting static and shared builds of QT on windows

    I thought that was the only way to go, but just wanted to check.

    cheers,

    David

Similar Threads

  1. shared vs static
    By alisami in forum Installation and Deployment
    Replies: 3
    Last Post: 4th October 2008, 13:04
  2. Please Help-->have few doubts with Static build in Windows !
    By Krish in forum Installation and Deployment
    Replies: 1
    Last Post: 17th March 2008, 14:37
  3. Windows XP Qt 4.3.2 Static build
    By maxpower in forum Installation and Deployment
    Replies: 9
    Last Post: 2nd November 2007, 04:49
  4. STATIC vs. SHARED
    By KaptainKarl in forum Installation and Deployment
    Replies: 1
    Last Post: 27th August 2007, 16:31
  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.