#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.
the jpeg library is missing perhaps?
sudo apt-get install libjpeg-dev
^that solved my problem
sudo dnf install libjpeg-turbo-devel
on fedora.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With