NTNU-IHB / FMI4cpp

FMI 2.0 implementation written in modern C++.
MIT License
93 stars 34 forks source link

Could not load dynamic libary #105

Closed FuBuman closed 3 years ago

FuBuman commented 3 years ago

if im loading my FMU, i get this Error:

\v0.7.0-85bef849b4.clean\src\fmi2\fmi2_library.cpp:91: Unable to load dynamic library '-------"......\fmi4cpp_MFLEX_Blocks_FMU_RobotPlattformControlled_52703516/binaries/win32/MFLEX_Blocks_FMU_RobotPlattformControlled.dll'! 126

markaren commented 3 years ago

I can only speculate on the cause. Does it work in other tools?

FuBuman commented 3 years ago

i just tried it out in Visual studio, my fmu does not support Modelexchange, has it any impacts cause of that?

markaren commented 3 years ago

I doubt it. The error occurs during Windows LoadLibrary, so I'm guessing you will get the same error in other tools. So this is probably not a fmi4cpp issue. That's why I asked if it works in other tools, fmilib, fmpy etc. It might be caused by missing dlls on your system, but I can only speculate.

FuBuman commented 3 years ago

i treid it out today with fmPy, it works there

markaren commented 3 years ago

Then I guess it is a bitness issue. VS is default 32 bit no? FMPy probably ran it in 64 bit mode.

FuBuman commented 3 years ago

so... i tried it out, its seems to be a 32/64 bit problem ;) maybe you should write only a 32 bit support in the readme. next person will thank you ;)

markaren commented 3 years ago

maybe you should write only a 32 bit support in the readme. next person will thank you

Well, it's a FMU issue not a fmi4cpp issue.