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