现象分析

报错分析
crti.o这个文件是存在的,但就是找不到。所以是搜索路径找不到。

解决方法
-
sw_64sw2-unknown-linux-gnu-g++ --help,发现了命令参数
-print-sysroot
,可以显示库搜索目录. -
sw_64sw2-unknown-linux-gnu-g++ -print-sysroot,显示出库搜索目录为/ctools
-
sw_64sw2-unknown-linux-gnu-g++ --help,发现了命令参数
--sysroot=<directory>
,可以覆盖库搜索目录 -
修改/home/coretek/LambdaPRO/target/deltaos/src目录下Makefile,添加红线部分
3.png
出差必备
买火车票、高铁票、机票,订酒店都打9折的出行工具TRIP,点击注册

网友评论