找不到 SDL 安装的 sdl2-config 脚本

找不到 SDL 安装的 sdl2-config 脚本

我曾尝试在新安装的 Linux 操作系统上安装 archive.tar.gz 文件,但它给了我这个错误信息。在我应用

lm@debian:/$ sudo apt-get install libsdl2-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
.................................
Setting up libsdl2-dev:amd64 (2.26.5+dfsg-1) ...
Processing triggers for man-db (2.11.2-2) ...
lm@debian:/$

因此,我尝试从其源存档中安装 SDL 映像本身,并且已成功安装,这里是 MAKE INSTALL 命令的输出尾部:

```
cmake/SDL2_image
/usr/bin/mkdir -p '/usr/local/include/SDL2'
/usr/bin/install -c -m 644 SDL_image.h'/usr/local/include/SDL2'
/usr/bin/mkdir -p '/usr/local/lib/pkgconfig'
/usr/bin/install -c -m 644 SDL2_image.pc '/usr/local/lib/pkgconfig'
make[2]: Leaving directory '/home/lm/Downloads/SDL2_image-2.6.3'
make[1]: Leaving directory '/home/lm/Downloads/SDL2_image-2.6.3'
lm@debian:~/Downloads/SDL2_image-2.6.3$ cd ../tuxtype_w_fonts-1.8.0/

```

重新尝试配置应用程序后,我遇到了同样的错误,即 SDL 图像短路了。

```

lm@debian:~/Downloads/tuxtype_w_fonts-1.8.0$ sudo ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu

.................................
checking for sdl-config... /usr/bin/sdl-config
checking for SDL - version >= 1.2.0... yes
checking for native Win32... no
checking for IMG_Load in -lSDL_image... no
configure: error: SDL_image not found!    http://www.libsdl.org/projects/SDL_image
lm@debian:~/Downloads/tuxtype_w_fonts-1.8.0$ 

``` 

但是在配置时,它给了我相同的错误消息。

我曾点击消息中的链接,但由于缺乏经验,没有找到如何将 sdl 图像包含到适当的文件夹中。

问题是,

我该如何解决这个问题,如果在安装 SDL 映像之后运行 ./config,我需要已经安装的 SDL 映像?

相关内容