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

how to build openModelica in windows

how to build openModelica in windows


First , thinks all of you create this great project, I want study and join it , but I fall down at first step----I cant compile it on my windows computer.

As title,II want compiler soure in my  windows computer
At step "start $OMDEV\tools\msys\mingw64.exe or $OMDEV\tools\msys\mingw32.exe and type"
I fund mingw64.exe not in dir "OMDEV\tools\msys"

emmm .Last, i want follow title "Compiling OMC using Eclipse"

I fund  so many virable in OpenModelica/.externalToolBuilders/OMDev-MINGW-OpenModelicaBuilder64bit.launch-sample  that I can setup well .


I hope you could make a more detail  doc with more screenshot or a video ?

thanks a lot !

Re: how to build openModelica in windows

Did you skip step 1? https://github.com/OpenModelica/OpenMod … v-MINGW.md

OMDev is where you installed it. Clone https://openmodelica.org/git/OMDev.git into C:\OMDev and set the OMDev environment variable to that location and you should get further.

Re: how to build openModelica in windows

yes , i do install OMDev ,  the path is C:\OMDev and I config system virable . mingw32.exe is not in  C:\OMDev\tools\msys\mingw32 .

just now, i download OpenModelicaEclipseWorkspace.zip    form https://www.openmodelica.org/documents/ , it dose not work .

i fund the config is wrong,  for example ,OMDev-MINGW-OpenModelicaBuilder -> Main ,  OMDev\tools\msys\bin\ not have make.exe

i hope more detail doc !

thank you

OMDev repository is  C:\OMDev from https://openmodelica.org/svn/OpenModeli … dows/OMDev

Edited by: peter - Mar-23-21 08:29:49

Re: how to build openModelica in windows

Note that OMDev repository from the SVN is old, you need the new one form GIT: https://openmodelica.org/git/OMDev.git

Read here how to clone the repository:
https://github.com/OpenModelica/OpenMod … v-MINGW.md

Re: how to build openModelica in windows

I follow your tips,  set  environment in eclipse, when i press ctrl + B, eclipse pop a  input window says "please input  a value" .  i hava no idea what to input.

Re: how to build openModelica in windows

There you can give targets to make or variables to consider when building. Just leave it empty (press Enter) if you just want to build the OpenModelica compiler (omc).
If you have more CPU cores, write -jNumberOfCores, so if you have 4 write -j4. The compilation will be faster if you have more cores. Write omedit in there if you want to build OMEdit.

Edited by: adrpo - Mar-31-21 10:47:28
There are 0 guests and 0 other users also viewing this topic
You are here: