modelica-3rdparty / ExternalMedia

The ExternalMedia library provides a framework for interfacing external codes computing fluid properties to Modelica.Media-compatible component models.
53 stars 36 forks source link

External function could not be found in any of the given shared libraries #106

Closed RasmusAPedersen closed 7 months ago

RasmusAPedersen commented 7 months ago

Hi!

I'm trying to implement a CoolProp ExternalMedia into an already working model by swapping out the medium at the beginning of the model. This throws an error that I can't figure out how to deal with. I've run the tests inside the ExternalMedia folder and they mostly run fine. I'm using OpenModelica 1.22.3 and I've installed ExternalMedia 4.0.0 through the OMEdit interface.

image

Regardless of the CoolProp media I choose, this is the error. I guess that makes sense, given that it can't find any of the external libraries. I've tried to read other github issues (including closed ones), but I haven't found any that seem to have the same problem. My next shot would be to try to compile everything on my machine, but I don't understand why installing through OMEdit isn't just plug-and-play, so to speak. I'm running on an Ubuntu 22 machine.

I'm pretty new to Modelica, so there might be something obvious that I have missed.

Thanks for the effort you all are putting into this.

Best Rasmus


I just tried compiling from source and manually putting the ExternalMedia library folder in the .openmodelica folder. It still throws the same error.

RasmusAPedersen commented 7 months ago

My issue was fixed by uninstalling and, importantly, purging omc completely from my machine. Reinstalling everything again as per the OpenModelica instructions online and installing ExternalMedia through OMEdit fixed it.