为 MinGW/CodeBlocks 编译 Allegro 4.2
我在编译 Allegro 时遇到问题。当我开始 fix.bat mingw 时,它会给我一个输出,其中显示:
Configuring for Windows/Allegro...Stop!
然而,当我尝试通过键入 mingw32-make.exe 来编译其余部分时,输出如下:
makefile.all:248: ***recipe commences before first target. Stop.
我已经花了一个小时试图获得编译这个,我在网上找不到太多专门针对 MinGW 的故障排除方面的信息。
我所做的一切都来自这里,尽管没有过去编译点。
如果有人想要某种日志文件,请告诉我如何提供,我会尽快提供。
I'm having trouble getting Allegro to Compile. When I begin the fix.bat mingw, it gives me an output which says:
Configuring for Windows/Allegro...Stop!
Yet, when I try to compile the rest by typing mingw32-make.exe, the following is output:
makefile.all:248: ***recipe commences before first target. Stop.
I've been spending a good hour trying to get this to compile, and there I haven't been able to find much on the net in terms of troubleshooting specifically for MinGW.
Everything I've done has been from here, though nothing past the point of compilation.
If anyone would like a log file of some sort, please let me know how I can provide that and I will as soon as possible.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先,没有理由使用 Allegro 4.2,因为它已经过时了。如果您想使用 4 系列,则应该使用 4.4 分支。
http://www.allegro.cc/files/?v=4.4
这是可能的上面的 Makefile 可以正常工作,但您可能还需要更新 MinGW 的副本,以防您的版本有问题。
此外,除非您打算开发库本身,否则自己编译 Allegro 并没有多大用处。上面的链接提供二进制下载,其中包括使用该库所需的所有内容。
First, there's no reason to use Allegro 4.2 as it is past end of life. If you want to use the 4 series, you should be using the 4.4 branch.
http://www.allegro.cc/files/?v=4.4
It's possible that the Makefile on it will just work, but you may also need to update your copy of MinGW in case the version you have is buggy.
Also, there's not much use in compiling Allegro yourself unless you are planning on working on the library itself. The link above has binary downloads that include everything you need to use the library.