在其他计算机上运行Allegro 5 [英] Running Allegro 5 on other computers

查看:114
本文介绍了在其他计算机上运行Allegro 5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做了一个简单的快板游戏。但是,当我在另一台计算机上打开* .exe文件时,它说有许多丢失的.dll文件。如何使我的游戏在没有安装Visual Studio和Allegro 5库的其他计算机上运行?

I have made an allegro simple game . But when I open the *.exe file on another computer it says that there are many missing .dll files . How can I make my game to run on other computers without Visual Studio and Allegro 5 library installed ?

推荐答案

我的注释的版本较长:

创建应用程序时,它会链接到计算机上存在的某些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.

这篇关于在其他计算机上运行Allegro 5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