[dpdk-dev] pkg-config file generated with meson

David Marchand david.marchand at redhat.com
Thu Nov 29 14:55:36 CET 2018


Hello Bruce,

I built v18.11 with meson and had a little look at the libdpdk.pc file.
It looks like pkg-config works fine with --libs but is recursively opening
libdpdk.pc when asking for the cflags:

$ PKG_CONFIG_PATH=build/meson-private:$PKG_CONFIG_PATH pkg-config --libs
libdpdk
-L/usr/local/lib64 -lrte_telemetry -lrte_bpf -lrte_flow_classify
-lrte_pipeline -lrte_table -lrte_port -lrte_vhost -lrte_security
-lrte_sched -lrte_reorder -lrte_rawdev -lrte_pdump -lrte_power -lrte_meter
-lrte_member -lrte_lpm -lrte_latencystats -lrte_kni -lrte_jobstats
-lrte_ip_frag -lrte_gso -lrte_gro -lrte_eventdev -lrte_efd
-lrte_distributor -lrte_cryptodev -lrte_compressdev -lrte_cfgfile
-lrte_bitratestats -lrte_bbdev -lrte_acl -lrte_timer -lrte_hash
-lrte_metrics -lrte_pci -lrte_ethdev -lrte_net -lrte_mbuf -lrte_mempool
-lrte_ring -lrte_eal -lrte_kvargs -lrte_cmdline

$ PKG_CONFIG_PATH=build/meson-private:$PKG_CONFIG_PATH pkg-config --cflags
libdpdk
Failed to open 'build/meson-private/libdpdk.pc': Too many open files
Package 'libdpdk', required by 'DPDK', not found

$ PKG_CONFIG_PATH=build/meson-private:$PKG_CONFIG_PATH strace pkg-config
--cflags libdpdk 2>&1|grep -c 'open(.*libdpdk.pc'
1022

I must be doing something wrong...
I use meson 0.47.2 and dpdk is only built locally, not installed on the
system.


-- 
David Marchand


More information about the dev mailing list