-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
[ffmpeg] build failure on x64-linux and x64-linux-release #42919
Comments
report vcpkg opengl or dnf opengl? what's library? |
I am trying to reproduce this issue, but it is currently blocked by another error. This may take some time. |
config.log:
On Ubuntu, this is in libglx-dev. |
How is it now? /usr/bin/ld: /github/home/vcpkg/installed/x64-linux-release/lib/libavcodec.a(h264_intrapred_10bit.o): warning: relocation against |
Do you try to link the static lib into a shared lib? |
yes.miss -fPIC compile flag..But it works fine onubuntu
|
I don't think this is true. (As I said, there might be a misleading error message.)
Not a healthy vcpkg installation. |
Sorry, I haven't studied vcpkg. I don't understand what the problem is. |
There are outdated packages. If you don't know how to update the installed packages, retry with a fresh vcpkg installation. |
same error:opengl not found. |
It is the same as the original error. That error indicates a lack of system packages for development. This is part of what the opengl port has to say:
|
./vcpkg install ffmpeg[all-nonfree,iconv,drawtext,fontconfig,amf,ass,fdk-aac,nvcodec,qsv,x264,x265,postproc]:x64-linux link command: |
That is the subissue which entirely different from the original issue (and title). For that problem, there is no immediate solution. The static library is usable to link executables. I assume that the proposal in that error message is misleading as usual: vcpkg does compile with
FTR the port uses |
I compiled it myself, it was too troublesome and had too many problems. |
Operating system
rockylinux9
Compiler
No response
Steps to reproduce the behavior
Failure logs
-- Extracting source /__w/test/test/vcpkg/downloads/ffmpeg-ffmpeg-n7.1.tar.gz
-- Applying patch 0001-create-lib-libraries.patch
-- Applying patch 0002-fix-msvc-link.patch
-- Applying patch 0003-fix-windowsinclude.patch
-- Applying patch 0004-dependencies.patch
-- Applying patch 0005-fix-nasm.patch
-- Applying patch 0007-fix-lib-naming.patch
-- Applying patch 0013-define-WINVER.patch
-- Applying patch 0020-fix-aarch64-libswscale.patch
-- Applying patch 0024-fix-osx-host-c11.patch
-- Applying patch 0040-ffmpeg-add-av_stream_get_first_dts-for-chromium.patch
-- Applying patch 0041-add-const-for-opengl-definition.patch
-- Applying patch 0043-fix-miss-head.patch
-- Using source at /__w/test/test/vcpkg/buildtrees/ffmpeg/src/n7.1-d40f62baf3.clean
-- Getting CMake variables for x64-linux-release
-- Building Options: --enable-pic --disable-doc --enable-debug --enable-runtime-cpudetect --disable-autodetect --target-os=linux --enable-pthreads --cc=cc --host_cc=cc --cxx=c++ --nm=nm --ar='ar' --ranlib=ranlib --strip=strip --enable-nonfree --enable-gpl --enable-version3 --disable-ffmpeg --disable-ffplay --disable-ffprobe --enable-avcodec --enable-avdevice --enable-avformat --enable-avfilter --enable-postproc --enable-swresample --enable-swscale --enable-alsa --enable-amf --enable-libaom --enable-libass --disable-avisynth --enable-bzlib --enable-libdav1d --enable-libfdk-aac --enable-libfontconfig --enable-libharfbuzz --enable-libfreetype --enable-libfribidi --enable-iconv --enable-libilbc --enable-lzma --enable-libmp3lame --enable-libmodplug --enable-cuda --enable-nvenc --enable-nvdec --enable-cuvid --enable-ffnvcodec --enable-opencl --enable-opengl --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-openssl --enable-libopus --enable-sdl2 --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --disable-libtensorflow --disable-libtesseract --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-zlib --enable-libsrt --enable-libmfx --enable-encoder=h264_qsv --enable-decoder=h264_qsv --enable-cross-compile --pkg-config="/bin/pkg-config" --pkg-config-flags=--static
-- Building Release Options: --enable-optimizations --extra-ldflags=-L"/__w/test/test/vcpkg/installed/x64-linux-release/lib"
-- Building ffmpeg for Release
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
Command failed: /usr/bin/bash ./build.sh
Working Directory: /__w/test/test/vcpkg/buildtrees/ffmpeg/x64-linux-release-rel
Error code: 1
See logs for more information:
/__w/test/test/vcpkg/buildtrees/ffmpeg/build-x64-linux-release-rel-config.log
/__w/test/test/vcpkg/buildtrees/ffmpeg/build-x64-linux-release-rel-out.log
Call Stack (most recent call first):
ports/ffmpeg/portfile.cmake:737 (vcpkg_execute_required_process)
scripts/ports.cmake:196 (include)
error: building ffmpeg:x64-linux-release failed with: BUILD_FAILEDbuild-x64-linux-release-rel-config.log
build-x64-linux-release-rel-out.log
Additional context
build on github actions.
The text was updated successfully, but these errors were encountered: