Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Static linking on Windows Vista

Static linking on Windows Vista

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 2.4k Views
  • 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 Offline
    G Offline
    gunther_von_goetzen_sanchez
    wrote on last edited by
    #1

    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
    0
    • G Offline
      G Offline
      gunther_von_goetzen_sanchez
      wrote on last edited by
      #2

      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
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved