I have 2 libraries that exist at /usr/local/lib/libprotobuf.a and /usr/local/lib/libgrpc++.a. My waf script has
conf.check_cfg(package='protobuf', args='--cflags --libs', uselib_store="PROTOBUF")
conf.check_cfg(package='grpc++', args='--cflags --libs', uselib_store="GRPC")
when waf configure runs, it finds protobuf but says grpc++ isn't found.
Checking for 'protobuf' : yes
Checking for 'grpc++' : not found
How can it find 1 and not the other? How can I tell waf where to look for the grpc++ lib?
conf.check_cfg()use pkg-config files. You probably don't have a.pcfile forlibgrpc++in/usr/local/lib/pkgconfig.In any case, you can define your flags manually (see wafbook §10.3.3):
The first part a keyword known by waf (list in §10.3.3), the second part
GRPCis theuselib_storename to use (with parameteruse).