Opened 13 years ago

Closed 12 years ago

#1699 closed defect (worksforme)

FMI export does not work 'mkdir.exe" unknown command

Reported by: Hubert Thieriot Owned by: Hubert Thieriot
Priority: high Milestone:
Component: Backend Version:
Keywords: Cc: Hubert Thieriot

Description

Dear all,

trying to export as FMI a model from MSL, here is an error :

'"mkdir.exe"' unknown command (translation from french, cf. below).

Do I miss something ?

Best regards,

Hubert

Translation	17:51:08		0:0-0:0	Error building simulator. Buildlog: gcc  -I"C:/OpenModelica1.8.1//include/omc" -O2 -falign-functions -msse2 -mfpmath=sse   -I"C:/OpenModelica1.8.1//include/omc" -I. -L"C:/OpenModelica1.8.1/lib/omlibrary/Modelica 3.1/Mechanics"   -c -o Modelica.Mechanics.Translational.Examples.Brake_FMU.o Modelica.Mechanics.Translational.Examples.Brake_FMU.c
gcc  -I"C:/OpenModelica1.8.1//include/omc" -O2 -falign-functions -msse2 -mfpmath=sse   -I"C:/OpenModelica1.8.1//include/omc" -I. -L"C:/OpenModelica1.8.1/lib/omlibrary/Modelica 3.1/Mechanics"   -c -o Modelica.Mechanics.Translational.Examples.Brake.o Modelica.Mechanics.Translational.Examples.Brake.c
gcc  -I"C:/OpenModelica1.8.1//include/omc" -O2 -falign-functions -msse2 -mfpmath=sse   -I"C:/OpenModelica1.8.1//include/omc" -I. -L"C:/OpenModelica1.8.1/lib/omlibrary/Modelica 3.1/Mechanics"   -c -o Modelica.Mechanics.Translational.Examples.Brake_records.o Modelica.Mechanics.Translational.Examples.Brake_records.c
g++ -shared -I. -o Modelica.Mechanics.Translational.Examples.Brake.dll Modelica.Mechanics.Translational.Examples.Brake_FMU.o Modelica.Mechanics.Translational.Examples.Brake.o Modelica.Mechanics.Translational.Examples.Brake_records.o  -I"C:/OpenModelica1.8.1//include/omc" -I. -L"C:/OpenModelica1.8.1/lib/omlibrary/Modelica 3.1/Mechanics"  -L"C:/OpenModelica1.8.1/lib/omlibrary/Modelica 3.1/Mechanics"    -I"C:/OpenModelica1.8.1//include/omc" -O2 -falign-functions -msse2 -mfpmath=sse   -L"C:/OpenModelica1.8.1//lib/omc" -lSimulationRuntimeC -linteractive -lregex -lexpat  -static-libgcc -luuid -lole32 -lws2_32  -Wl,-Bstatic -lf2c -Wl,-Bdynamic -Wl,--kill-at
"mkdir.exe" -p Modelica.Mechanics.Translational.Examples.Brake
'"mkdir.exe"' n'est pas reconnu en tant que commande interne
ou externe, un programme ex‚cutable ou un fichier de commandes.
mingw32-make: *** [Modelica.Mechanics.Translational.Examples.Brake.dll] Error 1

Change History (5)

comment:1 by Adrian Pop, 13 years ago

You have to add %OPENMODELICAHOME%/MinGW/bin to the path when you start omc
from OMOptim process.

comment:2 by Adrian Pop, 13 years ago

Or you actually shouldn't need to do that because mingw32-make is in that directory.
This is rather strange. How do you try to use the FMI export?

comment:3 by Hubert Thieriot, 13 years ago

I used fmi export from OMEdit

comment:4 by Adrian Pop, 13 years ago

For me FMI exporting Modelica.Mechanics.Translational.Examples.Brake works fine.
I use OpenModelica1.8.1 revision 10984 (the beta afaik).
Do you have OMDEV env. var defined?
By any chance, do you have other MinGW or MSYS in your path?

comment:5 by Martin Sjölund, 12 years ago

Cc: hubert.thieriot, → hubert.thieriot
Component: Backend
Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.