Home > Mobile >  Released qt program how to separate dependent DLL in different directories?
Released qt program how to separate dependent DLL in different directories?

Time:11-05

Released qt program how to separate dependent DLL in different directories SetDllDirectory (path);
QCoreApplication: : addLibraryPath (
Compile time can pass, but they were really DLL point exe

EXE program on A portfolio, and under the root directory, the DLL in A file B folder, if get ah, the great god

CodePudding user response:

Set the environment variable, or in the c: \ \ Windows

CodePudding user response:

Pro file set in the DLL path, such as LIBS +=- l./LIBS - lmytest LIBS in project directory to create folder put DLL file directory, when published, will be in the LIBS folder under the same path as the exe good

CodePudding user response:

Different directory, add a few more - L,
  •  Tags:  
  • Qt
  • Related