0
我想这个指南在Cygwin上安装SDL库:在Cygwin安装SDL 2.3.1
http://www.noquarterarcade.com/using-cygwin-for-sdl-development
不幸的是建立SDL不起作用 - 错误信息:
Your compiler (gcc) does not produce Win32 executables!
显然我的编译器有错误的版本。我怎样才能将它设置为版本3? 或者,如果这是一个坏主意,我应该如何在我的cygwin上设置SDL?
我没有太多的裂缝,所以我将不胜感激相当简单的答案:-)
非常感谢你提前。
Cygwin的版本:2.3.1
gcc版本:4.9.3
试图安装SDL 1.2.15(我应该安装新版本如何?)
编辑:
下载并安装SDL以下路径:
hg clone https://hg.libsdl.org/SDL SDL
cd SDL
mkdir build
cd build
../configure
旧的错误,我劳燕分飞,但有一个新的错误:
$ ../configure
checking build system type... x86_64-unknown-cygwin
checking host system type... x86_64-unknown-cygwin
checking how to print strings... printf
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
...
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... /lib/cpp
configure: error: in '/home/SDL/build':
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See 'config.log' for more details
这应该告诉我,我缺少一个C++编译器,我猜。但我已经安装了gcc 4.9.3
我得到了同样的问题 - 非常感谢你:) –