Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Porting Delphi 7 Project to Unix

3 views
Skip to first unread message

Raj

unread,
Jun 2, 2008, 7:55:03 AM6/2/08
to
Hi Friends,

I am in a task to convert the Existing (Windows XP) Delphi 7 Project
to Unix platform supported. i am very new to this Unix, i have not
worked on that yet, i am trying for the good solution to do this, I
have visited some sites they have mentioned that Kylix and Lazarus
compilers (IDE) and some free Pascal compilers can do this job, but
that too complex process.
Can any one please help me on this.


Thanks in advance.

Rajkumar D.

Marco van de Voort

unread,
Jun 2, 2008, 8:11:20 AM6/2/08
to
On 2008-06-02, Raj <rajku...@gmail.com> wrote:
> I am in a task to convert the Existing (Windows XP) Delphi 7 Project
> to Unix platform supported. i am very new to this Unix, i have not
> worked on that yet, i am trying for the good solution to do this, I
> have visited some sites they have mentioned that Kylix and Lazarus
> compilers (IDE) and some free Pascal compilers can do this job,

(note that Lazarus uses FPC (Free Pascal compiler) as compiler. They are the
same thing)

> but that too complex process.
> Can any one please help me on this.

Then you are stuffed, and have the wine emulator as only other chance.

Bart

unread,
Jun 4, 2008, 4:20:15 AM6/4/08
to
Op Mon, 2 Jun 2008 04:55:03 -0700 (PDT) schreef Raj
<rajku...@gmail.com>:

If you can learn Delphi, you certainly can learn Lazarus...

If however your app heavily relies on Windows specific stuff (like
DirectX, executing files based on file-extensions, OLE atomation
etc.), you'll have to rethink and redesign.
Commnon stuff (file-handling, databases, components) should be more
easy to port.

Bart
--
Bart Broersma
broersma.ju...@tiscali.nl
(ff _ANTISPAM_ wegpoetsen uit dit adres natuurlijk)

Raj

unread,
Jun 6, 2008, 8:01:18 AM6/6/08
to
On Jun 2, 5:11 pm, Marco van de Voort <mar...@stack.nl> wrote:

Thanks for your answer. I am not familure with wine emulator, can you
tell me how it will be helpful for my project. Can we change the
Entire system without any hassels.

Thanks in advance.

Raj

unread,
Jun 6, 2008, 8:04:12 AM6/6/08
to
On Jun 4, 1:20 pm, Bart <broersma.juda_ANTISP...@tiscali.nl> wrote:
> Op Mon, 2 Jun 2008 04:55:03 -0700 (PDT) schreef Raj
> <rajkumar...@gmail.com>:

>
> >Hi Friends,
>
> >  I am in a task to convert the Existing (Windows XP) Delphi 7 Project
> >to Unix platform supported. i am very new to this Unix, i have not
> >worked on that yet, i am trying for the good solution to do this, I
> >have visited some sites they have mentioned that Kylix and Lazarus
> >compilers (IDE) and some free Pascal compilers can do this job, but
> >that too complex process.
> >Can any one please help me on this.
>
> >Thanks in advance.
>
> >Rajkumar D.
>
> If you can learn Delphi, you certainly can learn Lazarus...
>
> If however your app heavily relies on Windows specific stuff (like
> DirectX, executing files based on file-extensions, OLE atomation
> etc.), you'll have to rethink and redesign.
> Commnon stuff (file-handling, databases, components) should be more
> easy to port.
>
> Bart
> --
> Bart Broersma
> broersma.juda_ANTISP...@tiscali.nl

> (ff _ANTISPAM_ wegpoetsen uit dit adres natuurlijk)

In my Project i dont have much Windows specific stuff's. I have only
few like that, do you thing for my project lazarus is best than Kylix.

Marco van de Voort

