- Index
- » Users
- » euardF
- » Profile
Posts
Posts
Page Start Prev 1 Next End
Jan-15-17 13:05:19
Topic:
compile to JavaScript
emscripten setup
Category:
Developer
Forum:
OpenModelica development
bolognesit wrote:
In Windows 10 emcc command is not recognized when mos script is launched (emcc is in path).
I found out the problem with Windows not finding the emcc command. The problem is with batch file "OpenModelica1.9.7\share\omc\scripts\Compile.bat". They override PATH environment variable on line 35
set PATH=%CD%;%CD%\..\libexec\gcc\mingw32\4.4.0\;
my solution:
set PATH=%CD%;%CD%\..\libexec\gcc\mingw32\4.4.0\;%OLD_PATH%;
After this you will be able to use emcc command (if your emcc works from clean command line)
The only problem left with my compilation was that the libraries in https://github.com/tshort/openmodelica-javascript are starting with "lib*" and emcc expects just "l*" (small L). After that the compilation threw some error, but the JS file was properly generated.
Page Start Prev 1 Next End
- Index
- » Users
- » euardF
- » Profile