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
  • Index
  • » Users
  • » mahge
  • » Profile

Posts

Posts


It should be fixed now with https://github.com/OpenModelica/OpenMod … sues/8640.

@Youth Can you please check and verify?

We have now fixed the issues in

https://github.com/OpenModelica/OpenMod … 5b1e9e9a0d and https://github.com/OpenModelica/OpenMod … ts/pull/25

For both Linux and Windows installations. You should be able to download a new Windows build in about 3 hours. For the Linux ones you have to wait until tomorrow (or use a week old nightly build in the meantime).

Youth wrote:

BTW, I tried the Nightly Built on Windows just now but still same Error saying:

" External function ‘ModelicaStrings_compare‘ could not be found in any of the given shared libraries:   D:/OM/lib//omc/ModelicaExternalC.dll   D:/OM/lib/omlibrary/Modelica 3.2.3/Resources/Library/win64/ModelicaExternalC.dll   D:/OM/lib/omlibrary/Modelica 3.2.3/Resources/Library/ModelicaExternalC.dll
[7] 22:12:52 Translation Error [Modelica.Utilities.Strings: 123:5-123:80]: Failed to evaluate function: Modelica.Utilities.Strings.compare." 

Guessing from the error messages, I think the version you used does not include the new changes. The messages should be a bit different even if the library is not found (more directories listed).  I will see if it has indeed been built correctly.

I searched all my computer but no " ModelicaExternalC.so" was found.

I see. The issue is from our side. The package did not include everything needed. We will update it today and you can try the nightly build tomorrow. Sorry for the inconvenience.

In the meantime you can use the nightly builds from about a week ago. They should work fine on Linux.

I did upgrade today, but maybe I forgot to use /usr/bin/omc. If you change any file installed, you need to update the installer or you will break everyone's Linux install... https://github.com/OpenModelica/OpenMod … ter/debian

That is exactly what I just said.

The problem apparently is that the debian package selectively picks some libs instead of adding the whole /lib/x86_64-linux-gnu/omc/ folder. Examples from the script:

Code:

# MSL-external

debian/tmp/usr/lib/*/omc/libModelica*
debian/tmp/usr/lib/*/omc/libzlib**

for now I will add it manually as everything else. At some point we need to change it so that changes can be reflected in the package without having to manually list libraries.

> I think the weird part is looking in /omc/ffi. The ffi directory doesn't exist for me. What OMC version was this on Linux?

What version of omc do you have? If it is not a nightly build from a few days back the omc/ffi directory should not be there. Otherwise it should.

If it is missing for Youth then it is probably the package not including everything in /lib/x86_64-linux-gnu/omc/. Maybe it is including only /lib/x86_64-linux-gnu/*.a and /lib/x86_64-linux-gnu/*.so?

Hi Youth,

Can you please check if you have the file ModelicaExternalC.so somewhere in your /usr/lib folder? If not please try reinstalling OpenModelica. Otherwise we might have a faulty installer. I will check in the meantime.

  • Index
  • » Users
  • » mahge
  • » Profile
You are here: