@Tanghe : I believe I ran into the same issue (at least Ninja related; I didn't save the output after all and can't get it back). However, I finally managed to run my first successful build by disabling Ninja after it failed in the first place:
- Package Details: openrv-git 2.1.0.r280.dd73ec4-1
export CMAKE_GENERATOR="Unix Makefiles" # Uncomment to not use Ninja
Also, to enable audio (as suggested), I added
sed -i '/"aac"/d' cmake/dependencies/ffmpeg.cmake
to prepare()
Thanks 1000x @meepzh ! I appreciate your work!
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!