| ssjx.co.uk
Home of StormPlayer for Cybiko and other great programs |
| Home | Cybiko : Cybiko Guides : Cvc Videos | CyBorn | Amiga | Windows Games| Games| Links |
Creating Apps for the CybikoIntroductionThis guide will show you how to build a cybiko application using the Cybiko SDK. We will be making a simple 'Hello world!' to demonstrate. Note that this is not a programming guide and more of a guide on how to setup a working environment. What you will need
This guide assumes Windows is being used but most of it applies if you are using the Linux Cybiko SDK Setting up the foldersTo keep things organised we first need some folders:
As you have probably guessed, 'src' will contain the source files and 'res' will contain resources such as graphics. We will not be using the 'res' folder in this example. Creating the root.infThe root.inf contains author, program name and some version numbers. Don't type in the green text!
Save this in the 'hello' folder as 'root.inf'
The SDK manual contains much more information about this but the above is enough to get things working. Create the make.batThis batch file runs vcc which compiles the source files and puts it together with any resources into the .app file. The make.bat below takes the root.inf and compiles the source files in the 'src' folder and outputs 'hello.app'. (Ignore the first line, the second line is the important one.)
Save this in the 'hello' folder as 'make.bat'. If we had resources such as images in the 'res' folder we would change the line to read something like 'vcc root.inf src\*.c res\* -o hello.app' Create the hello.c source fileNow we just need to make a program! This will display our message on the screen for 5 seconds before closing:
Save this in the 'src' folder as 'hello.c'. Making the hello.appBy now we should have our 3 files (root.inf, make.bat and src\hello.c) so we just need to run the make.bat to create the hello.app. Get a command line and navigate to the 'hello' folder. If you installed the Open Command Window Here powertoy just right click on the 'hello' folder and select 'Open Command Window Here'. Type in make.bat and you should see the following:
If you get any error messages, check through the hello.c file for any typing mistakes. Send it to the CybikoBy this point we should have a working app! Use the Cybiko Console and send 'hello.app' to the cybiko. Once there you should find the program in the 'Applications' section, if it does not appear you may need to reset your cybiko. You can also run the program by typing 'hello' in the Cybiko Console command line. Download this programYou can download this app and source code using the link below: Download now (2k) Next...You now have the basic structure for making cybiko programs. If you want to make another program you can simply make a copy of the 'hello' folder, edit the 'root' and 'make' files and you are ready to go! For more information about programming the Cybiko, take a look through the SDK manual. It contains information and examples on how to use graphics, sound and the keyboard enabling you to create some great programs! If you do make a great program, be sure to post it on the PlanetCybiko forums! 31/5/2008 |
| Links that help support site | |||
| RPoints | Buy from shops through RPoints and you can get money back. Includes Cdwow, Play.com, Dell and many other useful shops. | ||
| Top Cashback | Just like RPoints except they pay higher amounts on some shops. | ||
| Play-Asia | Very good online seller of games. They also stock a lot of retro games and consoles e.g. Saturn and Jaguar! | ||
| ©2008 ssjx |