unread,
Jun 6, 2008, 4:11:39 PM6/6/08
to
On 2008-06-06, Raj <rajku...@gmail.com> wrote:
>> > have visited some sites they have mentioned that Kylix and Lazarus
>> > compilers (IDE) and some free Pascal compilers can do this job,
>>
>> (note that Lazarus uses FPC (Free Pascal compiler) as compiler. They are the
>> same thing)
>>
>> > but that too complex process.
>> > Can any one please help me on this.
>>
>> Then you are stuffed, and have the wine emulator as only other chance.
>
> Thanks for your answer. I am not familure with wine emulator,

Well, I use Lazarus, but if Kylix and Lazarus are too much hassle, there is
not much choice left.

> can you
> tell me how it will be helpful for my project. Can we change the
> Entire system without any hassels.

Wine is a windows emulator to run windows binaries on other platforms.

www.winehq.com

There are limitations of course, and also your customers would have to
install it.

Dr J R Stockton

unread,
Jun 6, 2008, 6:04:25 PM6/6/08
to
In comp.lang.pascal.borland message <cf2709db-a4de-4614-982f-098762dc06d
f...@z16g2000prn.googlegroups.com>, Mon, 2 Jun 2008 04:55:03, Raj
<rajku...@gmail.com> posted:

>
> I am in a task to convert the Existing (Windows XP) Delphi 7 Project
>to Unix platform supported.

You would do better, probably, by asking in a Delphi newsgroup. AFAIK,
all Delphi newsgroups have delphi in their names, although not all
newsgroups with delphi in their names are about Delphi.

Before posting to a newsgroup with borland starting its name, seek
Borland's guidelines for posting.

--
(c) John Stockton, nr London UK. ?@merlyn.demon.co.uk BP7, Delphi 3 & 2006.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/&c., FAQqy topics & links;
<URL:http://www.bancoems.com/CompLangPascalDelphiMisc-MiniFAQ.htm> clpdmFAQ;
Via <URL:http://support.codegear.com/newsgroups/>: news:borland.* Guidelines

Raj

unread,
Jun 7, 2008, 3:26:28 AM6/7/08
to
On Jun 7, 1:11 am, Marco van de Voort <mar...@stack.nl> wrote:

I am decided to go with Lazarus, i think that it is the better way
than any other solutioun like Kylix an other. Can you help me how to
use lazarus to port the sytem. Either should i use that in Windows
platform or UNIX. Also tell can i compile directly my project on
Lazarus or should i do any preliminary steps before. Your help is more
important for me. Thanks.

Raj

unread,
Jun 7, 2008, 3:27:01 AM6/7/08
to
On Jun 7, 3:04 am, Dr J R Stockton <j...@merlyn.demon.co.uk> wrote:
> In comp.lang.pascal.borland message <cf2709db-a4de-4614-982f-098762dc06d
> f...@z16g2000prn.googlegroups.com>, Mon, 2 Jun 2008 04:55:03, Raj
> <rajkumar...@gmail.com> posted:

>
>
>
> >  I am in a task to convert the Existing (Windows XP) Delphi 7 Project
> >to Unix platform supported.
>
> You would do better, probably, by asking in a Delphi newsgroup.  AFAIK,
> all Delphi newsgroups have delphi in their names, although not all
> newsgroups with delphi in their names are about Delphi.
>
> Before posting to a newsgroup with borland starting its name, seek
> Borland's guidelines for posting.
>
> --
>  (c) John Stockton, nr London UK. ?...@merlyn.demon.co.uk  BP7, Delphi 3 & 2006.

>  <URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/&c., FAQqy topics & links;
>  <URL:http://www.bancoems.com/CompLangPascalDelphiMisc-MiniFAQ.htm> clpdmFAQ;
>  Via <URL:http://support.codegear.com/newsgroups/>: news:borland.* Guidelines

Thanks for your suggesstions.

Marco van de Voort

