emscripten-core / emscripten-core/emscripten

Including files directly from the emscripten source tree is not supported

Open
#17,024 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

I encountered this problem when trying to build with cmake command as below :
`cmake \
-G Ninja \
-DCMAKE_TOOLCHAIN_FILE={cmake-emsdk-path}/
... `
then the error occurs
_"Including files directly from the emscripten source tree is not supported. Please use the cache/sysroot/include directory"._
I use emsdk 3.1.9,cmake 3.16.3,ubuntu20.0.4.
I use headers in my cpp file as fellows.
```
#include
#include
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.