- Index
- » Developer
- » OpenModelica development
- » OpenModelica on OpenSuse Leap 15.2
OpenModelica on OpenSuse Leap 15.2
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
Cheers
Re: OpenModelica on OpenSuse Leap 15.2
Have you tried to compile it from source? What are the issues?
- adrpo
- 885 Posts
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`
- adrpo
- 885 Posts
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.
- adrpo
- 885 Posts
Re: OpenModelica on OpenSuse Leap 15.2
That trace suggested everything worked fine, right? Was the exit-status not 0?
- sjoelund.se
- 1700 Posts
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
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
- adrpo
- 885 Posts
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!
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.
- sjoelund.se
- 1700 Posts
- Index
- » Developer
- » OpenModelica development
- » OpenModelica on OpenSuse Leap 15.2