Hi, The build is failing here:
/tmp/trizen-marc/simgear/PKGBUILD: line 32: cd: /tmp/trizen-marc/simgear/src/sgbuild: No such file or directory
This directory doesn't exist (same problem with makepkg directly)
Git Clone URL: | https://aur.archlinux.org/simgear.git (read-only, click to copy) |
---|---|
Package Base: | simgear |
Description: | A set of open-source libraries designed to be used as building blocks for quickly assembling 3d simulations, games, and visualization applications. |
Upstream URL: | http://home.flightgear.org/ |
Licenses: | GPL |
Submitter: | Barthalion |
Maintainer: | acxz |
Last Packager: | acxz |
Votes: | 24 |
Popularity: | 0.000289 |
First Submitted: | 2018-01-05 16:49 (UTC) |
Last Updated: | 2023-12-31 01:08 (UTC) |
Hi, The build is failing here:
/tmp/trizen-marc/simgear/PKGBUILD: line 32: cd: /tmp/trizen-marc/simgear/src/sgbuild: No such file or directory
This directory doesn't exist (same problem with makepkg directly)
thanks @FredBezies
Fixed and updated PKGBUILD:
# Maintainer: Jake <aur@ja-ke.tech>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: William Rea <sillywilly@gmail.com>
# Contributor: Hans Janssen <hans@janserv.xs4all.nl>
pkgname=simgear
pkgver=2019.1.1
_pkgver=${pkgver%.*}
pkgrel=1
pkgdesc="A set of open-source libraries designed to be used as building blocks for quickly assembling 3d simulations, games, and visualization applications."
arch=(x86_64)
depends=('glu' 'glut' 'freealut' 'plib' 'openscenegraph34')
makedepends=('boost' 'cmake' 'mesa')
license=("GPL")
url="http://www.flightgear.org/"
options=('makeflags' 'staticlibs')
source=("https://downloads.sourceforge.net/project/flightgear/release-${_pkgver}/${pkgname}-${pkgver}.tar.bz2")
sha256sums=('201ed4cc841aa99e1c84acb3035a95fa36a77dd96c0dca290c46d21a290a548b')
prepare() {
cd "$srcdir"/simgear-$pkgver
sed -i -e "s|#include <simgear/structure/map.hxx>|#include <simgear/structure/map.hxx>\n#include <boost/utility/enable_if.hpp>|g" simgear/nasal/cppbind/NasalHash.hxx
}
build() {
cd "$srcdir"/simgear-$pkgver
mkdir ../sgbuild && cd ../sgbuild
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib -DENABLE_TESTS=OFF -DCMAKE_BUILD_TYPE=Release ../simgear-${pkgver}
make
}
package() {
cd "$srcdir"/simgear-$pkgver
make DESTDIR="$pkgdir" install
}
I have this message while trying to install simgear:
:: openscenegraph34 and openscenegraph are in conflict (openscenegraph). Remove openscenegraph? [y/N]
Is it still needed to pin openscenegraph to 3.4 version?
Thanks :)
Thanks Marc_Eberhard and NicolasV! Patching it in prepare now and updated the package.
Thanks NicolasV I was able to compile and install thanks to your comment. That worked for me
I was able to build simgear by adding this line just before the make:
sed -i -e "s|#include <simgear/structure/map.hxx>|#include <simgear/structure/map.hxx>\n#include <boost/utility/enable_if.hpp>|g" simgear/nasal/cppbind/NasalHash.hxx
I can confirm Marc_Eberhard's error
Same is true for the simgear-git package.
Looks like boost 1.69 needs an explicit include for enable_if:
--- simgear/nasal/cppbind/NasalHash.hxx.orig 2019-01-26 18:31:59.583625999 +0000 +++ simgear/nasal/cppbind/NasalHash.hxx 2019-01-26 18:32:14.363484701 +0000 @@ -24,6 +24,7 @@
#include <simgear/structure/map.hxx> #include <boost/iterator/iterator_facade.hpp> +#include <boost/utility/enable_if.hpp>
namespace nasal {
Pinned Comments
acxz commented on 2022-09-07 14:48 (UTC)
Development is on Github: https://github.com/acxz/flightgear-arch Please open issues and PRs there instead of commenting.