在 cygwin 中安装 SDL
Installing SDL in cygwin
我有 Cygwin,安装版本 2.8473,64 位。我已经安装了 gcc-g++。我正在尝试安装 SDL2,同时尝试 SDL2-2.0.3 和 SDL2-2.0.4。我将讨论 2.0.3 的问题,因为这是稳定版本。
我 read 我应该 运行 /usr/bin/set-gcc-default-3.sh,但它不在那里。 (gcc 似乎已经安装,当我在 SDL2-2.0.3 目录中 运行 make 时,我看到它在工作。)我无法通过搜索 Internet 找到它的位置 --也许就是这样?没有它,make
给我这些抱怨:
Warning, configure.in is out of date
还有很多这样的 "static declaration" 错误:
.../SDL_render_d3d11.c:135:19: error: static declaration of 'IID_IDXGIFactory2' follows non-static declaration
static const GUID IID_IDXGIFactory2 = { 0x50c83a1c, 0xe072, 0x4c48, { 0x87, 0xb
^
我无法找到任何有用的谷歌搜索 IID_IDXGIFactory2
。
根据 installation 上的 SDL Wiki 页面,"As of SDL 2.0.3, the codebase still compiles on Cygwin and MingW32, but we expect these to stop working in the future." 所以它不再受支持,我将保留它。
我有 Cygwin,安装版本 2.8473,64 位。我已经安装了 gcc-g++。我正在尝试安装 SDL2,同时尝试 SDL2-2.0.3 和 SDL2-2.0.4。我将讨论 2.0.3 的问题,因为这是稳定版本。
我 read 我应该 运行 /usr/bin/set-gcc-default-3.sh,但它不在那里。 (gcc 似乎已经安装,当我在 SDL2-2.0.3 目录中 运行 make 时,我看到它在工作。)我无法通过搜索 Internet 找到它的位置 --也许就是这样?没有它,make
给我这些抱怨:
Warning, configure.in is out of date
还有很多这样的 "static declaration" 错误:
.../SDL_render_d3d11.c:135:19: error: static declaration of 'IID_IDXGIFactory2' follows non-static declaration
static const GUID IID_IDXGIFactory2 = { 0x50c83a1c, 0xe072, 0x4c48, { 0x87, 0xb
^
我无法找到任何有用的谷歌搜索 IID_IDXGIFactory2
。
根据 installation 上的 SDL Wiki 页面,"As of SDL 2.0.3, the codebase still compiles on Cygwin and MingW32, but we expect these to stop working in the future." 所以它不再受支持,我将保留它。