且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在其他计算机上运行Allegro 5

更新时间:2022-12-22 23:01:08

我的注释的版本较长:

创建应用程序时,它会链接到计算机上存在的某些DLL。分发游戏时,您将需要将DLL文件与.exe一起压缩,或者使用软件包创建者将其打包并寄出。

When you created your application, it links to certain DLL's that exist on your computer. When you distribute your game, you will either need to ZIP the DLL's along with your .exe or package them using package creators and ship it.

查找其中一个的***方法您的exe文件所依赖的DLL将是使用诸如 Dependency Walker 之类的工具。您不需要完全复制EXE依赖的所有DLL。只有您看到的位于非标准路径中,例如不在C:\Windows\System32中的路径。话虽如此,您可能需要从C:\Windows\System32复制一些。

The best way to find which DLL's your exe depends on will be to use a tool like Dependency Walker. You don't need to copy absolutely all DLL's that your EXE depends on. Only the ones that you see are in non-standard paths like ones that are not in C:\Windows\System32. That being said, you might need to copy some from C:\Windows\System32. You will need to find that out on your own.

要将它们打包为设置,可以使用 InnoSetup NSIS 。否则,请创建一个脚本,将其全部压缩为您。 AFAIK,没有简单的方法来获取其他人系统中缺少的所有DLL。您需要通过反复试验找出它们。不幸的是,这很痛苦。

To package them all as a setup, you can use package creators like InnoSetup or NSIS. Otherwise, create a script that ZIPs it all up for you. AFAIK, there is no easy way to get all DLL's required that are missing from the other persons' system. You'll need to find them out by trial and error. It is a pain, unfortunately.