bugs: stupid makefile liborocos-kdl.so.1.4.0: No such file or directory

博客内容描述了作者在构建项目时遇到的一个错误,即makefile无法找到liborocos-kdl.so.1.4.0库文件。作者尝试查找系统中的库文件,并查阅了链接以了解如何修改LIBDIR,但问题仍未解决。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

damn fuck makefile why so stupid:

 

 

build error:

g++: error: /usr/local/lib/liborocos-kdl.so.1.4.0: No such file or directory

 find this lib in your system:

 

locate liborocos-kdl.so.1.4.0
/usr/lib/liborocos-kdl.so.1.4.0

 

link that:

  ls /usr/lib/
20029  cd /usr/local/lib/
20030  ls
20031  sudo ln -s /usr/lib/liborocos-kdl.so.1.4.0 liborocos-kdl.so.1.4.0
20032  ls

try but still don't know how to change LIBDIR:

https://unix.stackexchange.com/questions/178166/how-to-tell-the-compiler-to-search-some-libs-inside-usr-lib-x86-64-linux-gnu

 

 

好吧,确实很蠢:

0002  locate libOpenNI.so
20003  sudo ln -s /usr/lib/libOpenNI.so /usr/lib/lib/libOpenNI.so
20004  locate liboctomap.so
20005  sudo ln -s /usr/lib/liboctomap.so /usr/lib/lib/liboctomap.so
20006  locate liboctomath.so
20007  sudo ln -s /usr/lib/liboctomath.so /usr/lib/lib/liboctomath.so
20008  locate libOpenNI2.so
20009  sudo ln -s /usr/lib/libOpenNI2.so /usr/lib/lib/libOpenNI2.so
20010  
20011  locate liboctomap.so
20012  sudo ln -s /usr/lib/liboctomap.so /usr/local/lib/liboctomap.so
20013  
20014  locate liboctomath.so
20015  sudo ln -s /usr/lib/liboctomath.so /usr/local/lib/liboctomath.so

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值