From patchwork Tue Nov 12 10:55:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lance Wang X-Patchwork-Id: 16221 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 51603448D3D for ; Tue, 12 Nov 2019 13:24:32 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 2F96868A8B9; Tue, 12 Nov 2019 13:24:32 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pg1-f195.google.com (mail-pg1-f195.google.com [209.85.215.195]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 18D3968A6EB for ; Tue, 12 Nov 2019 13:24:26 +0200 (EET) Received: by mail-pg1-f195.google.com with SMTP id 15so11640437pgt.7 for ; Tue, 12 Nov 2019 03:24:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=iTQ8tfuoK1z3Ek0EUSYI7ztTtU9UXG6C4Zj1evmlJV4=; b=KY9yBCkkwJQ8WeJHOQvqZkiReIXFI3d9qMeq4k5p9gwaHTBqxxIBFmKZa0n6Ur3L6S pAvybcYNM5Aq5m6zo0FuOKzzTIkSw26t58ELkhgwOh0COKufU2bMKTGZjAOp8KQLQr60 oPSwdTpB9hudLF1yw0U8rSu6E4bz6cz4MsVEgfjpKWcZ98i67OCGJRUq+PG6cp/pHioG EizSScxClfswZJX1pD5EuI7LAcw+Z7qzT9yBt04dMWVwGvZMa/C6+glI4Sa2/pE+UR2D FfKxVGR0b1XMuXyLKA/5UBJ/rha1mkRciBPpF7hLHujNljKpW4+jrEvtQ74y8/j3Kgjk qYwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=iTQ8tfuoK1z3Ek0EUSYI7ztTtU9UXG6C4Zj1evmlJV4=; b=ehn2gITPrM3XbklUlsQTAAEMS2Oi5MnG2Ol0L6LXVP59YZVH214U/XHjbeBPwSKE6B xRtxVbRwuz7TC6pc41KgMberT/tdwOFcVpL0UyYYvsB9kx2QvwK/Uco2rGqtd6rZeed7 Dz08Stki18+KXOD+CuZSqigZYNGKyrBwzhJQGJwLz7wRArfby+pIRD28mSFNno1vVudr +Hv8ulxob4//tnIG/bsb3rK2K1sGZSVhysgcTY6tpip48D81mBQsCAZtGF12eGbwsOsk cl7KZFLwtfXJF3HPJsN/ryAS88IfTN77lNMFq+AnLNzC3GNPoOw6B3Dwf2S5AMLRcJQe jpyw== X-Gm-Message-State: APjAAAXjpgPTbOdrqIKV4PmwtdLdgUs/DTjoejz64vUrN4S2FdZW9oA7 Qy7dbK5D9tvEzSPsqTpea1i/hHgi X-Google-Smtp-Source: APXvYqwGGHxZzPZfbhzNGfyzFxtairzs83gcgMK+vP/6D6Qvv7cuoqRyxOe2jxxddGkBvrvyKVbjgQ== X-Received: by 2002:a63:e750:: with SMTP id j16mr35189018pgk.30.1573556178017; Tue, 12 Nov 2019 02:56:18 -0800 (PST) Received: from vpn.localdomain ([47.90.99.151]) by smtp.gmail.com with ESMTPSA id k2sm2387068pjl.5.2019.11.12.02.56.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Nov 2019 02:56:17 -0800 (PST) From: lance.lmwang@gmail.com To: ffmpeg-devel@ffmpeg.org Date: Tue, 12 Nov 2019 18:55:37 +0800 Message-Id: <20191112105537.5542-2-lance.lmwang@gmail.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20191112105537.5542-1-lance.lmwang@gmail.com> References: <20191112105537.5542-1-lance.lmwang@gmail.com> Subject: [FFmpeg-devel] [PATCH v1 2/2] configure: Fix for the configure failed for vmaf 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: Limin Wang MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" From: Limin Wang When enable-libvmaf with the vmaf master installed , it'll report below error: ERROR: libvmaf >= 1.3.9 not found using pkg-config In fact, after vmaf installed, the vmaf pkg-config filename is vmaf.pc, my build system is Centos7.4. Below is the debug info for why change libvmaf to vmaf in the patch: $ PKG_CONFIG_PATH=$your_pkg_path pkg-config --modversion libvmaf Package libvmaf was not found in the pkg-config search path. Perhaps you should add the directory containing `libvmaf.pc' to the PKG_CONFIG_PATH environment variable No package 'libvmaf' found $ PKG_CONFIG_PATH=$your_pkg_path pkg-config --modversion vmaf 1.3.16 $ ls ../../../3rdparty_img/lib/pkgconfig/vmaf.pc ../../../3rdparty_img/lib/pkgconfig/vmaf.pc $ cat ../../../3rdparty_img/lib/pkgconfig/vmaf.pc prefix=/home/lmwang/build/build_ffmpeg/../3rdparty_img libdir=${prefix}/lib includedir=${prefix}/include Name: libvmaf Description: VMAF, Video Multimethod Assessment Fusion Version: 1.3.16 Libs: -L${libdir} -lvmaf Libs.private: -lpthread Cflags: -I${includedir} Signed-off-by: Limin Wang --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 1de90e9..308ed3c 100755 --- a/configure +++ b/configure @@ -6312,7 +6312,7 @@ enabled libtwolame && require libtwolame twolame.h twolame_init -ltwolame die "ERROR: libtwolame must be installed and version must be >= 0.3.10"; } enabled libv4l2 && require_pkg_config libv4l2 libv4l2 libv4l2.h v4l2_ioctl enabled libvidstab && require_pkg_config libvidstab "vidstab >= 0.98" vid.stab/libvidstab.h vsMotionDetectInit -enabled libvmaf && require_pkg_config libvmaf "libvmaf >= 1.3.9" libvmaf.h compute_vmaf +enabled libvmaf && require_pkg_config libvmaf "vmaf >= 1.3.9" libvmaf.h compute_vmaf enabled libvo_amrwbenc && require libvo_amrwbenc vo-amrwbenc/enc_if.h E_IF_init -lvo-amrwbenc enabled libvorbis && require_pkg_config libvorbis vorbis vorbis/codec.h vorbis_info_init && require_pkg_config libvorbisenc vorbisenc vorbis/vorbisenc.h vorbis_encode_init