From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yk0-f172.google.com (mail-yk0-f172.google.com [209.85.160.172]) by dpdk.org (Postfix) with ESMTP id 8F726E72 for ; Tue, 3 Nov 2015 14:34:38 +0100 (CET) Received: by ykft191 with SMTP id t191so15242162ykf.0 for ; Tue, 03 Nov 2015 05:34:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=ecG7Bg8bHmyzDE3KljoPpFn8R4fCQaq7O9LOvYtBcHM=; b=nT6ofogB1PHSfcDiKww3fwDYWU3Gq4jFiGT+pyQWems3VWFyPETkhBiWkV2ID6dvVJ 4IHrTfEpzv8eU9OlyXelfftht4NPDTuhYIzwW/eDrE7tRMZuyoUBWKTf+u/0xq7qb2lA DOmVNpWrvwrunHG2cvInv1vZ47fsBikJ/XUDgozSjMk3dxS++rkZIE16rr22mu/L4AMg EmCgwybP4QbYH3JQ8O9T9KWa/txZ7XcU5mYkab7ufwkaRLWKUgGpCP0wBC2h2m8AECxe 9OVPmRNSW27h736k3yiztMPXdOffGalO1wQNXuC3Qyih3NsL42QeCMTuJzN7gfbXccJh P0kw== X-Received: by 10.129.2.194 with SMTP id 185mr10501401ywc.331.1446557678051; Tue, 03 Nov 2015 05:34:38 -0800 (PST) MIME-Version: 1.0 From: Nicholas Brown Date: Tue, 03 Nov 2015 13:34:28 +0000 Message-ID: To: "dev@dpdk.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] pkg-config .pc file for dpdk X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Nov 2015 13:34:39 -0000 Hi, I've found a couple of mentions of this in the past: http://dpdk.org/ml/archives/dev/2014-January/001136.html (discussing having to dpdk app makefiles and having to pass defines as compiler args) and: http://dpdk.org/dev/patchwork/patch/4263/ (discussing providing a .pc for apps to use) Is anyone working on having dpdk generate a pkg-config .pc file? For the project I work on, using autotools, to be able to easily use the PKG_CHECK_MODULES() macro I hacked a simple static .pc file that met my needs: prefix=/usr exec_prefix=${prefix} libdir=${prefix}/lib includedir=${prefix}/include Name: dpdk Description: dpdk library Version: 2.0 Libs: -L${libdir} -ldpdk Cflags: -I${includedir}/dpdk -include $dpdk_prefix/include/dpdk/rte_config.h -DRTE_MACHINE_CPUFLAG_SSE -DRTE_MACHINE_CPUFLAG_SSE2 -DRTE_MACHINE_CPUFLAG_SSE3 -DRTE_MACHINE_CPUFLAG_SSSE3 -DRTE_COMPILE_TIME_CPUFLAGS=RTE_CPUFLAG_SSE,RTE_CPUFLAG_SSE2 ,RTE_CPUFLAG_SSE3,RTE_CPUFLAG_SSSE3 -m64 -march=core2 Clearly this not ideal, and it would be better if dpdk generated and installed a .pc file based build configuration used to generate the library. Anyone familiar with dpdk makefiles who can detail what might be needed to generate the .pc from them? Cheers, Nick