User's Manual

Table Of Contents
AI7688H User Manual
-51-
Copyright@2016 AcSiP
9 C/C++ Programming
9.1 Building C/C++ Programs with OpenWrt SDK
Building C/C++ binaries for AI7688H requires cross-compilation. We provide an OpenWrt
SDK. Follow these steps to build an example C/C++ ipk file that can be installed with opkg
command.
Requirement
Currently only Ubuntu Linux and OS X are supported. Windows with Cygwin is not
supported. The following steps assume an Ubuntu Linux environment.
Step
First, download the SDK zip file
Unzip the package The name is quite long and we'll use SDK to denote its name.
Note that sudo is mandatory without it the file won’t properly unpacked.
Copy the example helloworld directory to SDK/package folder. The folder structure
should look like this:
In the SDK directory, type make package/helloworld/compile to build the package. Once
it is built:
Navigate to SDK/bin/ramips/packages/base
There should be a package file named helloworld_1.0.0-1_ramips_24kec.ipk
Copy the .ipk file to the AI7688H
In the system console of the board, navigate to the location of the .ipk file and
type opkg install