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 8025797
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T23:16:51+00:00 2026-06-04T23:16:51+00:00

I want to make my app without any dependancies for the users. It works

  • 0

I want to make my app without any dependancies for the users. It works well when I put the dll files into the same folder as my exe.
I’m trying to set all those libraries to static use the following code in my pro file (Qt 4.8.1):

QMAKE_LFLAGS += -static-libgcc
CONFIG += static

The previous code doesn’t change anything.

Here are the dll file I have included into my project folder:

  • libgcc_s_dw2-1.dll
  • mingwm10.dll
  • QtCore4.dll
  • QtGui4.dll

The fact is I don’t want my app be more than a file and I don’t want the users to download libs files, which are heavy (9mB for the last one).

Is there a way to compile a Qt project and use static libs?

I’ve tried to read some tutorials I’ve found on the Internet but they are all outdated. For what I read too, the solution would be to rebuild the Qt source code staticaly.

  • 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-04T23:16:52+00:00Added an answer on June 4, 2026 at 11:16 pm

    To be able to fully statically compile against Qt you need to rebuild the framework as static, using the pre-compiled framework isn’t enough – unless you have a commercial license and can get the static binaries.

    See: http://www.formortals.com/how-to-statically-link-qt-4/, http://www.formortals.com/build-qt-static-small-microsoft-intel-gcc-compiler/ and http://doc.qt.nokia.com/4.7-snapshot/deployment.html#static-vs-shared-libraries for more information.

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

Sidebar

Related Questions

i want to make my app publish on my wall, i can post without
I want to make an activity that can be opened above ANY app. Normally,
I am new android app developer i want make app for tablets and phone
I want to make an app that has a view that moves randomly or
I want to make an app that can receive broadcast when other apps on
I want to make an App Engine connected Android app, and I'm beginning with
i want to make an app which can add the file properties of a
HI all I want to make one app for iPhone 2.2.* and for version
I want to make an Android app by using ZXing . Can anyone tell
i want to make a php app that let people submit photos/videos/sounds Now, everything

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.