unread,
Jun 7, 2008, 6:14:47 AM6/7/08
to
On 2008-06-06, Dr J R Stockton <j...@merlyn.demon.co.uk> wrote:
> In comp.lang.pascal.borland message <cf2709db-a4de-4614-982f-098762dc06d
> f...@z16g2000prn.googlegroups.com>, Mon, 2 Jun 2008 04:55:03, Raj
><rajku...@gmail.com> posted:
>>
>> I am in a task to convert the Existing (Windows XP) Delphi 7 Project
>>to Unix platform supported.
>
> You would do better, probably, by asking in a Delphi newsgroup. AFAIK,
> all Delphi newsgroups have delphi in their names, although not all
> newsgroups with delphi in their names are about Delphi.

I think there is less knowledge about porting Delphi code to Linux in those
groups then here.

Marco van de Voort

unread,
Jun 7, 2008, 6:18:36 AM6/7/08
to
On 2008-06-07, Raj <rajku...@gmail.com> wrote:
>>
>> www.winehq.com
>>
>> There are limitations of course, and also your customers would have to
>> install it.
>
> I am decided to go with Lazarus, i think that it is the better way
> than any other solutioun like Kylix an other. Can you help me how to
> use lazarus to port the sytem.

Install Lazarus on your Linux (I assume it is Linux, since Kylix was an
option). Then try to compile your apps, and solve problems.

> Lazarus or should i do any preliminary
> steps before. Your help is more important for me. Thanks.

A thorough investigation what Delphi functionality your app uses might be an
even better way to start (does it use windows technologies as ActiveX? Does
it print? Does it use BDE ? etc)

Ask your questions on Lazarus' maillist, but be prepared, and ask specific
and to the point questions. The results of above investigation will help
you in your communcation.

Bart

unread,
Jun 8, 2008, 5:55:36 AM6/8/08
to
Op Fri, 6 Jun 2008 05:04:12 -0700 (PDT) schreef Raj
<rajku...@gmail.com>:

>In my Project i dont have much Windows specific stuff's. I have only


>few like that, do you thing for my project lazarus is best than Kylix.

I never used Kylix, so I cannot answer that question...

Bart
--
Bart Broersma
broersma.ju...@tiscali.nl

Marco van de Voort

unread,
Jun 8, 2008, 2:34:56 PM6/8/08
to
On 2008-06-07, Marco van de Voort <mar...@stack.nl> wrote:
>>>
>>> I am in a task to convert the Existing (Windows XP) Delphi 7 Project
>>>to Unix platform supported.
>>
>> You would do better, probably, by asking in a Delphi newsgroup. AFAIK,
>> all Delphi newsgroups have delphi in their names, although not all
>> newsgroups with delphi in their names are about Delphi.
>
> I think there is less knowledge about porting Delphi code to Linux in those
> groups then here.

Oops, sorry, c.l.p.misc then.

Raj

unread,
Jun 9, 2008, 12:37:47 AM6/9/08
to
On Jun 7, 3:18 pm, Marco van de Voort <mar...@stack.nl> wrote:

Can i install Lazarus on UNIX? and will it work there? Also Please
tell will the Lazarus work on Advantage database server?

My project does not uses ACtiveX and BDE Compponents, but it uses
reports to print.

Let me know your answers. Thanks in advance.

Marco van de Voort

unread,
Jun 10, 2008, 4:42:52 AM6/10/08
to
On 2008-06-09, Raj <rajku...@gmail.com> wrote:

>> Ask your questions on Lazarus' maillist, but be prepared, and ask specific
>> and to the point questions. The results of above investigation will help
>> you in your communcation.
>
> Can i install Lazarus on UNIX? and will it work there?

There is no "UNIX", UNIX is a trademark that signifies a family of OSes that
got some formal blessing.

> Also Please tell will the Lazarus work on Advantage database server?

I've no idea.

> My project does not uses ACtiveX and BDE Compponents, but it uses
> reports to print.

That might be a problem. There is some reporting functionality but it could
be different.

> Let me know your answers. Thanks in advance.

