Create a project for cross-compiling

Assume SDK/Toolchain is uncompress to /home/user/Openwrt-SDK, where /home/user is the home directory, and you added the toolchain to Netbeans IDE.

    • click File ->New Project
    • select C/C++, C++ Applicattion
    01
    01


    • fill Project Name, e.g. helloword
    • select Tool Collection, e.g. toolchain-arm
    02


  1. write your code
    03


    • build project
    • click Run->Build Project
    • check Output window at the bottom to see the result
    03


    • compile the code
    • if build project is successful, you can see the executable helloword is arm CPU architecture
    • next, you can copy the excutable to the processor board to run
    03