OpenCV: fatal error: openjpeg.h: No such file or directory - opencv

I'm trying to install the OpenCV on WSL2 by following the manuscript at
https://docs.opencv.org/4.x/d7/d9f/tutorial_linux_install.html
CMake was successfully done.But the make -j{my_core} occurs the error message
fatal error: openjpeg.h: No such file or directory
How can I solve this problem?

Related

Install R lgmnet package for Mac M1 chip fails

I'm trying to install R package lgmnet but failed.
the warning message
'
make: /opt/R/arm64/bin/gfortran: No such file or directory
make: *** [coxnet5dpclean.o] Error 1
ERROR: compilation failed for package ‘glmnet’
removing ‘/Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library/glmnet’
'
I installed gfortran as instructed in https://github.com/fxcoudert/gfortran-for-macOS/releases, but when I try to run the complier it returns error message:
'(base) MacBook-Pro:~ cheng$ gfortran
gfortran: fatal error: no input files
compilation terminated.'
I'm no pro in R or bash, could someone please help or point me to the right posts?

MSP430 compiler not found when using Contiki-NG

I'm trying to simulate a Sky mote with the Cooja simulator shipped with the Contiki-NG project. I access the simulator as stated at their wiki:
cd contiki-ng/tools/cooja
ant
But when I try to compile the hello-world example, which seems to execute the command
make hello-world.sky TARGET=sky
Cooja returns the following error message:
> make hello-world.sky TARGET=sky
make: msp430-gcc: File or directory does not exists
make: msp430-gcc: File or directory does not exists
/bin/sh: 1: msp430-gcc: not found
/bin/sh: 1: msp430-gcc: not found
/bin/sh: 1: test: -lt: unexpected operator
CC ../../os/contiki-main.c
make: msp430-gcc: File or directory does not exists
make: *** [../../Makefile.include:366: build/sky/obj/contiki-main.o] Error 127
Process returned error code 2
I checked that the msp430-gcc was installed and that the file ../../os/contiki-main.c was ok. So why am I facing this error?

Why does the build fail trying to find boost.hpp?

I am trying to build IoTivity for iOS and following the instructions here but I keep getting this error which terminates the build.
service/resource-encapsulation/include/RCSException.h:33:10: fatal error: 'boost/config.hpp'
file not found
#include <boost/config.hpp>
^~~~~~~~~~~~~~~~~~
1 error generated.
scons: *** [out/ios/arm64/debug/service/resource-encapsulation/src/common/expiryTimer/src/ExpiryTimerImpl.o] Error 1
scons: building terminated because of errors.
When I look in my boost framework, I do see the config.hpp file. Does anyone have any ideas why it would be unable to find the file.

.cmake : fatal error LNK1107: invalid or corrupt file: cannot read at 0x1B1

am trying to build a openCV application in c++ using VisualStudio2017
debugging gives me the following error:
C:\opencv\build\install\x64\vc15\lib\OpenCVConfig-version.cmake
: fatal error LNK1107: invalid or corrupt file: cannot read at 0x1B1 `
i used the following link for installation
https://www.youtube.com/watch?v=mdeP8SdvSJw
i did refer to the different answers on this topic here. but, couldn't find the solution regarding cmake.

fatal error: 'clang-c/Index.h' file not found on OSX 10.9.4

I was trying to install clang_complete on OSX 10.9.4. However while running make I get the following error:
[ 66%] Building CXX object CMakeFiles/clic_add.dir/clic_add.cpp.o
/Users/bharat/Desktop/clang_indexer/clic_add.cpp:5:10: fatal error: 'clang-c/Index.h'
file not found
#include <clang-c/Index.h>
^
1 error generated.
I have clang, llvm-g++ and llvm-gcc. How do I resolve this error?
You can download source code for clang
svn checkout http://llvm.org/svn/llvm-project/cfe/trunk
The header should be in the include/clang-c folders, you can edit the cmake file and pass in the location of the header in the CPP flags (-I)
cmake file would be here:-
ycm/CMakeFiles/ycm_core.dir/flags.make

Resources