.pro文件中
INCLUDEPATH += ……/SungemSDK-Cpp/SungemSDK
……/SungemSDK-Cpp/libhs_highapi
……/SungemSDK-Cpp/SungemSDK/include
……/SungemSDK-Cpp/libhs_highapi/include
LIBS += ……/SungemSDK-Cpp/libhs_highapi/lib/libhs_highapi.so
头文件中
#include “libhs_highapi/include/device.hpp”
#include “libhs_highapi/include/hsapi.hpp”
编译后显示:
No such file or directory 找不到链接库
在/etc/ld.so.conf中添加路径
……/SungemSDK-Cpp/libhs_highapi/lib
使配置生效:
sudo ldconfig
参考:
https://blog.csdn.net/qc530167365/article/details/91491851
https://blog.csdn.net/chen495810242/article/details/89314570