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. Binary with no dependencies
Forum Updated to NodeBB v4.3 + New Features

Binary with no dependencies

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 1.2k Views 1 Watching
  • 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.
  • N Offline
    N Offline
    nickmk
    wrote on 3 Feb 2013, 22:36 last edited by
    #1

    How would I go about doing this? I see the .lib files that would replace the dynamic libraries in my Qt folder so I believe I can do static linking.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MuldeR
      wrote on 3 Feb 2013, 23:00 last edited by
      #2

      The pre-compiled Qt binaries you can download have been built as dynamic (shared) libraries. The .lib files you see in the "lib" folders are import libraries - not static libraries! Those are linked into your program file in order to use the Qt DLL files. If you want to link Qt as static libraries, you'll have to compile Qt from the sources yourself. Just be sure you call "configure.exe" with the "-static" option. You probably want to add "-release" too.

      For what it's worth, this is what I do:
      http://lamexp.sourceforge.net/doc/FAQ.html#87f001c0

      My OpenSource software at: http://muldersoft.com/

      Qt v4.8.6 MSVC 2013, static/shared: http://goo.gl/BXqhrS

      Go visit the coop: http://youtu.be/Jay...

      1 Reply Last reply
      0
      • U Offline
        U Offline
        utcenter
        wrote on 4 Feb 2013, 00:57 last edited by
        #3

        Keep in mind there are license limitations to using static Qt builds. Commercial application would either require to be open sourced or a commercial Qt license.

        1 Reply Last reply
        0

        2/3

        3 Feb 2013, 23:00

        • Login

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