I'm getting this error:
ninja: fatal: invalid -j parameter
==> ERROR: A failure occurred in build().
Aborting...
-> error making: meshlab-exit status 4
Git Clone URL: | https://aur.archlinux.org/meshlab.git (read-only, click to copy) |
---|---|
Package Base: | meshlab |
Description: | System for processing and editing of unstructured 3D models arising in 3D scanning (qt5 version) |
Upstream URL: | https://www.meshlab.net |
Licenses: | GPL2 |
Submitter: | bartus |
Maintainer: | bartus |
Last Packager: | bartus |
Votes: | 120 |
Popularity: | 0.70 |
First Submitted: | 2020-09-18 22:35 (UTC) |
Last Updated: | 2025-09-26 18:28 (UTC) |
I'm getting this error:
ninja: fatal: invalid -j parameter
==> ERROR: A failure occurred in build().
Aborting...
-> error making: meshlab-exit status 4
solved. tnx.
Could you please update this package to the latest version (2025.07)?
After building for some time, at step 666/1629 I get the error
FAILED: src/external/downloads/nexus-master/src/CMakeFiles/nexus.dir/nxsbuild/meshstream.cpp.o
/usr/bin/g++ -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_WIDGETS_LIB -I/<path to user>/.cache/yay/meshlab/src/build/src/external/downloads/nexus-master/src/nexus_autogen/include -I/<path to user>/.cache/yay/meshlab/src/meshlab/src/external/downloads/nexus-master/src -I/<path to user>/.cache/yay/meshlab/src/meshlab/src/vcglib -I/usr/include/eigen3 -I/<path to user>/.cache/yay/meshlab/src/meshlab/src/external/downloads/nexus-master/src/corto/include -isystem /usr/include/qt -isystem /usr/include/qt/QtWidgets -isystem /usr/include/qt/QtGui -isystem /usr/include/qt/QtCore -isystem /usr/lib/qt/mkspecs/linux-g++ -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/<path to user>/.cache/yay/meshlab/src=/usr/src/debug/meshlab -flto=auto -O3 -DNDEBUG -std=gnu++11 -fPIC -fopenmp -fPIC -MD -MT src/external/downloads/nexus-master/src/CMakeFiles/nexus.dir/nxsbuild/meshstream.cpp.o -MF src/external/downloads/nexus-master/src/CMakeFiles/nexus.dir/nxsbuild/meshstream.cpp.o.d -o src/external/downloads/nexus-master/src/CMakeFiles/nexus.dir/nxsbuild/meshstream.cpp.o -c /<path to user>/.cache/yay/meshlab/src/meshlab/src/external/downloads/nexus-master/src/nxsbuild/meshstream.cpp
In file included from /<path to user>/.cache/yay/meshlab/src/meshlab/src/vcglib/wrap/io_trimesh/import.h:68,
from /<path to user>/.cache/yay/meshlab/src/meshlab/src/external/downloads/nexus-master/src/nxsbuild/vcgloader.h:5,
from /<path to user>/.cache/yay/meshlab/src/meshlab/src/external/downloads/nexus-master/src/nxsbuild/meshstream.cpp:28:
added -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to _cmake_flags, and the problem was solved. However, there is a warning message when opening that requires embree
to be installed to fix it. Maybe that should be added as a dependency.
Opened a github issue as well, not sure which method is preferred
@bartus I added -DCMAKE_POLICY_VERSION_MINIMUM=3.5
to _cmake_flags
to make it build now, as per suggestion in the error message.
Does this work? It loads up for me but the main UI window doesn't show anything (on wayland).
from /home/simona/.cache/yay/meshlab/src/build/src/common/meshlab-common_autogen/mocs_compilation.cpp:3:
/home/simona/.cache/yay/meshlab/src/meshlab/src/vcglib/vcg/math/matrix44.h:34:10: fatal error: Eigen/Core: File o directory nonesistente
34 | #include <Eigen/Core>
| ^~~~~~~~~~~~
I’ve encountered the same detached HEAD issue described by @mostlyharmless and @ctag. It seems the latest commit isn’t associated with any branch on the aur remote.
The GitHub repository at github.com/AUR-meshlab (from the pinned comment) checks out fine, so this suggests the issue might arise when syncing changes from GitHub to the aur remote (however its done).
I was using aurutils and had to manually fetch and cherry-pick the offending commit onto the master branch in the checked out repo (i.e. ~/.cache/aurutils/sync/meshlab
)
I had the same issue as mostlyharmless when using yay. Building with makepkg directly worked though.
When I git clone or use an AUR helper such as yay, I get a Detached [HEAD] warning. git branch -av reveals that I am on (no branch) with the latest commit having to do with the u3d plugin. As a workaround I've made a local branch with git branch and git checkout.
Is anyone else experiencing this?
Pinned Comments
bartus commented on 2020-05-30 16:49 (UTC) (edited on 2020-05-30 16:49 (UTC) by bartus)
Some plugins (mainly render ones like SSAO) won't work with new cmake build system, will try to port
qmake
patches tocmake
and fix those.bartus commented on 2019-04-10 11:42 (UTC) (edited on 2021-08-26 06:58 (UTC) by bartus)
Please report
issues
andpatches
to github.com/AUR-meshlab