In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article is about how to compile helloworld applications running on the development board. Xiaobian thinks it is quite practical, so share it with you. I hope you can gain something after reading this article. Let's not say much. Let's take a look at it together with Xiaobian.
How to compile an application that runs on a development board is simple.
Based on: iTOP4412 development board
First determine the environment variables, as shown below, use the "cd" command to return to the root directory, and then use the command
"vim .bashrc" opens the environment variable file.
As shown below, go to the bottom line, where you can use the same compiler that compiled the kernel.
Use the command "cd /home/linuxsystemcode/helloworld/" to go back
"/home/linux system code/helloworld" directory, as shown below, use the command
" ARM-none-linux-gnueabi-gcc -o helloworld helloworld.c -sta tic", change C in the current directory
The file "helloworld.c " compiles into the executable file "helloworld";
"arm-none-linux-gnueabi-gcc " means to use arm compiler, corresponding to iTop4412 development board;
"-static" means that the library is compiled into it.
As shown in the figure below, the compilation is successful and the "helloworld" file is generated.
The above is how to compile helloworld applications running on the development board, Xiaobian believes that some knowledge points may be seen or used in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
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.