jpeglib.h jerror.h No such file or directory 以及 SDL/SDL.h: 没有那个文件

1. error: jpeglib.h jerror.h No such file or directory 没有那个文件或目录

jpeg.cc:19:21:error: jpeglib.h: 没有那个文件或目录 jpeg.cc:20:20: error: jerror.h: 没有那个文件或目录

解决安装libjpeg新立得软件包管理器->libjpeg62-dev

或者直接在终端输入命令:

sudo apt-get install libjpeg62-dev

 

2.SDL/SDL.h: 没有那个文件或目录等一些类似的错误

错误原因是缺少libsdl库:SDL是一个自由的跨平台的多媒体开发包,适用视频音频和其他应用的软件

可到这里下载libsdl库的源码http://www.libsdl.org/download-1.2.php

下载到pc解压缩tar zxvf SDL-1.2.15.tar.gz

进入SDL-1.2.15目录./configure生成Makefile

之后执行以下命令make ; make install;没有新的错误出现libsdl库已安装好了

可能出现报错:

./src/video/x11/SDL_x11dyn.h:45:33:error: X11/extensions/XShm.h: 没有那个文件或目录

需要再安装一个库:

sudo apt-get install libxext-dev

posted @ 2013-11-13 14:48  天王星天  阅读(2978)  评论(0编辑  收藏  举报