Import existing source codes for cross-compiling

Assume SDK/Toolchain is uncompress to /home/user/Openwrt-SDK, where /home/user is the home directory, and you have 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
    • don't check Create Main File
    02


    • add source codes
    • right click Source Files
    • select Add Existing items from Folders
    • click Add Folder
    • select source folder e.g hexapod/src
    • click Add
    03


    • on src folder
    • double click main.cpp to open
    03


    • click Run->Build Project
    • results - on bottom Output window
    03