emscripten-core / emscripten-core/emscripten

emmake cmake not finding emscripten/bind.h on Windows

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

Description

I'm having problems including emscripten/bind.h on Windows that I don't get when building on MacOS. The compile error is:
```
C:\Users\vjohnson\Documents\cmake_processing_lib\src\AILEMProcessor.cpp(3,10): fatal error C1083: Cannot open include file: 'emscripten/bind.h': No such file or directory
[C:\Users\vjohnson\Documents\cmake_processing_lib\build\AILEMProcessor.vcxproj]
```
and I get it when I invoke emmake cmake --build . --target ALL_BUILD

The reference to bind.h in my source looks like this:
`#include `

I opened my command line session with the emcmdprompt.bat file as directed, and then use:

```
mkdir build
cd build
emconfigure cmake ..
```

to configure. At this point my PATH looks like this (which looks identical on my MacOS build:
`
C:\Users\vjohnson\Documents\AILBrowserDev\emscripten_project\emsdk;C:\Users\vjohnson\Documents\AILBrowserDev\emscripten_project\emsdk\fastcomp\emscripten;C:\Users\vjohnson\Documents\AILBrowserDev\emscripten_project\emsdk\node\12.9.1_64bit\bin;C:\Users\vjohnson\Documents\AILBrowserDev\emscripten_project\emsdk\python\2.7.13.1_64bit\python-2.7.13.amd64;C:\Users\vjohnson\Documents\AILBrowserDev\emscripten_project\emsdk\java\8.152_64bit\bin
`

Since clearly the path to fastcomp\emscripten does not go all the way on to the bind.h file (which is in emsdk\fastcomp\emscripten\system\include\emscripten), I have tried path qualifying the #include statement as follows, but nothing has worked.

`#include `
`#include `

What am I doing wrong? I have noticed btw that when I use cmake .. it produces larger Windows project files in the build directory, and different output than when I use emconfigure cmake ..

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.