buildroot交叉编译ros过程中遇到的问题
问题:Download error on https://pypi.python.org/simple/python-dateutil/:unknown url type:https --Some packages may not be found!
分析:判断网有没有问题,网是好的,https无法识别,就查看openssl是否ok
解决:在python的makefile中添加依赖。删除--disable-openssl
HOST_PYTHON_DEPENDENCIES中添加host-openssl
问题:Project 'rostime' tried to find library '-lpthread'. The library is neither a target nor built/installed properly. Did you compile project'cpp_common'? Did you find_package() it before the subdirectory containing its code is included?
分析:cmake版本问题,编译的rog indigo比较古老,cmake版本3.13以上的版本有变化
解决:
方法1.将cmake版本下降为3.13以下的版本 或者直接删掉本地cmake环境
方法2.不想动本地环境的话,进入support/dependencies/check-host-cmake.mk,将执行优先寻找本地cmake的脚本代码去掉,buildroot就会自己从网上下载cmake到host
其它问题:
github等网址下载慢:手动下载,dl中将相应包添加
Couldn't find a setup script in /tmp/easy_install-xxx/xxxx:手动将xxxx添加到host,即对应xxxx包下添加Config.in.host,mk中添加$(eval $(host-x-package)
No hash found for x.x.x.tar.xz:
我这里是因为.hash文件最后一行没加空行和带^M,buildroot不识别

浙公网安备 33010602011771号