--- Build fails with PAMAC, this is an issue with the GUI package manager
The makepkg defaults seem wrong:
from PKGBUILD
build() { cd ${srcdir}/${_name}
cd libs/openFrameworksCompiled/project
msg2 "Building openFrameworks Debug version" make -j$cores Debug
msg2 "Building openFrameworks Release version" make -j$cores_JOBS Release
cd ${srcdir}/${_name}
msg2 "Building OF Project Generator tool..." cd apps/projectGenerator/commandLine make -j$cores Release
cd ${srcdir}/${_name}
msg2 "Building OF Project Generator interface..." cd libs/openFrameworksCompiled/project make -j$cores Release }
setting jobs/threads (-j) to cores i.e. 4 in my case kills the OS/computer. I spent 2 hours repeatedly trying to build this, only for my computer to freeze become unresponsive. When I turned jobs (-j) down to 2 the build took less than 10 minutes and didn't crash my computer.
https://wiki.archlinux.org/index.php/Makepkg#Parallel_compilation
Some PKGBUILDs specifically override this with -j1, because of race conditions in certain versions or simply because it is not supported in the first place. Packages that fail to build because of this should be reported on the bug tracker (or in the case of AUR packages, to the package maintainer) after making sure that the error is indeed being caused by your MAKEFLAGS.
Lastly, more of a warning to others who may wish to try this package: The basic example with no user code, and the gui plugin alone compiles on QtCreator to generate a 54Mb executable (WTF indeed).
Pinned Comments
marcs commented on 2020-01-02 12:43 (UTC) (edited on 2020-01-02 13:08 (UTC) by marcs)
I know @damir, for some reason it's a path problem with aur-helpers, it seems that if the helper saves the package in a hidden folder then the Makefile fails.
For example yay saves this package in
$HOME/.cache/yay/openframeworks
(which is awful IMO) and start building it. If you move the package folder to a non hidden folder (like your$HOME
folder for example) then the build works.It's a bug with OpenFrameworks, hopefully will be resolved.
For now clone this package and build it with
makepkg
.