NTNU-IHB / FMI4cpp

FMI 2.0 implementation written in modern C++.
MIT License
95 stars 35 forks source link

FmuResource::getResourcePath() returns wrong path? #60

Closed kepakiano closed 5 years ago

kepakiano commented 5 years ago

When using the current master of omc to generate an FMU, the file <model>_info.json is put directly into the resources folder inside the FMU. However, FMI4cpp looks for it in the folder "resources" + getOs() + "/" + getLibExt(), which for me is resources/linux64/.so and thus cannot find the file. Is this a bug? When I remove adding getOs() and getLibExt() everything works as expected.

markaren commented 5 years ago

Yes, this is a bug I discovered recently. It was fixed 4 days ago in a335a32e7634fe68c224bad7dba514db79cb6ad4.

https://github.com/NTNU-IHB/FMI4cpp/blob/master/src/fmu_resource.cpp

markaren commented 5 years ago

Which version of FMI4cpp are you using btw, and how are you getting it? This fix will be in 0.7.0 which will be a pretty major release as far as breaking changes are concerned.

markaren commented 5 years ago

Closing since this fix is present on the master branch