SDL2_image 是什么?在哪里?

SDL2_image 是什么?在哪里?

我正在尝试编译 QEMU。执行时 ../qemu/configure --disable-werror --enable-debug \ --target-list="arm-softmmu,i386-softmmu" 输出

 -D_REENTRANT -I/usr/include/SDL2  -lSDL2 -lX11
  -D_REENTRANT -I/usr/include/SDL2   -lSDL2 -lX11 -lSDL2_image -lX11
  ...

随后运行 make 会导致

...
  LINK    arm-softmmu/qemu-system-arm
/usr/bin/ld: cannot find -lSDL2_image
collect2: error: ld returned 1 exit status
Makefile:198: recipe for target 'qemu-system-arm' failed
make[1]: *** [qemu-system-arm] Error 1
Makefile:202: recipe for target 'subdir-arm-softmmu' failed
make: *** [subdir-arm-softmmu] Error 2

我在哪里可以找到 SDL2_image?

答案1

让我们来看看:

$ find /usr/lib -name 'libSDL2_*'
/usr/lib/x86_64-linux-gnu/libSDL2_image.a
/usr/lib/x86_64-linux-gnu/libSDL2_image-2.0.so
/usr/lib/x86_64-linux-gnu/libSDL2_test.a
/usr/lib/x86_64-linux-gnu/libSDL2_image-2.0.so.0
/usr/lib/x86_64-linux-gnu/libSDL2_image-2.0.so.0.2.1
/usr/lib/x86_64-linux-gnu/libSDL2_image.so

$ dpkg -S /usr/lib/x86_64-linux-gnu/libSDL2_image.so
libsdl2-image-dev:amd64: /usr/lib/x86_64-linux-gnu/libSDL2_image.so

因此它应该由libsdl2-image-dev适合您的架构的包提供

相关内容