当我尝试使用 make 命令编译此程序时,它失败了。我认为我拥有所有必要的库。这是编译失败的终端的屏幕截图。
以下是自述文件的一部分:
<=============SETTUP=============>
To install the game, you will need the GNU GCC (G++) compiler as
well as the SDL library v1.2 or greater and SDL_image extension
library (for quicker and more versatile image loading) and SDL_ttf (for using true type fonts).
After unpacking the archive, open up a terminal window,
browse to the folder where you unpacked and type in "make". The source
files have now been compiled, and you can now run the program by typing
./Invaders.
我应该怎么办?
答案1
执行以下命令来安装文章中提到的所有要求。然后执行./make
sudo apt-get install libtiff4 libtiff4-dev libsdl-image1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev