[FFmpeg-trac] #9330(undetermined:new): commit 7ec7e6aa2d394d8d25472c55c5da2e44b0a60041 (configure: use pkg-config for xlib/Xv) breaks linking, can't build
FFmpeg
trac at avcodec.org
Thu Jul 15 05:08:32 EEST 2021
#9330: commit 7ec7e6aa2d394d8d25472c55c5da2e44b0a60041 (configure: use pkg-config
for xlib/Xv) breaks linking, can't build
-------------------------------------+-------------------------------------
Reporter: tjackson | Owner: (none)
Type: defect | Status: new
Priority: critical | Component:
| undetermined
Version: git-master | Resolution:
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by tjackson):
I don't know if it's correct but this fixes it for me:
diff --git a/configure b/configure
index 5ef94e7ccd..1bac59c963 100755
--- a/configure
+++ b/configure
@@ -6194,8 +6194,8 @@ check_func_headers windows.h Sleep
check_func_headers windows.h VirtualAlloc
check_func_headers glob.h glob
enabled xlib && {
- check_pkg_config xlib xv "X11/Xlib.h X11/extensions/Xvlib.h"
XvGetPortAttribute ||
- check_lib xlib "X11/Xlib.h X11/extensions/Xvlib.h" XvGetPortAttribute
-lXv -lX11 -lXext; }
+ check_pkg_config xext xlib xv "X11/extensions/Xext.h" "X11/Xlib.h
X11/extensions/Xvlib.h" XvGetPortAttribute ||
+ check_lib xlib "X11/Xlib.h X11/extensions/Xvlib.h" XvGetPortAttribute
-lXext -lXv -lX11; }
check_headers direct.h
check_headers dirent.h
--
Ticket URL: <https://trac.ffmpeg.org/ticket/9330#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list