I started with getting dcraw (https://github.com/6by9/dcraw) code and compiling it on Ubuntu machine (Ubuntu 20.04.1 LTS). For dcraw following needs to be installed, so I install it and I was able to compile code successfully.
sudo apt-get install libjasper-dev libjpeg8-dev gettext liblcms2-dev
Now I have install raspberry arm toolchain on my Ubuntu machine (by following https://solarianprogrammer.com/2018/05/06/building-gcc-cross-compiler-raspberry-pi/). The cross-compiler setup is successful.
Now when I try to compile dcraw using cross-compiler then it gives me error as below,
fatal error: jasper/jasper.h: No such file or directory 72 | #include <jasper/jasper.h> /* Decode Red camera movies */
I thought I need to install libjasper-dev (and other libs needed for dcraw) for armhf platform so I tried following,
sudo apt-get install libjasper-dev:armhf
but I am getting error like below,
E: Unable to locate package libjasper-dev:armhf
Same happens with other packages like libjpeg8-dev.
Question is,
Q1. Is it right that I need to install libjasper-dev for arm to compile code successfully?
Q2. If answer to Q1 is yes then How to install it on Ubuntu machine and get it working?
https://stackoverflow.com/questions/65820236/installing-packages-after-setting-up-raspberry-cross-compiler-on-ubuntu January 21, 2021 at 10:07AM
没有评论:
发表评论