Linux Today: Linux News On Internet Time.

DB2 Developer Domain: The Big Switch: Moving from Windows to Linux with Kylix 3

Nov 22, 2002, 20:30 (1 Talkback[s])
(Other stories by Bob Swart)

"Borland Kylix 3 is a rapid application environment for Linux development. Kylix uses Delphi 7 Object Pascal (as well as C++) as the development language, as well as a familiar RAD environment for Linux. One of the greatest benefits the Borland tools offer, is that moving an application is less of a 'porting' project than a recompilation of your Windows/Delphi (or Linux/Kylix) project.

"When moving the application from Windows and Delphi 7 to Linux by recompiling it with Kylix, there are a few things we must keep in mind. First of all, all versions of Kylix contain the TSQLClientDataSet component, which is also present in Delphi 6 but is deprecated and is replaced by TSimpleDataSet in Delphi 7. While this may not seem like a big issue, it is an issue once you realize that this means that the TSimpleClientDataSet will only compile with Delphi 7, and the TSQLClientDataSet only without Delphi 7.

"Moving an application from Windows to Linux involves taking the source files and transporting them from Windows to a Linux file system. On Linux, filenames (and unit names) are case sensitive, so you must take care of that if you added some units of your own (Delphi 7 will make sure all units and filenames are named with case sensitivity in mind). However, you do not need to move all project files over from Delphi to Kylix. Specifically, the .cfg and .dof files contain Windows specific options. These files will be regenerated by Kylix as .conf and .kof files. In short, you only need to transport the main project file (.dpr and .res) and the unit files (.pas and .xfm) from Windows to Linux..."

Complete Story

Related Stories: