Boost::GIL 'jpeglib.h':没有这样的文件或目录
Boost::GIL 'jpeglib.h': No such file or directory
#include <boost/gil/gil_all.hpp>
#include <boost/gil/extension/io/jpeg_io.hpp>
int main()
{
using namespace boost::gil;
rgb8_image_t img;
jpeg_read_image("test.jpg",img);
}
我包含$BOOST_ROOT到VS 2010项目属性-> C/c++ -> General -> Additional Include Directories.
相同的错误定义在http://www.richelbilderbeek.nl/CppCompileErrorJpeglibHnoSuchFileOrDirectory.htm中但是声明的解决方案并没有解决我的问题
jpeg库可能缺失?
sudo apt-get install libjpeg-dev
sudo dnf install libjpeg-turbo-devel
on fedora.
安装或绑定具有标准JPEG兼容API的库:
- JPEG
- JPEG-turbo
- MozJPEG 等
下面是一个例子:https://github.com/ohhmm/generator/blob/741e9921c6c7083d7126fb018d941939d60a6612/picture-pattern-generate/CMakeLists.txt#L5
相关文章:
- .cpp和.h文件中的模板专用化声明
- 为什么两个不同的未命名名称空间可以共存于一个cpp文件中
- 文本文件中的单词链表
- CMake-按正确顺序将项目与C运行时对象文件链接
- 使用新行和不使用新行读取文件
- 在C++程序中输入的文本文件将不起作用,除非文本被复制和粘贴
- 挂起和取消挂起一个文件DLL
- 如何确定我已使用非编码文件到达 EOF?
- 命名空间中具有.h和.cpp文件的类
- 如何使用ndk-build.cmd构建Android.so文件
- 从包含m行的文件中提取n行,必要时(惰性地)重复该文件
- 读取文件并输入到矢量中
- 在C++中查找文件
- c++库的公共头文件中应该包含什么
- 用c++从输入文件中读取另一行
- Cppcheck生成xml转储文件
- 如何使用 jpeglib.h 获取文件是否为 JPEG 类型
- 从文件中读取原始压缩缓冲区.jpg使用 jpeglib
- 找不到'jpeglib.h'文件
- Boost::GIL 'jpeglib.h':没有这样的文件或目录