Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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);
}

I included $BOOST_ROOT to VS 2010 project properties -> C/C++ -> General -> Additional Include Directories.

same error is defined in http://www.richelbilderbeek.nl/CppCompileErrorJpeglibHnoSuchFileOrDirectory.htm but declared solution did not resolve my problem.

like image 805
orko Avatar asked May 29 '13 15:05

orko


2 Answers

the jpeg library is missing perhaps?

sudo apt-get install libjpeg-dev

^that solved my problem

like image 124
Mazen Fakih Avatar answered Nov 01 '22 01:11

Mazen Fakih


sudo dnf install libjpeg-turbo-devel on fedora.

like image 35
TizonDife Villiard Avatar answered Nov 01 '22 01:11

TizonDife Villiard