PDA

View Full Version : Can a Free Pascal compile a really cool Delphi 4 game source i know about?



Core
09-01-2011, 11:17 AM
Awhile back i inquired if a really cool Delphi 4 game (open source) could be ported into FreePascal, now i am wondering if newer 3rd party or FPC graphical libraries will have made this port possible today in 2011, could anyone let me know?

Initial Q:
http://community.freepascal.org:10000/bboards/message?message_id=328210&forum_id=24105#343918

Discussion:
http://www.lazarus.freepascal.org/index.php/topic,7914.0.html

Additional PGD:
http://www.pascalgamedevelopment.com/showthread.php?317-Newbie-trying-something-.-.-.-prolly-need-help-later.

We would like to see a port to a Pascal other than Delphi on to Windows, and then MacOS & Linux, please see what could be advised or if this is now a possibility to do, Tia!

code_glitch
09-01-2011, 12:24 PM
add the line
{$Mode Delphi} at the top (after program programname; bit) and give it a shot.

Assuming you use windows:



fpc source.pas -MDelphi


should do the trick. If it doesn't, some tweaking may be required. hope this helped.

WILL
09-01-2011, 09:01 PM
These days porting from one platform to another in Pascal or Object Pascal is becoming much more accessible. Not only can this all be done with the FPC and Lazarus projects, but very soon Embarcadero is going to be releasing new versions of Delphi that will support both Mac OS X and Linux. If you don't mind managed code, you can also port it to .NET and with Mono support you can create managed code ports on these systems this way as well.

However if you prefer native executable solutions Free Pascal and Lazarus are the way to go until the new ports of Delphi come out.

code_glitch
09-01-2011, 09:18 PM
Delphi on linux - been waiting for that one. Will definitely get a copy and learn it ASAP once it comes out. Oh, and just a thought but is there any news on any PGD comptitions soon? Just a thought.