在其他计算机上运行Allegro 5

编程入门 行业动态 更新时间:2024-10-24 11:13:49
本文介绍了在其他计算机上运行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

本文发布于:2023-11-11 18:02:13,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1579173.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:其他计算机   Allegro

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!