OpenModelica / OMSens

OpenModelica sensitivity analysis and optimization module.
12 stars 20 forks source link

Unable to build OMSens Linux #26

Open schrummy14 opened 1 year ago

schrummy14 commented 1 year ago

Hello, I am experiencing a build issue when following the README.

The first error I experienced was not having Cython installed. After installing this, I got the first build error that was looking for numpy.
OMSens_build.log

If I first installed numpy, I then get an error when building pandas 1.1.3 OMSens_build_numpy_installed.log

DIST: Ubuntu 22.04

Please let me know if you would like any additional information.

IvanLloro commented 3 months ago

I guess you are using the included (broken) setup.py. As per today, CMake does not work, either. The trick is to manually:

  1. Compile the fortran_interface:
  cd OMSens/fortran_interface
  gfortran -fPIC -c Rutf.for Rut.for Curvif.for
  f2py --verbose -c -I. Curvif.o Rutf.o Rut.o -m curvif_simplified curvif_simplified.pyf Curvif_simplified.f90
  1. Copy the OMSens directory into /usr/share/OMSens

I have just created an ebuild for Gentoo Linux for OpenModelica 1.23.1 which I guess I'll upload to Gentoo GURU repository at some point. It can work as a suitable install guideline.