-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
OBS Configure Fails Due to FFmpeg extra-version #11827
Comments
@Fenrirthviti In this bug, OBS builds successfully with ffmpeg 7.1 in my case. The issue is that cmake configure fails and the workaround is to rebuild ffmpeg without extra-version. This is actually a regression because IIRC about a month ago I could build OBS 31+ using my system ffmpeg 7.1 and there were no configure issues. But now I can only configure upto version 30.2.3 successfully if extra-version is present. Thus, I think it's incorrect to mark this as a duplicate of #11491. |
So, I think a patch to fix how cmake resolves ffmpeg version during configure stage may be needed to fix this issue if I'm not wrong. I'm just grasping at straws here as to the needed fix. |
Ah, yes, you're right this is slightly different. I can reopen. |
Please provide the line in your custom |
When I omit the |
Will be fixed by #11554. |
Operating System Info
Other
Other OS
Kali GNU/Linux Rolling 2024.4
OBS Studio Version
Other
OBS Studio Version (Other)
OBS 31.0.0-89-g265239d41 (from master branch)
OBS Studio Log URL
None required.
OBS Studio Crash Log URL
No response
Expected Behavior
FFmpeg extra-version should not affect the detection of ffmpeg development libraries by cmake. Thus OBS build configuration should succeed when ffmpeg has extra-version configured. By extra-version I mean the user-defined string appended to MAJOR.MINOR version after a dash. For instance in
7.1-MyBuild
,-MyBuild
is the extra-version. This is added to ffmpeg during configure stage using--extra-version=<string>
parameter.Current Behavior
My systemwide FFmpeg from repos is version
7.1-3+b2
. My custom FFmpeg instance at/opt/ffmpeg_ev
is version7.1-wonder+04.02.2025
. When FFmpeg build has extra-version configured, like my custom instance, cmake configuration of OBS build fails to detect FFmpeg libraries with the error below. Trying to configure OBS with the FFmpeg instance from my distro repo fails with a similar error. I've tried to configure various versions in the git tree, and I think this only affects OBS 31+.Steps to Reproduce
Attempt to configure OBS build using cmake preset
kali
Anything else we should know?
I built FFmpeg 7.1 twice and installed them. One instance of FFmpeg 7.1 was configured without
--extra-version
parameter and installed at/opt/ffmpeg
. The other instance of FFmpeg 7.1 was configured with--extra-version
parameter and installed at/opt/ffmpeg_ev
. I proceeded to modify repo packages by building ffmpeg from source -- enabled deb-src, apt build-dep, dpkg-buildpackage, etc. The ONLY change I made to the ffmpeg source was atffmpeg-7.1/debian/rules
where I just deleted one line--extra-version="$(DEB_REVISION)" \
from the ffmpeg configuration options. After installing the modified packages, cmake configure for OBS build succeeds. cmake configure also succeeds when I use FFmpeg instance without extra-version at/opt/ffmpeg
My cmake configure preset when using custom FFmpeg is:
My cmake build preset is:
FFmpeg extra-version makes cmake err in detecting ffmpeg libraries. Perhaps you need to refine how ffmpeg version is parsed?
The text was updated successfully, but these errors were encountered: