Qt Forum

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

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    QtCommercial Standalone Exe

    Tools
    2
    2
    684
    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.
    • A
      amlrcc last edited by

      I'd like to apologize ahead of time if this has already been covered.

      I made a project and I'd like to be able to distribute my executable as a standalone EXE. When I build it in the release mode I get the EXE but has missing dlls. I copy the necessary DLLs into the directory with my executable and it runs (great!). However, when I put the executable and necessary DLLs on another machine that does not have QtCommercial, I get a MS VS C++ RunTime error.

      I did some searching and saw some articles about statically linking Qt libraries.

      Is there another way to do this without linking? I was lead to believe that if one has the commercial version, they wouldn't have to deal with statically linking libraries and everything else.

      Any assistance would be greatly appreciated.

      1 Reply Last reply Reply Quote 0
      • sierdzio
        sierdzio Moderators last edited by

        [quote]I was lead to believe that if one has the commercial version, they wouldn’t have to deal with statically linking libraries and everything else.[/quote]

        Well, you've been lead wrongly ;)

        There are many ways out. You can bundle VC redist into your installer (as most companies do - try installing basically any game on Windows and you'll notice the runtime installer being spawned).

        Or you can use MinGW instead of MSVC - it does not require any runtime, AFAIK (I should point out that I'm using Linux myself, I can be very wrong about MS at times).

        (Z(:^

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