Package Details: ngsolve-git 6.2.2506.r203.gf6f7fcf-1

Git Clone URL: https://aur.archlinux.org/ngsolve-git.git (read-only, click to copy)
Package Base: ngsolve-git
Description: A general purpose Finite Element Library on top of Netgen.
Upstream URL: https://github.com/ngsolve/ngsolve
Licenses: LGPL-2.1-only
Submitter: ftschindler
Maintainer: FabioLolix
Last Packager: FabioLolix
Votes: 4
Popularity: 0.24
First Submitted: 2016-08-10 12:21 (UTC)
Last Updated: 2025-12-28 16:18 (UTC)

Latest Comments

FabioLolix commented on 2025-12-28 16:37 (UTC)

Still working on it

BoguesUser commented on 2025-12-28 12:31 (UTC) (edited on 2025-12-28 12:31 (UTC) by BoguesUser)

Ok. So I have no idea what I am doing but I set up a chroot to test some things out.

It appears to me that a few libraries were missing.

The second issue seems to be that it is trying to install netgen during the build process, when it doesn't have root access. I changed the PKGBUILD to use your netgen-git as a dependency instead.

The final depends list I have is lapack blas opencascade glu libxmu netgen-git and for makedepends I have git cmake python-pillow python-numpy pybind11 I'm not sure if I have those in the right spot but I just kept tacking on libraries where they felt like they should go when I got a build error.

Again, I don't know what I am doing but here is the PKGBUILD I ended up with. I added the netget-git as a package to my chroot after building it. I assume adding it here as netgen-git will work. I'm not positive though.

# Maintainer:
# Contributor: Fabio 'Lolix' Loli <fabio.loli@disroot.org>
# Contributor: Felix Schindler <aur at felixschindler dot net>

pkgname=ngsolve-git
pkgver=6.2.2506.r203.gf6f7fcf
pkgrel=1
pkgdesc="A general purpose Finite Element Library on top of Netgen."
url=https://github.com/ngsolve/ngsolve
license=(LGPL-2.1-only)
arch=(x86_64 i686)
depends=(lapack blas opencascade glu libxmu netget-git)
makedepends=(git cmake python-pillow python-numpy pybind11)
#options=(!buildflags)
source=("git+https://github.com/NGSolve/ngsolve.git")
md5sums=('SKIP')

pkgver() {
  cd ngsolve
  git describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
        local _flags=(
    -DNETGEN_DIR=/usr \
    #-DUSE_UMFPACK=ON \
        )

  cmake -B build -S "ngsolve" -Wno-dev \
    -DCMAKE_BUILD_TYPE=None \
    -DCMAKE_INSTALL_PREFIX=/usr \
    "${_flags[@]}"

  cmake --build build
}

package() {
  DESTDIR="${pkgdir}" cmake --install build
}

BoguesUser commented on 2025-12-28 02:44 (UTC)

I have emailed it to you.

FabioLolix commented on 2025-12-27 12:41 (UTC)

@BoguesUser can you send me a full log? (don't paste here in the comments), last time I tried to build this in early December had several problems which I don't recall at the moment

BoguesUser commented on 2025-12-27 12:37 (UTC) (edited on 2025-12-27 12:37 (UTC) by BoguesUser)

When trying to install this package with yay, I'm getting build errors stating it cannot make /usr/lib/cmake/netgen/, /usr/include/pybind11, or /usr/include/include due to lack of permissions.

heitzmann commented on 2021-09-10 12:46 (UTC) (edited on 2021-11-12 09:48 (UTC) by heitzmann)

I had to go back to openblas-lapack, so the error reappeared. It is possible to fix by manually setting '-DLAPACK_LIBRARIES=/usr/lib/libopenblas.so' in the cmake command, if anyone happens to be in the same situation.

ftschindler commented on 2021-03-30 08:34 (UTC)

@heitzmann Thx for letting us know! I will see if I can adapt the PKGBUILD accordingly...

heitzmann commented on 2021-03-29 18:51 (UTC)

If anyone finds the same error, it seems that the AUR package openblas-lapack is the culprit. I replaced it with blas/cblas/lapack from the main repos and compilation works again.

heitzmann commented on 2021-03-26 14:56 (UTC) (edited on 2021-03-26 14:57 (UTC) by heitzmann)

I'm getting the following errors in the past couple of days:

[ 27%] Performing configure step for 'suitesparse'
CMake Error: Unknown argument -ldl
CMake Error: Run 'cmake --help' for all supported options.
make[2]: *** [CMakeFiles/suitesparse.dir/build.make:92: umfpack/src/suitesparse-stamp/suitesparse-configure] Error 1
make[1]: *** [CMakeFiles/Makefile2:139: CMakeFiles/suitesparse.dir/all] Error 2

I don't think it comes from ngsolve itself, I don't know what else changed that could be causing that. Ideas?