Package perf is missing dependencies for the following libraries: libcap.so.2

install -m0755 /home/openwrt/master/openwrt/build_dir/target-x86_64_musl/linux-x86_64/linux-5.4.31/tools/perf-target-x86_64_musl/perf /home/openwrt/master/openwrt/build_dir/target-x86_64_musl/linux-x86_64/linux-5.4.31/tools/perf-target-x86_64_musl/ipkg-x86_64/perf/usr/bin/
find /home/openwrt/master/openwrt/build_dir/target-x86_64_musl/linux-x86_64/linux-5.4.31/tools/perf-target-x86_64_musl/ipkg-x86_64/perf -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf
Package perf is missing dependencies for the following libraries:
libcap.so.2
make[3]: *** [/home/openwrt/master/openwrt/bin/targets/x86/64/packages/perf_5.4.31-3_x86_64.ipk] Error 1
make[3]: Leaving directory `/home/openwrt/master/openwrt/package/devel/perf'
time: package/devel/perf/compile#79.19#8.74#13.35
make[2]: *** [package/devel/perf/compile] Error 2
make[2]: Leaving directory `/home/openwrt/master/openwrt'

Add libcap to dependencies of your project.

https://openwrt.org/docs/guide-developer/dependencies

1 Like

I added the dependency package, but compiling perf_5.4.31 still prompts me that there is no libcap.so.2Screen Shot 2020-04-13 at 21.56.58

Add +libcap to the DEPENDS:= line in the Makefile for perf

1 Like