小编Lio*_*oyo的帖子

make找不到SDL_mixer.h但是我包含了SDL目录

我正在尝试从源代码构建eduke32.

除其他外,它需要SDL_mixer.h.

我有它:

$ locate SDL_mixer.h
/usr/include/SDL/SDL_mixer.h
Run Code Online (Sandbox Code Playgroud)

(我安装了Devel Tools组,以及很多其他开发包)

但是当我开始构建时,我得到SDL_mixer文件未找到错误.

$ make

Build started using:
compiler: "gcc -Wimplicit -Wdeclaration-after-statement -O2 -funswitch-loops -fomit-frame-pointer -DNDEBUG -DUSING_LTO -flto -fno-stack-protector  -W -Wall -Werror-implicit-function-declaration -Wpointer-arith -Wextra  -funsigned-char -fno-strict-aliasing -DNO_GCC_BUILTINS -D_FORTIFY_SOURCE=2 -fjump-tables -Wno-unused-result  -Wno-char-subscripts -DUSE_LIBPNG -DUSE_LIBVPX -Isource -Ibuild/include -Isource/jmact -Isource/jaudiolib/include -Isource/enet/include  -fno-pic -DHAVE_GTK2 -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/include/libdrm -I/usr/include/harfbuzz    -DHAVE_INTTYPES -DSDL_TARGET=2 -I/usr/include/SDL2 -D_REENTRANT -DRENDERTYPESDL=1 -DMIXERTYPESDL=1 -Wno-strict-overflow -DUSE_OPENGL -DNOASM -DPOLYMER  -Wno-attributes"
linker: " -flto  -Wl,-Map=start.memmap     -lrt -lFLAC -lvorbisfile -lvorbis …
Run Code Online (Sandbox Code Playgroud)

sdl makefile sdl-mixer

5
推荐指数
1
解决办法
3583
查看次数

标签 统计

makefile ×1

sdl ×1

sdl-mixer ×1