...
Check out the packaging directory in an appropriate location
Code Block xml xml svn co https://community.cablelabs.com/svn/OCAPRI/trunk/packaging/
- Build the RI (platform and stack). Instructions can be found here: Building the RI
Build the SDK. Use the following commands to build the SDK:
Code Block cd $SDK_HOME
Code Block ant
Currently the Ant build fails in Linux. See Known Issues for a workaround.
cd to the packaging directory and type:
Code Block ant stage.sdk_with_ri_bundle
The staging may take a while as it stages the RI, downloads a version of Eclipse, and installs the SDK in the downloaded Eclipse version. Once the staging is complete, type the following command to build the installer:
Code Block ant build.installer.sdk_with_ri_bundle
- If building in Windows, a Windows (.exe) installer will be built, while in Linux, a Linux installer (ending with a "-Linux" suffix) will be built.
In order to successfully build installers later, clean the packaging directory with the following command:
Code Block ant clean
Testing an Xlet
- Start Eclipse from the C:\CableLabs\tru2way\trunk-<revision>\eclipse_twb_sdk folder.
- Open File->New->Other...
- Select New OCAP Project under OCAP, click Next>
- Give your project a name, e.g. "Hello", and choose your Xlet template. For initial testing, choose "Hello World", then click Finish.
- Open Run->Package Services->Open Services Dialog...
- Double-click Xlet Service Configurations. You will get a "New_configuration" Xlet. The Workspace should show the Hello Xlet. Rename the configuration to "Hello Xlet", click Apply, then click Package.
- Open Run->Run Configurations..., double-click "OCAP Simulation". You will get a "New_configuration". Rename to "Hello", click Apply.
- Click the Unbound Xlets tab, then the Add... button, select the Hello Xlet, then click OK. You should now see a Run button.
- Click Run. The RI should start up, and display Hello World.
- You will have to kill the RI (ri.exe) from the Task Manager.
...