Yeah the build is also failing for me. Thx for all the work btw.
Creating glxew.html
--------------------------------------------------------------------
cp -f src/header.html ../doc/glxew.html
echo -e "<h2>Supported GLX Extensions</h2>\n" >> ../doc/glxew.html
bin/make_html.pl extensions/gl/GLX_* >> ../doc/glxew.html
cat src/footer.html >> ../doc/glxew.html
perl -i -pe 's#<a href="glxew.html">(.*)</a>#\1#' ../doc/glxew.html
perl -e "s/GLEW_MAJOR/2/g;s/GLEW_MINOR/2/g;s/GLEW_MICRO/0/g;" -p src/glew.rc > ../build/glew.rc
perl -e "s/GLEW_MAJOR/2/g;s/GLEW_MINOR/2/g;s/GLEW_MICRO/0/g;" -p src/glewinfo.rc > ../build/glewinfo.rc
perl -e "s/GLEW_MAJOR/2/g;s/GLEW_MINOR/2/g;s/GLEW_MICRO/0/g;" -p src/visualinfo.rc > ../build/visualinfo.rc
mkdir lib
cc -DGLEW_NO_GLU -DGLEW_BUILD -O2 -Wall -W -Wshadow -pedantic -Iinclude -fPIC -Wcast-qual -ansi -pedantic -fno-stack-protector -o tmp/linux/default/shared/glew.o -c src/glew.c
cc -shared -Wl,-soname=libGLEW.so.2.2 -o lib/libGLEW.so.2.2.0 tmp/linux/default/shared/glew.o -L/usr/X11R6/lib -L/usr/lib -lGL -lX11
ln -sf libGLEW.so.2.2.0 lib/libGLEW.so.2.2
ln -sf libGLEW.so.2.2.0 lib/libGLEW.so
strip -x lib/libGLEW.so.2.2.0
sed \
-e "s|@prefix@|/usr/local|g" \
-e "s|@libdir@|/usr/local/lib|g" \
-e "s|@exec_prefix@|/usr/local/bin|g" \
-e "s|@includedir@|/usr/local/include/GL|g" \
-e "s|@version@|2.2.0|g" \
-e "s|@cflags@||g" \
-e "s|@libname@|GLEW|g" \
-e "s|@libgl@|-lGL -lX11|g" \
-e "s|@requireslib@|glu|g" \
< glew.pc.in > glew.pc
cc -DGLEW_NO_GLU -DGLEW_STATIC -O2 -Wall -W -Wshadow -pedantic -Iinclude -fPIC -Wcast-qual -ansi -pedantic -fno-stack-protector -o tmp/linux/default/static/glew.o -c src/glew.c
ar -rv lib/libGLEW.a tmp/linux/default/static/glew.o
ar: creating lib/libGLEW.a
a - tmp/linux/default/static/glew.o
strip -x lib/libGLEW.a
cc -DGLEW_NO_GLU -O2 -Wall -W -Wshadow -pedantic -Iinclude -fPIC -Wcast-qual -ansi -pedantic -fno-stack-protector -o tmp/linux/default/shared/glewinfo.o -c src/glewinfo.c
cc -O2 -Wall -W -Wshadow -pedantic -Iinclude -fPIC -Wcast-qual -ansi -pedantic -fno-stack-protector -o bin/glewinfo tmp/linux/default/shared/glewinfo.o -Llib -Wl,-Bdynamic -lGLEW -L/usr/X11R6/lib -L/usr/lib -lGL
-lX11
strip -x bin/glewinfo
cc -DGLEW_NO_GLU -O2 -Wall -W -Wshadow -pedantic -Iinclude -fPIC -Wcast-qual -ansi -pedantic -fno-stack-protector -o tmp/linux/default/shared/visualinfo.o -c src/visualinfo.c
cc -O2 -Wall -W -Wshadow -pedantic -Iinclude -fPIC -Wcast-qual -ansi -pedantic -fno-stack-protector -o bin/visualinfo tmp/linux/default/shared/visualinfo.o -Llib -Wl,-Bdynamic -lGLEW -L/usr/X11R6/lib -L/usr/lib -lGL -lX11
strip -x bin/visualinfo
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
Aborting...
error: failed to build 'openrv-git-2.1.0.r244.6990de1-1':
error: packages failed to build: openrv-git-2.1.0.r244.6990de1-1
Pinned Comments
meepzh commented on 2023-09-05 12:19 (UTC) (edited on 2024-07-20 13:56 (UTC) by meepzh)
TLDR: Please download and install Qt5 into your home directory.
Hello! Sorry, this package is quite a mess, but it builds a working copy of Open RV, so hopefully it's a good first step for people.
The upstream build process expects you to download and install Qt5 into your home directory, from where it will then copy the relevant directory into its build folder. There are also commented-out lines that enable you to pass a tarball of the Qt files if you are trying to build in a chroot. I've tried to use the Arch-provided
qt5-base qt5-tools qt5-webengine qt5-xmlpatterns
, but it seems that the relative file paths of these files are important somehow. This is something that can be improved upon, perhaps by copying everything into a temp directory beforehand. I have includedqt5.patch
andpyside2-build_scripts.patch
if you want to try using Arch's Qt5 for yourself.I've also tried replacing the entirety of the downloaded dependencies with Arch-provided packages, and you can see an attempt at commit
8d342dc
. If you read the PKGBUILD there, you'll find that it takes a few too many environment variables to make RV just barely usable, but it does allow you to skip all the dependencies and use Arch'sffmpeg4.4
(nowffmpeg6.1
), which may support more codecs (that RV may not support regardless). Upstream has been discussing options for accomplishing this.I was unable to build this package in a clean chroot due to some strange issues detecting the float word endianness while building Python and issues building libswscale as a shared library for FFmpeg, but given that those issues appeared again for Open RV 2.1.0, maybe it is possible now.
If you're looking to add aac codec support to RV's copy of FFmpeg like myself for playback purposes, you can add
sed -i '/"aac"/d' cmake/dependencies/ffmpeg.cmake
under the PKGBUILD'sprepare
function. I'm not sure what implications this might have with RV's other functions.Definitely do leave any suggestions you might have. I've personally very happy to have RV on Arch Linux, so if you feel the same way, we can hopefully keep making this distribution better. Thanks!