当前位置:网站首页>交叉编译环境出现.so链接文件找不到问题
交叉编译环境出现.so链接文件找不到问题
2022-06-26 18:07:00 【Maccy37】
问题:/opt/rk3308-32bit-cross-complier/bin/../lib/gcc/arm-rockchip-linux-gnueabihf/6.4.0/../../../../arm-rockchip-linux-gnueabihf/bin/ld: warning: libmrpt-graphs.so.1.5, needed by /opt/arm/3308/mrpt/lib/libmrpt-maps.so, not found (try using -rpath or -rpath-link)

编译出错是因为:libmrpt-maps.so链接不到libmrpt-graphs.so.1.5的库
解决办法在CMakeLists.txt添加链接库指令:
set(MRPT_LIBRARIES_DIRS /opt/arm/3308/mrpt/lib)
target_link_libraries(mapgen_mrpt
${catkin_LIBRARIES}
${MRPT_LIBS}
${MRPT_LIBRARIES_DIRS}/libmrpt-graphs.so.1.5 #主要是这个文件
)
边栏推荐
猜你喜欢
随机推荐
Runtimeerror: CUDA error: out of memory own solution (it is estimated that it is not applicable to most people in special circumstances)
【QNX】命令
Hello, is it safe to open an online stock account and buy stocks now?
MySQL add column failed because there was data before, not null by default
Applet setting button sharing function
Niuke network: Design LRU cache structure design LFU cache structure
transforms. The input of randomcrop() can only be PIL image, not tensor
VCD-影音光碟
二分查找-2
Preparing for the Blue Bridge Cup and ccf-csp
[dynamic planning] Jianzhi offer II 091 Paint the house
Dos et détails de la méthode d'attaque
数据加密标准(DES)概念及工作原理
How sparksql returns a specific day of the week by date -dayofweek function
Number of solutions for knapsack problem
数字签名标准(DSS)
数据加密标准DES安全性
Plt How to keep show() not closed
【Unity】在Unity中使用C#执行外部文件,如.exe或者.bat
Bayesian network explanation








