Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8256445
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T01:51:57+00:00 2026-06-08T01:51:57+00:00

I just made a program in QT, I would like to distribute it but

  • 0

I just made a program in QT, I would like to distribute it but I want a static build, not one that I need to ship all the libraries with it. I have been looking everywhere for a guide on it and they all describe things that I do not have. If someone could please help me out, I would greatly appreciate it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T01:51:58+00:00Added an answer on June 8, 2026 at 1:51 am

    Here are my rough notes. I did this a few days ago.

    Downloaded Mingw32
    http://sourceforge.net/projects/mingw/files/latest/download?source=files

    And I choose to add the msys package too. this is a cmd msys.bat file that sets up the env for you.
    I installed the above to c:\MinGW and double clicked the C:\MinGW\msys\1.0\msys.bat

    Downloaded the QT Source
    http://releases.qt-project.org/qt4/source/qt-everywhere-opensource-src-4.8.2.zip

    I unzipped the above to c:\qt-src-4.8.2

    using the msys command line I changed directory to the above directory and typed this:

    configure.exe -static -platform win32-g++ -release -exceptions

    this took about 15 minutes

    Then I typed:

    mingw32-make sub-src

    This took hours.

    Installing QT Creator,
    Downloaded from:
    Installed to : C:\qtcreator-2.5.0
    Run qtcreator
    Tools > Options QT Versions. Add > Browse to qmake.exe in the c:\qt-src-4.8.2
    Tool Chain > Add MinGW > Browse to the g++.exe

    Modify the makespecs
    Open C:\qt-src-4.8.2\mkspecs\win32-g++\qmake.conf
    add QMAKE_LFLAGS = -static -static-libgcc
    Then to test the static build, open the .pro file
    CONFIG += static

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just made a transaction go through but not sure where there is a
I've made a little alarm program that is supposed to say one of a
I'm a beginner in programming. I've just made a program called Guessing Game. And
I have just started on AWT and made a simple program in it, it
Okay, just learnt LINQ syntax about ten minutes ago, made a first program: public
I just made my first website , and I notice that the elements start
I was just made aware of a bug I introduced, the thing that surprised
I have an image which is just made of one color ? (it could
I have one Private sub that runs in a loop. I want the sub
I would like to make a class that has different text to say to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.