转:fatal error: SDL/SDL.h: No such file or directory

Ubuntu的新得立已经包含SDL库,所以通过几个简单的命令就可以安装,比windows还傻瓜!

sudo apt-get install libsdl1.2-dev(比较大,10M左右)

附加包: sudo apt-get install libsdl-image1.2-dev

    sudo apt-get install libsdl-mixer1.2-dev

    sudo apt-get install libsdl-ttf2.0-dev

    sudo apt-get install libsdl-gfx1.2-dev

安装完成之后,在目录/usr/include中,就会有个SDL文件夹,里面包含了所需要的头文件。

时间: 2024-08-24 22:22:47

转:fatal error: SDL/SDL.h: No such file or directory的相关文章

fatal error: openssl/sha.h: No such file or directory 解决方案

出现这个或者fatal error: openssl/名单.h: No such file or directory.都是没有安装libssl-dev- libssl-dev包含libraries, header files and manpages,他是openssl的一部分,而openssl对ssl进行了实现- 解决方案: 使用sudo apt-get install libssl-dev来安装libssl-dev即可

lua.c:80:31: fatal error: readline/readline.h: No such file or directory

make linuxcd src && make linuxmake[1]: Entering directory `/root/lua/lua-5.3.2/src'make all SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -ldl -lreadline"make[2]: Entering directory `/root/lua/lua-5.3.2/src'gcc -std=gnu99 -O2 -Wa

解决fatal error: sys/system_properties.h: No such file or directory compilation terminated.

编译的异常log: system/core/include/cutils/properties.h:22:35: fatal error: sys/system_properties.h: No such file or directory compilation terminated. make[1]: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libinput_intermediates/<strong>xxxxx</strong>

cocos2d-x 移植到android中编译的一些问题:fatal error: Box2D/Box2D.h: No such file or directory&amp;quot;

1.fatal error: Box2D/Box2D.h: No such file or directory" 须要加入box2d库的支持,改动android.mk文件,例如以下: 查看文本打印? LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := game_shared LOCAL_MODULE_FILENAME := libgame LOCAL_SRC_FILES := hellocpp/main.cpp \

cocos2d-x3.2中fatal error: cocostudio/CocoStudio.h: No such file or directory

Android工程环境下jni/android.mk 需要自己手动把引用cocostudio引用库添加上才可以编译 代码参考如下 LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_static LOCAL_WHOLE_STATIC_LIBRARIES += cocosdenshion_static LOCAL_WHOLE_STATIC_LIBRARIES += box2d_static LOCAL_WHOLE_STATIC_LIBRARIES += cocostu

错误: fatal error: bits/libc-header-start.h: No such file or directory #include &lt;bits/libc-header-start.h&gt;

出现这个错误时,这多半是你所编译的项目是在64位机器上生成32位的项目,你需要安装对应的gcc 32位的库:此时检查gcc一定有-m32的存在: 你系统中gcc没有安装multilib 库:使用这个库可以在64位的机器上产生32位的程序或者库文件: 你可以选择:apt install gcc-multilib进行完善安装: 也可以只编译特定平台的文件: 例如 make x86_64: 具体编译的目标,请查看Makefile文件进行阅读: 保持更新,转载请注明出处:更多内容请关注cnblogs.c

fatal error: openssl/opensslv.h: No such file

ubuntu系统pip安装paramiko报错fatal error: openssl/opensslv.h: No such file or directory 首先根据报错检查OpenSSL是正常安装的,查看openssl-devel是没有安装的,尝试安装无法安装成功,网上搜索了一下看到这篇文章https://jingyan.baidu.com/article/ea24bc39f72681da62b331d7.html是因为缺少libssh-dev,安装之后可以正常安装paramiko模块了

error: zlib.h:no such file or directory

今天在编译openssl时,出现了 error: zlib.h:no such file or directory 去看了下出错的文件,里面这么一句#include c_zlib.c:25:19: fatal error: zlib.h: No such file or directory # include <zlib.h> zlib地址:http://www.zlib.net/ zlib标准安装指导: /usr/local/src/zlib-1.2.8 构建静态库 .../zlib-1.2

Redis 2.8.18 安装报错 error: jemalloc/jemalloc.h: No such file or directory解决方法

错误描述 安装Redis 2.8.18时报错: zmalloc.h:50:31: error: jemalloc/jemalloc.h: No such file or directoryzmalloc.h:55:2: error: #error "Newer version of jemalloc required"make[1]: *** [adlist.o] Error 1make[1]: Leaving directory `/data0/src/redis-2.6.2/src

出错mlogc.c:32:23: error: curl/curl.h: No such file or directory

出现下列错误: mlogc.c:32:23: error: curl/curl.h: No such file or directory mlogc.c:1091: error: expected ')' before '*' token mlogc.c: In function 'logc_init': 出错原因:缺少libcurl-dev or libcurl-devel centOS上安装依赖包: yum install libcurl-dev libcurl-devel 出错mlogc.