Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Static linking on Windows Vista

    General and Desktop
    1
    2
    2265
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      gunther_von_goetzen_sanchez last edited by

      Hello Dear People,

      I`m trying to configure Qt 4.7.0 to compile static on Windows Vista, using this commands:

      C:\Qt\2010.05\qt>configure -static -platform win32-g++ -qt-libjpeg -qt-zlib -qt-libpng -release -nomake examples -nomake demos -no-exceptions -no-stl -no-rtti -no-qt3support -no-scripttools -no-openssl -no-opengl -no-webkit -no-phonon -no-style-motif -no-style-cde -no-style-cleanlooks -no-style-plastique -no-sql-sqlite

      Enviroment Variables are:

      PATH = C:\MinGW\bin;C:\Qt\2010.05;C:\Qt\2010.05\mingw\bin;C:\Qt\2010.05;C:\Qt\2010.05\mingw\bin
      QMAKESPEC = win32-g++
      QTDIR = C:\Qt\2010.05

      A small test application compiled fine, but I still need to include all DLLs [mingwm10.dll,QtCore4.dll,QtGui4.dll,libgcc_s_dw2-1.dll] in the same directory as the .exe file for it to run.

      In others words, it is still compiling dynamically!

      I made a screenshot of the command-line window that might give you more information, please take a look:

      !http://www.asesor24.com/screenshot_qmake.jpg(Screenshot)!

      !http://www.asesor24.com/screenshot_qmake.jpg(http://www.asesor24.com/screenshot_qmake.jpg)!

      What am I missing to make Qt to compile statically? I want to deploy a single .exe file

      Thank you very much!

      1 Reply Last reply Reply Quote 0
      • G
        gunther_von_goetzen_sanchez last edited by

        If you can not see the screenshot, hier is a link to it:

        "http://www.asesor24.com/screenshot_qmake.jpg":http://www.asesor24.com/screenshot_qmake.jpg

        1 Reply Last reply Reply Quote 0
        • First post
          Last post