当前位置:网站首页>交叉编译环境出现.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 #主要是这个文件
)
边栏推荐
- IDEA收藏代码、快速打开favorites收藏窗口
- LeetCode——226. Flip binary tree (BFS)
- 让torch.cuda.is_available()从false变成true的一点经验
- 【NPOI】C#跨工作薄复制Sheet模板导出Excel
- 手写promise.all
- pycharm如何修改多行注释快捷键
- QPushButton 样式使用示例(以及按钮setmenu添加下拉菜单的方法)
- How to open a stock account? Is it safe to open an account online now?
- JVM entry door (1)
- 清华&商汤&上海AI&CUHK提出Siamese Image Modeling,兼具linear probing和密集预测性能!
猜你喜欢
随机推荐
你好,现在网上股票开户买股票安全吗?
I want to know. I am in Zhaoqing. Where can I open an account? Is it safe to open an account online?
JNI的 静态注册与动态注册
将字符串B插入字符串A,有多少种插入办法可以使新串是一个回文串
A little experience of next (ITER (dataloader))
力扣每日一题-第28天-566.重塑矩阵
17.13 supplementary knowledge, thread pool discussion, quantity discussion and summary
Case study of row lock and isolation level
Dos et détails de la méthode d'attaque
17.13 补充知识、线程池浅谈、数量谈、总结
Introduction to Ethereum Technology Architecture
JS common regular expressions
Lm06 the mystery of constructing the bottom and top trading strategy only by trading volume
QPushButton 样式使用示例(以及按钮setmenu添加下拉菜单的方法)
GDB installation
ROS查询话题具体内容常用指令
Niuke network: Design LRU cache structure design LFU cache structure
请指教同花顺开户选选择哪家券商比较好?现在在线开户安全么?
How pycharm modifies multiline annotation shortcuts
Prometeus 2.34.0 new features









