How to build bot into one .exe file for any computers? #238
|
Hello! |
Replies: 2 comments 7 replies
|
Hi, |
|
Current Conan configuration builds tgbot-cpp itself statically by default, but that does not automatically guarantee a single self-contained EXE: libcurl/OpenSSL and the MSVC runtime must also be linked statically. Build a Release configuration and inspect the result with: dumpbin /DEPENDENTS YourTelegramBot.exeIf non-system DLLs are listed, either build those dependencies statically with the same Conan profile or place the matching Release DLLs beside the EXE. Install the Microsoft Visual C++ Redistributable when the dynamic MSVC runtime is used. Do not deploy a Debug build or copy |



Current Conan configuration builds tgbot-cpp itself statically by default, but that does not automatically guarantee a single self-contained EXE: libcurl/OpenSSL and the MSVC runtime must also be linked statically.
Build a Release configuration and inspect the result with:
If non-system DLLs are listed, either build those dependencies statically with the same Conan profile or place the matching Release DLLs beside the EXE. Install the Microsoft Visual C++ Redistributable when the dynamic MSVC runtime is used.
Do not deploy a Debug build or copy
VCRUNTIME140_1D.dll: theDsuffix is the debug CRT and it is not redistributable. Also, one EXE cannot be …