how to solve the error when the application is opened on another laptop
-
@jsulm So I have to build the release in qt creator and then redo the deploy with --release?
@Blackzero said in how to solve the error when the application is opened on another laptop:
So I have to build the release in qt creator
Yes.
Debug build expects*_Dor*ddebug libraries and release the release libs (e.g. without debug symbols). -
Hi,
One detail that comes from the top of my head, the debug version of the MSVC runtime are not redistributable.
One alternative is to do a release with debug information build. -
Hi,
One detail that comes from the top of my head, the debug version of the MSVC runtime are not redistributable.
One alternative is to do a release with debug information build. -
If you are using CMake adding
include(InstallRequiredSystemLibraries)
will installVCRuntime*dependencies in the install step. -
If you are using CMake adding
include(InstallRequiredSystemLibraries)
will installVCRuntime*dependencies in the install step. -
@J-Hilk
I have too much code that makes it impossible to move to cmake, is it possible to change qmake to cmake easily without having to redo the code@Blackzero said in how to solve the error when the application is opened on another laptop:
without having to redo the code
You don't have to change code when you change the build system.
-
@J-Hilk
I have too much code that makes it impossible to move to cmake, is it possible to change qmake to cmake easily without having to redo the code@Blackzero the correct way to ship those particular dependencies that seem to be missing, is actually by having the user install those runtimes themselves:
https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170or by shipping the installer yourself (you're explicitly allowed to do that) and executing it during your app install process.
-
@Blackzero the correct way to ship those particular dependencies that seem to be missing, is actually by having the user install those runtimes themselves:
https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170or by shipping the installer yourself (you're explicitly allowed to do that) and executing it during your app install process.
@J-Hilk except that the error message talks about the debug version of the runtime which is not redistributable. More information here.
@Blackzero if using qmake:
CONFIG += force_debug_infoIf using cmake:
CMAKE_BUILD_TYPE=RelWithDebInfo