-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arch Linux theora compilation CMake error 'Could not find a configuration file for package "Ogg" that is compatible with requested version ' #118
Comments
|
Nope. I already had libogg installed. Also installed libogg-lib32 just in case, but unfortunately it didn't help. |
I am not sure, if this is really related to ps2sdk-ports, probably you should post it here: xiph/theora#14 |
That's what I thought as well, but git pulling the relevant repo pull request and manually cmake .. and make worked without any issue, so I figured it's either an issue with my system or the build script's cmake parameters. |
So after testing in two VMs (Arch Linux, where it had the same error and Ubuntu 22.04 LTS where it worked flawlessly) I discovered the culrpit is cmake.
For whatever reason, the cmake in Arch Linux (version 3.26.3) ignores all local cmake config files and tries to find the system ones, even if I removed the OggConfig from my system it wouldn't search the local directory and it would produce the following error
, whereas Ubuntu's cmake (version cmake 3.16.3) doesn't produce the same warning and works flawlessly. Edit: So I tried to compile the repo with binaries straight from cmake's website (ver 3.26.3) and it works in Ubuntu normally though now the warnings appear as well. In Arch Linux I still have the error with Ogg. I'm at a loss on what could be causing this. I didn't even have the libogg-dev package installed in Ubuntu when I built it. Edit 2: Found a workaround/solution For some reason even if it's literally the same executable cmake's FIND_PACKAGE behavior is different between Ubuntu and Arch. Both try to search $PS2SDK (it's included in $PATH) but for some reason only in Ubuntu it searches one layer deeper i.e. $PS2SDK/ports where it finds the rest of the path "lib/cmake/Ogg/OggConfig.conf". In Arch it only searches $PS2SDK and then it gives up. Specifying $PS2SDK/ports by adding the following cmake parameter Sry for the spamming. |
I think that you can provide the PR. This modification is safe for another platforms, so it will not break anything. |
Trying to build the repo fails on my machine. I'm not sure what causes it
From a little investigating it fails when it tries to build 'theora' which it does from the build-cmakelibs.sh file
BTW manually cloning the theora repo with the pull request and running cmake without any options builds normally.
Here's the log.
The text was updated successfully, but these errors were encountered: