Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling error: fatal error: 'wchar.h' file not found #9

Open
pingor opened this issue Mar 15, 2023 · 2 comments
Open

Compiling error: fatal error: 'wchar.h' file not found #9

pingor opened this issue Mar 15, 2023 · 2 comments

Comments

@pingor
Copy link

pingor commented Mar 15, 2023

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

@pingor
Copy link
Author

pingor commented Mar 15, 2023

Got solution from stackoverflow, it works for me.
pls refer to : https://cmichel.io/fixing-cpp-compilation-bugs-for-the-mac-os-catalina-upgrade/

@pingor
Copy link
Author

pingor commented Mar 15, 2023

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant