If you encounter the error configure: error: Cannot find osgEarth 2.7 or later. Set WITH_OSGEARTH=no in configure.user to disable this feature or install an up to date version of osgEarth.
, the problem is that /usr/lib/libosgEarthUtil.so
is missing (I don't know why). A workaround is to disable OSG Earth as mentioned in the error message (by setting WITH_OSGEARTH=no
in the configure.user
file). Here is a patch for the PKGBUILD
:
diff --git a/PKGBUILD b/PKGBUILD
index 8ca222c..2bbf006 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -40,6 +40,7 @@ build() {
LD_LIBRARY_PATH=${srcdir}/${_pkgname}-${pkgver}/lib:$LD_LIBRARY_PATH
sed -i 's!OMNETPP_ROOT/images!OMNETPP_ROOT/images;/usr/share/omnetpp/images!' configure*
+ sed -i 's!WITH_OSGEARTH=yes!WITH_OSGEARTH=no!' configure.user
sed -i '/for arg in \$ac_configure_args/,+8 d' configure
./configure --prefix=/usr
Pinned Comments
ekkelett commented on 2021-04-27 08:40 (UTC) (edited on 2021-04-27 08:43 (UTC) by ekkelett)
I'll try to bring this package and omnetpp-preview into line with one another.
The paths issue seems to be fairly straightforward: the order of creating the prerequisite installation directories is not correct.
That being said, I'm likely to move almost all of the installation into /opt/omnetpp rather than spreading it across the FHS. I'd like to hear back from you what you'd prefer and what you think about that.
EDIT: Note that requesting an amended PKGBUILD without the defects that h3ndrk pointed out is not done through flagging the package as out of date. 5.6.2 is still current. Please leave a comment instead.