Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QtCommercial Standalone Exe
QtWS25 Last Chance

QtCommercial Standalone Exe

Scheduled Pinned Locked Moved Qt Creator and other tools
2 Posts 2 Posters 804 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.
  • A Offline
    A Offline
    amlrcc
    wrote on last edited by
    #1

    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
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      [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
      0

      • Login

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