I am trying to build Opencv on Ubuntu 18.04.
When I run make I get the error:
grfmt_jpeg2000.cpp:59:10: fatal error: jasper/jasper.h: No such file or directory #include <jasper/jasper.h> ^~~~~~~~~~~~~~~~~
compilation terminated.I had already jasper installed and installed libjasperreports-java. However the file jasper.h cannot be found in my system. Is there any library I can install with apt install to get that file?
1 Answer
jasper.h is part of the libjasper-dev package. This package is not available in Ubuntu 18.04. So try downloading it and install using
cd ~/Downloads
wget
wget
sudo apt-get install ./libjasper-dev_1.900.1-debian1-2.4ubuntu1.3_amd64.deb ./libjasper1_1.900.1-debian1-2.4ubuntu1.3_amd64.deb 2