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.
(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.
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)
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.
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.
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.
There are limitations of course, and also your customers would have to
install it.
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
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.
Thanks for your suggesstions.
I think there is less knowledge about porting Delphi code to Linux in those
groups then here.
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.
>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
Oops, sorry, c.l.p.misc then.
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.
>> 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)
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.
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.
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.
The earlier named lazarus already supports GTK+. But has the added advantage
that you can alternately use win32 or carbon (OS X) too.
Thanks johan, Let me try that. And will update u the Status.
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.
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.
> 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)
> 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.
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)