cat1环境搭建问题解决

1.wsl安装ibc6:i386 libstdc++6:i386 zlib1g:i386报错:
解法:
sudo dpkg --add-architecture i386
sudo apt-get update


2.wsl中cmake报错:
CMake Error atCMakeDetermineSystem.cmake:185 (configure_file): configure_file Problem configuring file

解法:
To summarize, you should create a wsl config file /etc/wsl.conf and add the following lines:

[automount]
options = "metadata"
enabled = true
After this you should reboot your wsl (in powershell).

wsl.exe -l     // gets a list of your linux distributions
wsl.exe -t *name-of-your-distribution*


3.wsl中编译固件链接出错:
error loading plugin: /mnt/d/Work/workspace/test/prebuilts/linux/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/7.2.1/liblto_plugin.so: file too short
ninja: build stopped: subcommand failed.

解法:
动态库软连接失效,将失效的动态库全部重新建立软连接;

4.dtools链接库异常

dtools: error while loading shared libraries: libicui18n.so.55: cannot open shared object file: No such file or directory
ninja: build stopped: subcommand failed.

解法:下载libicu55_55.1-7_amd64.deb
wget http://security.ubuntu.com/ubuntu/pool/main/i/icu/libicu55_55.1-7_amd64.deb
sudo dpkg -i libicu55_55.1-7_amd64.deb


5.build脚本报错

./build_all.sh
: not found.sh: 2:
: not found.sh: 9:

date: extra operand ‘\r’
Try 'date --help' for more information.
START TIME: 11:30:19
END TIME: 11:30:19

./build_all.sh: line 2: $'\r': command not found
./build_all.sh: line 9: $'\r': command not found
./build_all.sh: line 10: syntax error near unexpected token `$'{\r''
'/build_all.sh: line 10: `doneseg(){

解法:
sed -i 's/\r$//' build_all.sh

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值