Skip to content
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

Issue in linking process on systems with multiple ffmpeg versions installed #444

Closed
i0ntempest opened this issue May 31, 2024 · 3 comments
Closed

Comments

@i0ntempest
Copy link

I have ffmpeg v4 and v6 installed from MacPorts on macOS 14.5. v4 is at the default prefix (/opt/local), while v6 is installed in a separate prefix (/opt/local/libexec/ffmpeg6). I have prepended /opt/local/libexec/ffmpeg6/lib/pkgconfig into pkgconfig search path env variable and the configure script can detect ffmpeg v6 and passes. However after building and installing, binaries are still linked to the old libraries in /opt/local/lib. There's probably some sort of bug in the configure process.
Full build log:
main.log

@dwbuiten
Copy link
Member

Are you sure your v6 libraries are actually in the proper path for ld.so to find (e.g. via LD_PRELOAD_PATH)? This sounds more like a runtime issue than a build time issue.

@i0ntempest
Copy link
Author

I've checked with otool -L. Linked libraries are the same wether v4 is available or not after building the software.

@i0ntempest
Copy link
Author

Turns out this is a problem in MacPorts' build environment, LDFLAGS is missing -L/opt/local/libexec/ffmpeg6/lib. Fixed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants