Thursday, August 31, 2006

Trial and Error....

I have been involved with BeOS/Zeta for several years now, ever since I tried BeOS 5 Personal Edition. However only recently I started programming on this OS and found it to be a great exercise for the mind.

Porting of a fiew programs and games and helping with the development of yab has helped me understand how BeOS Api works.

During my adventures with porting, I have found out that most problems can be overcome by simply changing a few lines of code or updating old system libraries with newer versions (provided they are opensourced).

A simple example is that Gcc 2.93 used by BeOS/Zeta cannot have a new variable declared after a call to a function, so all variable declerations are moved to the beginning of the function.

Another problem are missing defines from posix headers, but also those can be added, just by googling and finding out where they should go and what they declare.

Further yet, a missing implementation of flock function that I have found is used by newer autoconf can be overcome simply by editing sub lock in xfile.pm and just living it empty.

This blog will follow my porting efforts and will give you details on the changes I make and the applications/games I port.

No comments: