FreePascal
Moderator: Moderators
FreePascal
Edit - Here's a summary of how to compile ZGE using FreePascal.
1 - Go to http://www.freepascal.org and download a Binary release for the platform of your choice.
2 - Run the installer and make sure to include the IDE and Utilities ( for fpcres.exe ).
3 - Start the IDE and select Compiler from the Options menu.
4 - In the Syntax tab set the Compiler Mode to "Delphi compatible" and enter "MINIMAL" in the Conditional defines field.
5 - Open the Assembler tab, and set Assembler Reader to "Intel style assembler", then close the window.
6 - To compile ZGE entirely, first select Open from the File menu, and add "*.dpr" to the filetypes.
7 - Now open "ZzDC.dpr" from your subversion folder.
8 - Finally, from the Compile menu select Compile.
9 - Success!
! Building a new Player.bin is most convenient using either makeFpcWin32.bat or makeFpcSDL.bat located in the Build folder of your subversion.
Once build, move the newly created zzdc.exe to your ZGameEditor folder ( make sure to always use the latest Beta release! ) and rename it to Player.bin.
Good luck ~
Last edited by Kjell on Tue Oct 05, 2010 4:34 pm, edited 3 times in total.
Assuming you only want to build the runtime (player.bin) then uSymTab unit should not be needed. Find the menu option where you define names and define "MINIMAL". The option to the command line compiler fpc.exe is "-dMINIMAL".
It's been a couple of months since I last tried fpc so let me know if you find any problems with the zge-source. I usually solve any incompatibility problems between Fpc and Delphi when it's time to rebuild the Linux and Mac binaries.
It's been a couple of months since I last tried fpc so let me know if you find any problems with the zge-source. I usually solve any incompatibility problems between Fpc and Delphi when it's time to rebuild the Linux and Mac binaries.
Hej Ville,
Yea, I'm aware of the MINIMAL definition, but it's good to mention that this is the first thing you need to do Anyway, after that I'm getting the attached fatal ( TZComponentClass = class of TZComponent; ). Which if I recall correctly is because the compiler needs to be set to Delphi compatible .. and then I get a whole bunch Unknown Identifier & Assembler syntax errors.
K
Yea, I'm aware of the MINIMAL definition, but it's good to mention that this is the first thing you need to do Anyway, after that I'm getting the attached fatal ( TZComponentClass = class of TZComponent; ). Which if I recall correctly is because the compiler needs to be set to Delphi compatible .. and then I get a whole bunch Unknown Identifier & Assembler syntax errors.
K
- Attachments
-
- FPC.gif (4.82 KiB) Viewed 30331 times
I made a small change to platform_win32.inc unit so refresh to latest source.
Try the latest fpc-build: ftp://ftp.freepascal.org/pub/fpc/snapsh ... 386-win32/
Set conditional define to "MINIMAL"
Set compiler mode to "Delphi compatible"
Set assembler reader to "Intel style assembler"
That will make it compile ok although I get a couple of runtime errors. I'll see if I can find what the problem is.
Try the latest fpc-build: ftp://ftp.freepascal.org/pub/fpc/snapsh ... 386-win32/
Set conditional define to "MINIMAL"
Set compiler mode to "Delphi compatible"
Set assembler reader to "Intel style assembler"
That will make it compile ok although I get a couple of runtime errors. I'll see if I can find what the problem is.
It gives me a "Assertion Failure" error when trying to build a standalone, same thing when changing the make batch to WIN32 like you described ( note that my Player.bin is 36Kb larger the the current Beta ).
K
Last edited by Kjell on Sun Oct 03, 2010 11:13 am, edited 1 time in total.
Please post the exact error message you get.
When generating exe-files you will need the latest ZGE beta-build or it will fail.
Another thing you can try is to unzip the attached file in the same folder as zzdc.exe and then run zzdc.exe. It should give you the About-dialog graphics.
When generating exe-files you will need the latest ZGE beta-build or it will fail.
Another thing you can try is to unzip the attached file in the same folder as zzdc.exe and then run zzdc.exe. It should give you the About-dialog graphics.
- Attachments
-
- zzdc.zip
- (428 Bytes) Downloaded 1228 times
Hi Lupo,
K
Just had a brief look at the specifications, and it makes quite a difference whether you're porting to ES 1.X or 2.X. Most of the fixed-pipeline functionality has been removed from 2.X ( stuff like glFrustum, glMatrixMode, glPush/PopMatrix etc ), so you have to do pretty much everything through Shaders ( and thus it's allot harder to port ZGE to this spec ).Do you have an idea, how big is the codebase to be refactored (opengles)?
K
There are ways to circumvent the absence of glBegin etc. Here is an interesting article that discuss those techniques:
http://www.fabiensanglard.net/wolf3d/index.php
Scroll down to "Escaping infamous Immediate mode".
http://www.fabiensanglard.net/wolf3d/index.php
Scroll down to "Escaping infamous Immediate mode".