Thursday, June 26, 2008

Software development on VmwAROS LIVE! 0.8

Developing software on VmwAROS LIVE! should be really easy. While VE users have the development chain already installed and configured, LIVE! users can choose whether installing it on the SYS: FFS partition or the Work: SFS one. The second options is faster and better, but maybe someone simply forgot to create the Work: partition during installation on the hard drive, and now has to live with the slow FFS filesystem. In such case, please consider reinstalling from scratch following the instructions in the PDF "Quick and dirty user/reviewer guide", included in the /Docs drawer.

Anyway, if someone wants to develop his applications on a VmwAROS LIVE! system, the first step to do is obviously installing VmwAROS on the hard drive (Murks!IDE allows programming straight from the CD and saving in RAM, but maybe you'll prefer to have a place to save your creations...), possibly creating the Work: SFS partition and placing Extras and Development files into it. Then developers should boot from the hard drive and activate the Setup_Development script in My Software > Development menu of Amistart.

This script will perform these tasks

1) Check if it has been launched from CD: this is not allowed, and in such case it will exit immediately. You must run Setup_Development from a valid, writable hard drive.

2) Ask the developer where the development environment is supposed to be. Please answer accordingly to your AROS installation. If you haven't installed development files at all, they will be copied from the VmwAROS LIVE! CD (keep it handy).

3) copy some con.* files that couldn't be included in VmwAROS LIVE!, since the ISO creation is made on a Windows system, and Windows doesn't like files with a "con" name. That's why I say that using Murks! from CD is "not safe".

4) add a deve-startup script with correct development ASSIGNs to S: and two lines to user-startup to launch it at boot time

5) In the end, it will ask you to relaunch any development application. But you have better rebooting AROS.

From now on, the development chain is active, and you can use Murks!IDE or even line command tools (=make) to compile your C/C++ applications. You'll need to add manually all third party's includes and libraries you need, though.