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

OpenModelica on OpenSuse Leap 15.2

OpenModelica on OpenSuse Leap 15.2


Dear All ,

I am trying to install OpenModelica 1.17 on OpenSuse Leap 15.2.
What is the best way to do it? Compile from source or build a rpm ?

Many thanks

Re: OpenModelica on OpenSuse Leap 15.2

I had a problem installing OpenModelica on Leap 15.2 and now on Leap 15.3.
I have tried Tumbleweed as well.
Having opensuse rpm is really good, but I'm not sure why installation from source is that problematic.
If anyone has built from the source documented somewhere and can explain is much appreciated current/smile

Cheers

Re: OpenModelica on OpenSuse Leap 15.2

Have you tried to compile it from source? What are the issues?

Re: OpenModelica on OpenSuse Leap 15.2

I tried to compile it myself and found some small issues which are now fixed in the master.

This works for me:

Code:


sudo zypper install git-core autoconf automake clang11 gcc libexpat-devel gcc-fortran lapack libcurl-devel \
libqt5-qtbase libqt5-qtbase-devel libqt5-linguist libQt5WebKit5 libQt5WebKitWidgets-devel \
libQt5XmlPatterns5 libqt5-qtxmlpatterns-devel libqt5-qtsvg-devel readline-devel libtool \
ossp-uuid uuid-devel flex bison libboost*1_75*-devel libxml2-devel

git clone https://github.com/OpenModelica/OpenModelica.git --recursive
cd OpenModelica
./configure CC=clang CXX=clang++ QMAKE=/usr/bin/qmake-qt5 --with-cppruntime
make -j`nproc`

Re: OpenModelica on OpenSuse Leap 15.2

Hi,

Thank you very much for the reply.
I tried just now based on your instruction on Leap 15.3 and got an error :

Code:


make[1]: *** [Makefile.common:231: omc-and-runtimeCPPinstall] Error 2
make[1]: Leaving directory '/home/shahram/Documents/OpenModelica/OMCompiler'
make: *** [Makefile:12: omc.skip] Error 2

I'm not sure but is that something more to fix this issue?

Kind Regards

Re: OpenModelica on OpenSuse Leap 15.2

I need more info. Please do: make > trace.txt 2>&1
Then paste the trace.txt contents here.

Re: OpenModelica on OpenSuse Leap 15.2

Hi and thank you very much for the reply.
Please find attached trace.txt file as you required.

Kind Regards
trace.txt

Edited by: Amin Karimi - Jul-01-21 14:17:19
Attachments:

Re: OpenModelica on OpenSuse Leap 15.2

That trace suggested everything worked fine, right? Was the exit-status not 0?

Re: OpenModelica on OpenSuse Leap 15.2

Yes, trace.txt looks ok as far as I can see.
I tried again with

Code:

 make 

with no option.
this time I did not get any error.
However , I cannot find omc on my /use/bin patht.
Do I need to source that PATH as well?

Re: OpenModelica on OpenSuse Leap 15.2

It working now.
I just need to set symbolic link for that current/smile
Thank you all for the help.

All the best

Re: OpenModelica on OpenSuse Leap 15.2

I think you need to do "sudo make install" to actually install it as currently, via just "make" is just built in the OpenModelica/build directory.
I don't know what is the default prefix in the configure, but you can do:

Code:


./configure CC=clang CXX=clang++ QMAKE=/usr/bin/qmake-qt5 --with-cppruntime --prefix=/usr/
sudo make install

Re: OpenModelica on OpenSuse Leap 15.2

I actually did.
But nothing changed.
I still have

Code:

 error while loading shared libraries: libOMPlot.so.1: cannot open shared object file: No such file or directory

I tried with /usr/local and /usr/bin . non of them worked!

Edited by: Amin Karimi - Jul-01-21 21:28:35

Re: OpenModelica on OpenSuse Leap 15.2

If you have it built, the symlink or just launching OMEdit directly from the directory should work. If there is a problem, you need to use ldd to figure out what is going wrong. Perhaps

Code:

find build -name "*.so*"

would be helpful, too.

There are 0 guests and 0 other users also viewing this topic
You are here: