Writing your own wixel app, A. getting started in windows, B. compiling an example app – Pololu Wixel User Manual

Page 54: Compiling apps, Section 10, And share them with the community

Advertising
background image

10. Writing Your Own Wixel App

10.a. Getting Started in Windows

To get started developing your own Wixel Apps using Windows as the development platform, we recommend
that you download and install the Pololu Wixel Development Bundle:

wixel-dev-bundle-120127.exe

[http://www.pololu.com/file/download/wixel-dev-bundle-120127.exe?file_id=0J526]

(10MB exe). This bundle contains four things:

Wixel SDK

[http://pololu.github.com/wixel-sdk/]

: Contains source code (for libraries and applications) that will

help you develop your own applications for the Wixel.

SDCC – Small Device C Compiler

[http://sdcc.sourceforge.net/]

: A free compiler that is used to compile the

code in the Wixel SDK.

• Pololu GNU Build Utilities: Windows versions of some open-source utilities that are required by the SDK.

Notepad++

[http://notepad-plus-plus.org/]

: A free text editor which is convenient to use when editing Wixel code.

10.b. Compiling an Example App

After you have installed all the necessary software (either from the Wixel Development Bundle or from other
sources), you should try compiling an example app and loading it onto a Wixel to make sure that your system is set
up correctly.

Compiling Apps

Go to the folder where you installed the Wixel SDK (

C:\wixel-sdk

is the default) and run

make_all.bat

. If

everything is installed correctly, the output of that batch file should look something like this:

You have now built all the apps in the Wixel SDK and all the libraries that they depend on. Every subfolder of the

apps

folder should now have a WXL file in it. This is a compiled app which can be loaded onto Wixels using the

Wixel Configuration Utility or the Wixel Command-Line Utility (WixelCmd).

Pololu Wixel User's Guide

© 2001–2014 Pololu Corporation

10. Writing Your Own Wixel App

Page 54 of 64

Advertising