首页 > 其他 > 详细

pkg-config 磁盘位置

时间:2018-05-24 14:22:15      阅读:211      评论:0      收藏:0      [点我收藏+]

cflags:

pkg-config --cflags libmodbus >> -I/usr/local/include/modbus

pkg-config --cflags glib-2.0 >> -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include

pkg-config --cflags grpc++ grpc protobuf >> -pthread -I/usr/local/include

libs:

pkg-config --libs libmodbus >> -L/usr/local/lib -lmodbus

pkg-config --libs glib-2.0 >> -lglib-2.0

pkg-config --libs grpc++ grpc protobuf >> -L/usr/local/lib -lgrpc++ -lgrpc -lprotobuf -pthread -lpthread

mysql:

mysql_config --cflags >> -I/usr/include/mysql

mysql_config --libs >> -L/usr/lib/x86_64-linux-gnu -lmysqlclient -lpthread -lz -lm -lrt -ldl

pkg-config 磁盘位置

原文:https://www.cnblogs.com/andy1327/p/9082586.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!