Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to compile the application of helloworld running on the development board

2025-01-18 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.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report