C++交叉编译工具链制作以及QT交叉编译环境配置
https://github.com/crosstool-ng/crosstool-ng/releases
C++交叉编译工具链制作以及QT交叉编译环境配置
- 1 源码构建
- 2 使用命令
- 2.1 查看列表
- 2.2 查看配置
- 2.3 配置
- 2.4 编译
- 2.5 编译完成后
- 问题总结
- configure: error: missing required tool: makeinfo
- configure: error: missing required tool: help2man
- configure: error: Required tool not found: GNU awk
- configure: error: Required tool not found: libtool
1 源码构建
sudo apt-get install texinfo help2man gawk libtool-bin -y
tar -xvf tar -xvf crosstool-ng-1.27.0.tar.xz
cd crosstool-ng-1.27.0
./configure
make -j16
make install
2 使用命令
2.1 查看列表
ct-ng list-samples
2.2 查看配置
ct-ng show-riscv32-unknown-elf
2.3 配置
ct-ng riscv32-unknown-elf
2.4 编译
ct-ng build
2.5 编译完成后
~/x-tools/riscv32-unknown-elf 内就是交叉编译的内容