Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register
  • Index
  • » Users
  • » euardF
  • » Profile

Posts

Posts

Jan-15-17 13:05:19
emscripten setup
Category: Developer

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.

  • Index
  • » Users
  • » euardF
  • » Profile
You are here: