2012年7月2日星期一

compile dosbox successfully

Compile c/c++ projects for me is like riding an angry horse, never be smooth and straight. and I gave up a lot of those.
Today there is a success story.
download sources:
dosbox 0.74
SDL 1.2.15
SDL_net 1.2.8
lpng 1511
zlib 125

there are something will make it fail:
1) I use VC++2008 express. Don't use VC++2010 and 2008 for different projects, you must stick on one, or it will lead fail.
2) compile the projects. when compile libpng, be careful. I must copy zlib source to ../../../zlib mentioned in the VC sln. let 3 sub-projects all success in libpng. and use libpng.lib and zlib.lib generated in this work. I used to compile zlib.lib seperately and it lead to link error when linking dosbox in the part of libpng.lib. I don't know why. It(the angry horse) just not tolerate much.
3) when compiling dosbox, it says cannot find afx???.h(what ever) when compile resource. And vc2008 express seems cannot edit resource file xxx.rc. I just delete the xxx.rc for I think its about ico for exe. when build successed, there will not icon for the dosbox.exe.


But, It can run! donnt forget copy SDL.dll and SDL_net.dll into the same dir of dosbox.exe


Good luck.

没有评论:

博客归档

neoedmund's shared items

我的简介

ZIP Code File