July 4, 2006
As people know I use Kylix, I often get asked how I use the compiler and wether I use the full Kylix IDE.
Considering that the Kylix IDE doens't run any more on most recent Linux distros (including the Ubuntu client and the Debian server I generally use), it should not come to a surprise that I've not use the Kylix IDE for a couple of years now. But I do compile Kylix applications often, and today I spent most of the day doing exactly that. So how can you edit and compile is a nice way? The solution to editing is simple: use BDS 2006 (or the latest version of Delphi you have), and use it on Windows, of course. I can see three options (which I all use, depending on the project):
- Use CrossKylix. You use the Delphi IDE, compile on Windows by executing the Kylix command line compiler right on the Windows box, using an emulator.
- Edit and compile the source code on Windows. Than copy it on a Linux box (for a remote one I'd use WinSCP, for a Samba-share I'd use Beyond Compare, for a CVS-based program I'd commit changes on the Windows box and update the Linux source code tree). This makes sense if the program you are wokring is cross.platform, and compiles and runs both on Windows and Linux.
- Open a Samba-share directly in Delphi 2006, so that you are in fact editing the source code on the Liunux box, than use the command line compiler in a terminal windows (like Putty), to compile. I wish I had a plug-in to automate this process, which I use often.
There are possible many more options. I use all three, although the second is the most frequent, as I can often also debug the Windows version of the program before deploying the Linux one. The positive in all 3 appraoches, is that you can use a modern editor with refactoring and live templates even for your Linux source code. The only drawback is taht you have to remembert not using the most recent featrues of the Delphi language because the Kylix compiler doens't suppor them... which is why an updated version of the Kylix compiler (and maybe the RTL, but no CLX and no IDE) is quite high in my Delphi wish list. Bye.
posted by
marcocantu @ 0:26AM | 8 Comments
[0 Pending]
8 Comments
Compiling Kylix Applications
Ya, and there is the Linux hoard claiming that Linux
is backwards compatible and can run on platforms that
windows can't any more.
I guess they forgot to make sure that the same goes
for applications and OS.
I can still run D1 on any version of windows.
Mind you, with Linux suppose to be the great white
hope for write once run anyways, it was pretty
obvious that the Linux crowd had over-reached when
Kylix first came out and have a very, very limited
deployment platform. Worse, apps written with Kylix
had the same deployment footprint (issues with
library glitches that caused no other app on Linux
any problems seemed to cause Kylix problems).
Ya know, maybe it isn't Linux itself, maybe it is
Kylix. Either way, why would you want to continue
down that road with that set of tools?
Comment by Xepol on July 4, 05:42
Compiling Kylix Applications
Xepol,
you ask "why would you want to continue down that road
with that set of tools"? The answer is simple: I see
no better solution. The same application can be
deployed on Windows, but managing remote Windows
servers is a mess to say the least, security suffers,
and performance suffers as well (if not only because
you need to keep a large graphical system with tons of
user applications running on a server).
It is true thare are issues with dynamic libraries,
even on Linux, but we cna deploy on many different
distros. And the advantages (performance, file system
rubustness, remote control...) outweight the problems
so far. The fact we build server side console apps
certainly helps us a lot!
Comment by Marco Cantù
[http://www.marcocantu.com]
on July 4, 08:46
Compiling Kylix Applications
If you are just writing server side console apps, why
not check out freepascal? It has a huge deployment
footprint AND it is actively supported.
Personally, I don't really see the point in writing
apps to a platform whereby it is impossible to
control access to your source code (if you read the
GPL, it is impossible for any app on Linux to not be
GPLed also, as every app either staticly or
dynamically binds to the OS libraries which are
themselves GPLed. Sadly, this means that a proper
reading of the GPL requires that all linux apps be
GPLed. I don't believe this is unintentional, and
the current crop of closed apps such as Kylix trade
in a group blind spot whereby noone actually tries to
enforce the clause. Fortunately for companies like
Borland, noone really wants to test the GPL in
court. However, the day will come when someone with
enough money will feel bitchy enough to push the
issue and demand their full rights under the GPL.
Since the group that wrote the GPL does not believe
that anything should be protected, the judge can
easily construe that the broadest, most open
interpretation of the GPL is exactly what the framers
intended and will follow that lead, as they
frequently do in many legal systems.)
It ought to be an interesting day when that happens.
Comment by Xepol on July 5, 19:11
Compiling Kylix Applications
Xepol,
we need highly optimized apps and do use some advanced
language features and many components: last time I
checked FreePascal was not as good as Kylix for our
needs (I know it is very interesting, but not in our
case, for what I can tell).
As for the GPL, I think you are wrong. The OS GPL
allows proprietory applications to run on it and the
system shared object libraries are generally LGPL. To
paraphrase, personally I don't see the point in
working for a server platforms where you have no real
control, like Windows and IIS... but this is only a
personal view.
Comment by Marco Cantù
[http://www.marcocantu.com]
on July 6, 00:00
Compiling Kylix Applications
Are the same components available under Kylix that are
available under Delphi. Can you use the full power of
Indy 10 for example?
Also - I realise you'd have to use something like
cross Kylix or install an older version of Linux to
run the IDE - but once you've compiled your
application, will the application still run on all the
latest versions of Linux?
Regards,
Andy.
Comment by Andrew22 on July 14, 17:38
Compiling Kylix Applications
What about to execute the executable file compiled
from the kylix? I've been got an error message
referred to unexisting so libs.
However, the libs are existing. I'am very confused
about this...
Comment by Eko Wahyudiharto
[http://www.paparadit.co.nr]
on September 15, 06:22
Compiling Kylix Applications
So Macro, are you still interest with kylix right now
-with it's related to FOSS/GPL- ?Where i can join the
kylix community? thanks
-Geek Addicted-
Comment by @tu
[http://komputer-atu.blogspot.com]
on March 24, 18:52
Compiling Kylix Applications
we need Visual IDE for linux
Comment by Roland on August 8, 11:18
Post Your Comment
Click
here for posting
your feedback to this blog.
There are currently 0 pending (unapproved) messages.