Results 1 to 2 of 2

Thread: Please Help-->have few doubts with Static build in Windows !

  1. #1
    Join Date
    Feb 2008
    Posts
    74
    Thanks
    31
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Question Please Help-->have few doubts with Static build in Windows !

    Hello! Friends,
    I was able to properly deploy my application on another Windows with no Qt installed. But now as i want to kill all of its dynamic dependencies so that it works on any other operating system i.e. may be its linux or unix or any othe, i will have to build it statically but have few doubts as: -

    For informing i have installed Qt4.3.4 with its binary to C:\Qt\4.3.4. Now for building static application do i have to unzip "qt-win-opensource-src-4.3.4.zip" file to say C:\Qt_static\ and then do all the procedure as mentioned here OR do i have just go to C:\Qt\4.3.4 and then use configure command. But i think by doing the later i wont be able to use both static & dynamic version of Qt, right?

    As in Linux i can just mention the new directory to install static Qt as: -

    On command prompt: - C:\Qt\4.3.4>configure -static -prefix C:\QT_static\4.3.4

    so that i can have both static & dynamic version of Qt.

    I can't use this command with windows, right? as it wont be supported!!

    I will be obliged if replied--> Thanks in advance
    Last edited by Krish; 17th March 2008 at 13:28.

  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: Please Help-->have few doubts with Static build in Windows !

    Quote Originally Posted by Krish View Post
    But now as i want to kill all of its dynamic dependencies so that it works on any other operating system i.e. may be its linux or unix or any othe, i will have to build it statically but have few doubts as: -
    Hmm... statically linking your application won't allow it to run on other operating systems.

    For informing i have installed Qt4.3.4 with its binary to C:\Qt\4.3.4. Now for building static application do i have to unzip "qt-win-opensource-src-4.3.4.zip" file to say C:\Qt_static\ and then do all the procedure as mentioned here OR do i have just go to C:\Qt\4.3.4 and then use configure command. But i think by doing the later i wont be able to use both static & dynamic version of Qt, right?
    The wiki article you mention also tells you to run configure.

    As in Linux i can just mention the new directory to install static Qt as: -

    On command prompt: - C:\Qt\4.3.4>configure -static -prefix C:\QT_static\4.3.4

    so that i can have both static & dynamic version of Qt.
    You can do the same on Windows.

    I can't use this command with windows, right? as it wont be supported!!
    Why not?

  3. The following user says thank you to wysota for this useful post:

    Krish (17th March 2008)

Similar Threads

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

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.