You'll have to start researching, and ask smart questions on the lazarus
list. I can't help you there, except for the basic question if your platform
is supported. But then I need more info than just "UNIX", but real OS and
architectures (e.g. Solaris on Sparc, or Linux on x86)

Raj

unread,
Jun 13, 2008, 12:35:20 AM6/13/08
to
On Jun 10, 1:42 pm, Marco van de Voort <mar...@stack.nl> wrote:

Thanks MArco, Thanks for your support on this. I plan to go with
Lazarus, and i found it supports Advantage ADS server. So it is a best
option for me, Let do my research on this. And let you know if i have
succeeded or had problems witht that.

Thanks you all.

Bitty

unread,
Jul 14, 2008, 10:42:22 AM7/14/08
to
Raj schreef:

Probably you can (should) be thinking of porting your exisiting
application to OpenGL? This makes it possible to use controls and window
structures independant from the system you are running, and is a platorm
what runs on both Windows and Linux, so compiling different versions of
your program wouldn't be a hassle...

Success!

Johan.

Bitty

unread,
Jul 17, 2008, 2:27:11 PM7/17/08
to
Bitty schreef:

You could also consider using GTK+ (http://www.gtk.org/). It is worth to
study it, and it will make your programmer's life much easier.

Cheers!

Johan.

Marco van de Voort

unread,
Jul 18, 2008, 4:11:17 AM7/18/08
to
On 2008-07-17, Bitty <bi...@nospam.chello.nl> wrote:
>
> You could also consider using GTK+ (http://www.gtk.org/). It is worth to
> study it, and it will make your programmer's life much easier.

The earlier named lazarus already supports GTK+. But has the added advantage
that you can alternately use win32 or carbon (OS X) too.

Raj

unread,
Jul 19, 2008, 9:46:56 AM7/19/08
to
> Johan.- Hide quoted text -
>
> - Show quoted text -

Thanks johan, Let me try that. And will update u the Status.

Raj

unread,
Jul 24, 2008, 3:19:23 AM7/24/08
to

Hi Johan, Where can i download this OpenGL, And where should i install
either in linux or windows platform.

Marco van de Voort

unread,
Jul 24, 2008, 3:26:18 AM7/24/08
to
On 2008-07-24, Raj <rajku...@gmail.com> wrote:
> Hi Johan, Where can i download this OpenGL, And where should i install
> either in linux or windows platform.

Opengl is standardly in most systems. However, keep in mind it is a drawing
api, not a windowing api. You'll have to do everything manually, and the
apps will feel non-native.

Bitty

unread,
Jul 25, 2008, 7:04:37 AM7/25/08
to
Raj schreef:
Hi Raj,

OpenGL might be a solution, but as Marco said you have to design and
write your API yourself, and it is not a API-native product. It was a
kind of mistake from me to notice this library, while I meant GTK (see
my previous posting, 17-07-2008 20:27).
If you still want to try OpenGL, here is the link:
http://www.opengl.org, but be aware that the library is NOT written in
Delphi or Pascal. Most of the time it is written in C++. I don't know
your programming skills in C++, but to me it is rather difficult to port
the library to Pascal. Maybe someone else has got a solution?

Greetings,

Johan.

Marco van de Voort

unread,
Jul 25, 2008, 7:34:08 AM7/25/08
to
On 2008-07-25, Bitty <bi...@nospam.chello.nl> wrote:

> OpenGL might be a solution, but as Marco said you have to design and
> write your API yourself, and it is not a API-native product. It was a
> kind of mistake from me to notice this library, while I meant GTK (see
> my previous posting, 17-07-2008 20:27).

> If you still want to try OpenGL, here is the link:
> http://www.opengl.org, but be aware that the library is NOT written in
> Delphi or Pascal.

Hehehe, it is kind of funny that while reading this, I'm actually working on
validating an OpenGL control in Delphi that sb else developed with FPC.

> Most of the time it is written in C++. I don't know your programming
> skills in C++,

Using a lib is independant on what the lib is written in. It is dependant on
what the interface is. In Opengl this is no problem since the interface is
written on a plain C level.

Some other (sucky) libs only have C++ interfaces. These are harder from
Delphi to interface, but are also hard to interface using any C++ compiler
that is not the C++ compiler the libs are compiled with.

> but to me it is rather difficult to port the library to
> Pascal

Contrary to most C++ compilers, all major pascals (Lazarus/FPC,Delphi) come
with opengl headers preinstalled. (though older Delphi's need an update)

Bitty

unread,
Jul 25, 2008, 1:26:30 PM7/25/08
to
Marco van de Voort schreef:

> On 2008-07-25, Bitty <bi...@nospam.chello.nl> wrote:
>
>> OpenGL might be a solution, but as Marco said you have to design and
>> write your API yourself, and it is not a API-native product. It was a
>> kind of mistake from me to notice this library, while I meant GTK (see
>> my previous posting, 17-07-2008 20:27).
>
>> If you still want to try OpenGL, here is the link:
>> http://www.opengl.org, but be aware that the library is NOT written in
>> Delphi or Pascal.
>
> Hehehe, it is kind of funny that while reading this, I'm actually working on
> validating an OpenGL control in Delphi that sb else developed with FPC.
>
>> Most of the time it is written in C++. I don't know your programming
>> skills in C++,
>
> Using a lib is independant on what the lib is written in. It is dependant on
> what the interface is. In Opengl this is no problem since the interface is
> written on a plain C level.
>
I agree, but I thought OpenGL was written in some foreign C/C++ dialect
which was difficult porting to other platforms. I couldn't find any
useful docs on this topic (until now!), and tomorrow I will try to get
my stuff up and running.
Good tip!

> Some other (sucky) libs only have C++ interfaces. These are harder from
> Delphi to interface, but are also hard to interface using any C++ compiler
> that is not the C++ compiler the libs are compiled with.
>
>> but to me it is rather difficult to port the library to
>> Pascal
>
> Contrary to most C++ compilers, all major pascals (Lazarus/FPC,Delphi) come
> with opengl headers preinstalled. (though older Delphi's need an update)
>
>> Maybe someone else has got a solution?
>

Some research brought up the next websites:
1. http://www.freepascal.org/packages/opengl.html (official OpenGL for
FPC/Lazarus)
2. http://www.friends-of-fpc.org/tutorials/graphics/dlx_ogl/, (a nice
tutorial on using OpenGL and FPC)

Of course, you can search for yourself on fpc and opengl by Google (or
any other search engine you're using)

Johan.

Marco van de Voort

unread,
Jul 25, 2008, 4:56:24 PM7/25/08
to
On 2008-07-25, Bitty <bi...@nospam.chello.nl> wrote:
>>> Most of the time it is written in C++. I don't know your programming
>>> skills in C++,
>>
>> Using a lib is independant on what the lib is written in. It is dependant on
>> what the interface is. In Opengl this is no problem since the interface is
>> written on a plain C level.
>>
> I agree, but I thought OpenGL was written in some foreign C/C++ dialect
> which was difficult porting to other platforms.

Well, afaik nvidia simply supports it on e.g. FreeBSD and Linux. And even if
that is true, a normal C++ compiler could do as little with it as Pascal.

>>
>> Contrary to most C++ compilers, all major pascals (Lazarus/FPC,Delphi) come
>> with opengl headers preinstalled. (though older Delphi's need an update)
>>
>>> Maybe someone else has got a solution?
>>
> Some research brought up the next websites:
> 1. http://www.freepascal.org/packages/opengl.html (official OpenGL for
> FPC/Lazarus)
> 2. http://www.friends-of-fpc.org/tutorials/graphics/dlx_ogl/, (a nice
> tutorial on using OpenGL and FPC)

(and some posts on www.pascalgamingdevelopment.com's forum)

0 new messages