FFMS / ffms2

An FFmpeg based source library and Avisynth/VapourSynth plugin for easy frame accurate access
Other
574 stars 104 forks source link

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

Closed i0ntempest closed 1 month ago

i0ntempest commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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

i0ntempest commented 1 month ago

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