英文:
RAD Studio: How do I build my C++ application so it is ready to be distributed?
问题
我使用RAD Studio的C++Builder制作了一个非常简单的Windows 32位应用程序。我转到“项目 > 部署”并选择了我需要的所有库/依赖项,然后点击构建。
当我将包含所有应用程序文件的文件夹发送给其他人时,他们无法运行该应用程序,因为缺少依赖项(我在另一个位置的PC上有这个依赖项,这就是为什么应用程序在我的机器上运行的原因)。
该依赖项已在部署菜单中选中。
如何构建我的应用程序,以便在其他PC上运行?我尝试过制作调试和发布版本,还在部署菜单中选择了所有可能的Windows 32位依赖项和库。
英文:
I have used RAD Studio's C++Builder to make a really simple Windows 32-bit app. I went to Project > Deployment
and selected all libraries/dependencies I needed and clicked Build.
When I sent the folder with all the app files to someone else, they couldn't run the app because of a missing dependency (which I have on my PC in another place, which is why the app runs on my machine).
That dependency was checked in the deployment menu.
How do I build my application so it can be run on other PCs?
I have tried making both a Debug and a Release build. Also selected all possible Windows 32-bit dependencies and libraries in the deployment menu.
答案1
得分: 1
你有2个选择:
-
将缺失的文件部署到每台电脑上。
-
关闭以下设置,以首先移除第三方依赖,使编译后的
.exe
自包含:-
- 链接运行时包
-
- 链接动态 RTL
-
英文:
You have 2 options:
-
Deploy the missing files to each PC
-
Turn off the following settings to remove the external dependancies in the first place, so the compiled
.exe
is self-contained:-
Project > Options > Packages > Runtime Packages
- Link with runtime packages
-
Project > Options > Building > C++ Linker
- Link with Dynamic RTL
-
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论