In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article focuses on "how to cross-compile arm in Windows". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to cross-compile arm in Windows.
1. Install toolchain stable-x86_64-pc-windows-gnu | stable-x86_64-pc-windows-msvc
The command is as follows: rustup toolchain install stable-x86_64-pc-windows-gnu
two。 Add target rustup target add arm-unknown-linux-musleabi (arm32 bit, standard c library, corresponding compiler arm-none-eabi-gcc)
Rustup target add arm-unknown-linux-gnueabihf (arm32 bit, requires glibc library, corresponding compiler arm-none-linux-gnueabihf-gcc)
Rustup target add aarch74-unknown-linux-gnu (arm64 bit, requires glibc library, corresponding compiler aarch74-none-linux-gnu-gcc)
Rustup target add aarch74-unknown-linux-musl (arm64 bit, standard c library, corresponding compiler aarch74-none-elf-gcc)
Download address of the above compiler:
GNU Toolchain | GNU-A Downloads-Arm Developer
Download and decompress it.
3. Configure the cargo config file
C:\ Users\ xxx\ .editing\ config
[source.crates-io]
Replace-with = 'ustc'
[source.ustc]
Registry = "git://mirrors.ustc.edu.cn/crates.io-index"
[target.arm-unknown-linux-musleabi]
Linker = "C:\ peizhi\\ sys_gcc\\ gcc-arm-none-eabi-10-2020-q4-major-win32\\ bin\\ arm-none-eabi-gcc"
[target.arm-unknown-linux-gnueabihf]
Linker = "C:\ peizhi\\ sys_gcc\\ gcc-arm-10.2-2020.11-mingw-w64-i686-arm-none-linux-gnueabihf\\ bin\\ arm-none-linux-gnueabihf-gcc"
# = #
[target.aarch74-unknown-linux-gnu]
Linker = "C:\ peizhi\\ sys_gcc\\ gcc-arm-10.2-2020.11-mingw-w64-i686-aarch74-none-linux-gnu\\ bin\\ aarch74-none-linux-gnu-gcc"
[target.aarch74-unknown-linux-musl]
Linker = "C:\ peizhi\\ sys_gcc\\ gcc-arm-10.2-2020.11-mingw-w64-i686-aarch74-none-elf\\ bin\\ aarch74-none-elf-gcc"
4.cargo init hello
5.cd hello
6. For example, compiling arm-unknown-linux-musleabi
The command is as follows: cargo build-target arm-unknown-linux-musleabi-verbose
At this point, I believe you have a deeper understanding of "how to cross-compile arm in Windows". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.