Package Details: openmodelica 1.19.2-1

Git Clone URL: (read-only, click to copy)
Package Base: openmodelica
Description: Open-source Modelica-based modeling and simulation environment
Upstream URL:
Licenses: OSMC-PL
Submitter: hobbypunk
Maintainer: kyak (xantares)
Last Packager: xantares
Votes: 7
Popularity: 0.049969
First Submitted: 2017-10-02 19:23 (UTC)
Last Updated: 2022-07-11 16:43 (UTC)

Dependencies (18)

Required by (0)

Sources (1)

Latest Comments

kyak commented on 2022-07-22 05:52 (UTC)

@xantares ping?

kyak commented on 2022-07-16 08:19 (UTC)

@xantares lapack-static is missing from AUR. Why did you push this change?

Also, why it depends on both lapack and lapack-static?

kyak commented on 2022-07-08 07:45 (UTC)

@xantares done

xantares commented on 2022-07-07 07:37 (UTC)

can you add me to maintainers ?

kyak commented on 2022-06-21 18:40 (UTC)

Guys, I'm calling out for co-maintainers. If you are willing to help, please let me know.

xantares commented on 2022-06-07 07:26 (UTC)

I think you may want to append to CXX flags, not replace them:

export CXXFLAGS="${CXXFLAGS} -std=c++14"

kyak commented on 2022-03-05 04:54 (UTC)

@FlashNoob98 yes. If you really need this, feel free to send patches.

FlashNoob98 commented on 2022-03-04 09:46 (UTC)

Hi, is there any way to generate a .desktop file with correct icon of OMEdit?

kyak commented on 2021-09-21 17:10 (UTC)

@xantares omniORB is a dependency of OMOptim and thus required. Please check

xantares commented on 2021-09-15 08:12 (UTC) (edited on 2021-09-15 08:21 (UTC) by xantares)

omniorb is compiled as part of the package (see 3rd party directory of omcompiler)

you can check the package dependencies with namcap and see it's never linked anywhere

I'm compiling openmodelica-omc withouth these and its fine

kyak commented on 2021-09-10 16:45 (UTC)

@xantares please provide more details as to why omniorb is not necessary.

xantares commented on 2021-08-03 18:21 (UTC)

turns out omniorb is not necessary

kyak commented on 2021-07-15 17:12 (UTC)

@jhq, wow, I was so sure I've committed the cherry-pick -n thing.

I've pulled all of your changes and bumped the pkgrel this time.

Thank you!

Please let me know if everything works for you as well.

jhq commented on 2021-07-15 13:13 (UTC)

I was able to compile it (in a clean container) with the following changes:

  • Add the -n flag to cherry pick command
  • Add antlr4-runtime as dependency
  • Export CXXFLAGS=-std=c++14 for netstream (thanks for reporting this upstream!)

Thanks for your effort!

Diff of my changes:

diff --git a/PKGBUILD b/PKGBUILD
index e0ef6c7..8624d27 100644
@@ -8,7 +8,7 @@ license=('OSMC-PL')
 depends=('java-environment' 'lapack' 'openscenegraph' 'omniorb' 'libcurl-gnutls'
          'lpsolve' 'boost-libs' 'qt5-webkit' 'qt5-xmlpatterns' 'qt5-svg' 'qt5-tools'
-         'expat')
+         'expat' 'antlr4-runtime')
 makedepends=('gcc-fortran' 'cmake' 'git')
@@ -18,13 +18,14 @@ prepare() {
         git remote set-url origin ${_giturl}
         git submodule update --force --init --recursive
         # OMCompiler: Dont try to install translations
-        git cherry-pick 2a39a402d9604a1ce353b0a12574fed5d320be0e
+        git cherry-pick -n 2a39a402d9604a1ce353b0a12574fed5d320be0e
         # Fix build with cmake >= 3.20
-        git cherry-pick 4f3a50974f0f916efd716809699f18d47f1dbe34
+        git cherry-pick -n 4f3a50974f0f916efd716809699f18d47f1dbe34

 build() {
         cd "${pkgname}"
+        export CXXFLAGS=-std=c++14
         autoreconf -fi
         ./configure --prefix=/usr

kyak commented on 2021-06-27 08:34 (UTC)

I've reported upstream here:

cxashundo commented on 2021-06-22 18:50 (UTC)

@jhq I managed to fix the issue by calling ./configure with CC = clang and CXX = clang++. You might try that.

kyak commented on 2021-06-21 18:10 (UTC) (edited on 2021-06-21 18:11 (UTC) by kyak)


I've changed git cherry pick to git cherry-pick -n so it doesn't try to commit. I assume this should not require git configuration now. I didn't bump the package version because it doesn't change anything in the package and would only cause lengthy rebuilds for existing users.

As for your error, I can confirm that I see the same error. This is probably due to newer gcc version. You should report upstream, since this is not a package issue.

jhq commented on 2021-06-20 16:26 (UTC)

Thanks for maintaining this package!

I have some problems when building this. I use aur sync -c openmodelica which builds in a clean clontainer:

First, I need to configure git user and email for the cherry-pick to work (otherwise I get "git error: please tell me who you are")

Second, (if I fix the above), I get many errors like this one:

src/netstream-storage.cpp:371:71: error: ISO C++17 does not allow dynamic exception specifications
  371 |         void NetStreamStorage::checkReadSafe(unsigned int num) const  throw(std::invalid_argument)
      |                                                                       ^~~~~
make[4]: *** [Makefile:53: obj/netstream-storage.o] Error 1

Any idea in how to fix this?

kyak commented on 2021-05-09 14:01 (UTC)

Hi everyone,

I took over this package ownership and intend to improve it over the time. Suggestions are welcome!