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

[package] ffmpeg/4.4.4: ERROR: libx264 not found and building for macOS, but linking in object file built for free standing #26344

Open
stephane-archer opened this issue Jan 10, 2025 · 10 comments
Labels
bug Something isn't working

Comments

@stephane-archer
Copy link

Description

I have described the issues here: conan-io/conan#17556

Package and Environment Details

MacOS

Conan profile

[settings]
arch=x86_64
build_type=Release
compiler=apple-clang
compiler.cppstd=gnu17
compiler.libcxx=libc++
compiler.version=15
os=Macos
os.version=10.15

Steps to reproduce

build this repo on MacOS: https://github.com/JakubOchnik/Cube-LUT-Loader

Logs

Click to expand log
Put your log output here
@stephane-archer stephane-archer added the bug Something isn't working label Jan 10, 2025
@stephane-archer
Copy link
Author

ffmpeg/4.4.4 is impossible to compile on MacOS

@jcar87
Copy link
Contributor

jcar87 commented Jan 10, 2025

Hi @stephane-archer - thanks for opening this issue.

Will try to reproduce - but just double checking - is there any reason holding you back from using one of the more recent versions of ffmpeg?

@stephane-archer
Copy link
Author

this ffmpeg/4.4.4 is a dependency of opencv https://conan.io/center/recipes/opencv

@stephane-archer
Copy link
Author

I have documented the issue in more detail here: conan-io/conan#17556

@valgur
Copy link
Contributor

valgur commented Jan 10, 2025

Note: OpenCV 4.x builds just fine with the latest ffmpeg. A version bump in that recipe would be welcome.

@jcar87
Copy link
Contributor

jcar87 commented Jan 10, 2025

Thanks @stephane-archer -
could you please paste the entire build log of your project? or at least - need to check the beginning part (where Conan outputs the profiles and the resolved graph) - as well as the error itself
thanks!

@stephane-archer
Copy link
Author

With this profile:

[settings]
arch=x86_64
build_type=Release
compiler=apple-clang
compiler.cppstd=gnu17
compiler.libcxx=libc++
compiler.version=15
os=Macos
os.version=10.15

here is the log:
out.log

@stephane-archer
Copy link
Author

you can see at the end ERROR: libx264 not found. I would have expected conan to compile libx264 and not that I should provide it. Especially because I want to keep os.version=10.15 low and precompile libx264 doesn't meet this requirement

@stephane-archer
Copy link
Author

with this profile: (that provide libx264)

[settings]
arch=x86_64
build_type=Release
compiler=apple-clang
compiler.cppstd=gnu17
compiler.libcxx=libc++
compiler.version=15
os=Macos
os.version=14.0
[buildenv]
CXXFLAGS+= -I/usr/local/opt/x264/include
LDFLAGS+= -L/usr/local/opt/x264/lib
PKG_CONFIG_PATH+=(path)/usr/local/opt/x264/lib/pkgconfig

here is the log:
out.log

@stephane-archer
Copy link
Author

stephane-archer commented Jan 11, 2025

you can see the error message at the end: ld: in libswresample/libswresample.a(audio_convert.o), building for macOS, but linking in object file built for free standing, file 'libswresample/libswresample.a' for architecture x86_64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants