To make it simple, I want to use the OpenCV libs within my embedded ElinOS system, while programming on my Windows machine.
To do so, I downloaded OpenCV sources for Linux on the website and I'm trying to compile it using cygwin and cmake to generate the Makefile. However, I have an error occuring during the "make" step, which is
/usr/include/wchar.h:41:25: fatal error : bits/wchar.h : No such file or directory
INC = -I/cygdrive/c/sysgo/opt/elinos-6.0/cdk/x86/x86_64/eglibc-2.17/x86_64-unknown-linux-gnu/include/
one way for you might be to clear the standard include path completly:
first delete standard path with
-nostdinc and then put your own directories in it.
you might not want loose all of them, here is a way to see which are used in the standard include path:
echo "//" | gcc -xc++ -E -v - (works also with clang)
Here is a fine article for this for gcc :
here you can read it works with clang too: