jni4android
jni4android copied to clipboard
Compiling error: fatal error: 'wchar.h' file not found
After download this project, I got a compiling error:
/usr/local/Cellar/llvm@4/4.0.1/bin/../include/c++/v1/wchar.h:119:15: fatal error: 'wchar.h' file not found #include_next <wchar.h> ^~~~~~~~~ 1 error generated.
The current compiling path cannot find wchar.h, or get wrong path. My work environment is MacOS Catalina v10.15.7,I try many times, but the issue still exists
Got solution from stackoverflow, it works for me. pls refer to : https://cmichel.io/fixing-cpp-compilation-bugs-for-the-mac-os-catalina-upgrade/
Got solution from stackoverflow, it works for me. pls refer to : https://cmichel.io/fixing-cpp-compilation-bugs-for-the-mac-os-catalina-upgrade/
According to the above solution, add below line into compile-android-j4a.sh: export CPLUS_INCLUDE_PATH=/usr/local/opt/llvm/include/c++/v1:/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include (you can modify "MacOSX10.15.sdk" with your own folder)