dkoerner
dkoerner

Reputation: 111

building boost with emscripten on windows

I am trying to build boost using emscripten on windows. In particular, I am trying to use the emscripten toolset as suggested in https://stackoverflow.com/a/47751199/5969590. However, this produces the following error for me:

C:\dev\emsdk\python\3.9.2-1_64bit\python.exe: can't open file 'c:\dev\boost_1_76_0\emcc.py': [Errno 2] No such file or directory

Somewhere in the toolchain boost tries to invoke emcc.py using python, but fails by passing the wrong module path (there is no emcc.py in c:\dev\boost_1_76_0\).

Any help or hint is greatly appreciated.

Best, David

Upvotes: 2

Views: 388

Answers (1)

dkoerner
dkoerner

Reputation: 111

Problem was related to this: What is the reason for batch file path referenced with %~dp0 sometimes changes on changing directory?

I solved the problem by hacking emcc.bat to use hardcoded path to the emcc.py file.

Upvotes: 1

Related Questions