ubuntu@bpi-m2z:~/cap-v4l2$ ./build_script.sh
Building cap with local header....
In file included from /usr/include/opencv2/core/core.hpp:48,
from cap.c:57:
/usr/include/opencv2/core.hpp:49:4: error: #error core.hpp header must be compiled as C++
49 | # error core.hpp header must be compiled as C++
| ^~~~~
In file included from /usr/include/opencv2/core.hpp:54,
from /usr/include/opencv2/core/core.hpp:48,
from cap.c:57:
/usr/include/opencv2/core/base.hpp:49:4: error: #error base.hpp header must be compiled as C++
49 | # error base.hpp header must be compiled as C++
| ^~~~~
In file included from /usr/include/opencv2/core.hpp:54,
from /usr/include/opencv2/core/core.hpp:48,
from cap.c:57:
/usr/include/opencv2/core/base.hpp:54:10: fatal error: climits: No such file or directory
54 | #include <climits>
| ^~~~~~~~~
compilation terminated.
done!
With your 19.10 server release.
git clone https://github.com/avafinger/cap-v4l2 cd cap-v4l2
sudo ./install_deps.sh
Dependencies are installed with no errors.When running the build.
./build_script.sh