From patchwork Wed Oct 24 05:15:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zachary Zhou X-Patchwork-Id: 10764 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 2A2C644AF2A for ; Wed, 24 Oct 2018 08:17:24 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 950B768A43C; Wed, 24 Oct 2018 08:16:55 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 5632268091C for ; Wed, 24 Oct 2018 08:16:48 +0300 (EEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Oct 2018 22:17:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,419,1534834800"; d="scan'208";a="101955650" Received: from u18-skl-zz.sh.intel.com ([10.239.159.29]) by fmsmga001.fm.intel.com with ESMTP; 23 Oct 2018 22:17:13 -0700 From: Zachary Zhou To: ffmpeg-devel@ffmpeg.org Date: Wed, 24 Oct 2018 13:15:56 +0800 Message-Id: <20181024051556.28539-1-zachary.zhou@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [FFmpeg-devel] [PATCH] tests/checkasm/Makefile: fix 'make fate' error when enable vaapi X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: zachary.zhou@intel.com MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Reproduce the issue: $ ./configure --enable-libmfx --enable-vaapi --enable-shared --samples=fate-suite/ $ make fate LD tests/checkasm/checkasm /usr/bin/x86_64-linux-gnu-ld: libavutil/libavutil.a(hwcontext_vaapi.o): undefined reference to symbol 'XDisplayName' //usr/lib/x86_64-linux-gnu/libX11.so.6: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status tests/checkasm/Makefile:71: recipe for target 'tests/checkasm/checkasm' failed make: *** [tests/checkasm/checkasm] Error 1 --- configure | 1 + 1 file changed, 1 insertion(+) diff --git a/configure b/configure index 85d5dd5962..f3e27cea10 100755 --- a/configure +++ b/configure @@ -6387,6 +6387,7 @@ if enabled vaapi; then if enabled xlib; then check_pkg_config vaapi_x11 "libva-x11" "va/va_x11.h" vaGetDisplay + check_pkg_config vaapi_x11 "libX11" "X11/Xlib.h" XDisplayName fi check_cpp_condition vaapi_1 "va/va.h" "VA_CHECK_VERSION(1, 0, 0)"