PDA

View Full Version : Freepascal 2.2.4rc1 released



savage
26-01-2009, 10:58 AM
The Free Pascal Compiler Team has this to say...

We have placed the first release-candidate of the Free Pascal Compiler version 2.2.4 on our ftp-servers.

You can help improve the upcoming 2.2.4 release by downloading and testing this release. If you want you can report what you have done here:
http://wiki.freepascal.org/Testers_2.2.4

With this release we also want to test our new packaging-system. After installing the package manager (fppkg) can be called from the command-line. For now only the 'lnet' package is available for installation through the package system. When all goes well it could be that more packages will be added.

For more information about fppkg:
http://wiki.freepascal.org/fppkg

Changes that may break backwards compatibility are documented at:
http://wiki.freepascal.org/User_Changes_2.2.4

Downloads are available at:
ftp://ftp.freepascal.org/pub/fpc/beta/2.2.4rc1/

Enjoy!

The Free Pascal Compiler Team

KidPaddle
27-01-2009, 09:27 PM
I have successfully build a cross compiler, 2.2.4, under linux for gp2x.

Unit sdl_mixer.pas must be changed, cause default gp2x has no smpeg - library, so follow lines in sdl_mixer,
{$IFNDEF DARWIN}
5 : ( mp3 : PSMPEG );
{$ENDIF}

must be replaced with
{$IFNDEF DARWIN}
{$IFNDEF no_smpeg}
5 : ( mp3 : PSMPEG );
{$ENDIF}
{$ENDIF}

Compiler build with line
make crosszipinstall CPU_TARGET=arm CROSSOPT='-CfSOFT -dGP2X -darm -dno_smpeg -dFPC_ARM -O- -gl' CROSSBINDIR=/usr/local gp2xdev/bin BINUTILSPREFIX=gp2x-
Packing of zipinstall file didn't work, but in directory /tmp/fpc-pack all needed files are located, so finally i got the cross compiler

A simple sdl program, playing an ogg music file and showing a graphic, working well.

Greetings
Thomas

savage
27-01-2009, 09:43 PM
Thanks for the update. Any chance you can create a small step by step article about how you got everything working for GP2X. We can then add it to the articles section.

I am having problems with my CVS checkins on my Windows machine. I'll make the change locally, but I won't be able to check it in just yet.

paul_nicholls
28-01-2009, 03:53 AM
I have successfully build a cross compiler, 2.2.4, under linux for gp2x.

Unit sdl_mixer.pas must be changed, cause default gp2x has no smpeg - library, so follow lines in sdl_mixer,
{$IFNDEF DARWIN}
5 : ( mp3 : PSMPEG );
{$ENDIF}

must be replaced with
{$IFNDEF DARWIN}
{$IFNDEF no_smpeg}
5 : ( mp3 : PSMPEG );
{$ENDIF}
{$ENDIF}

Compiler build with line
make crosszipinstall CPU_TARGET=arm CROSSOPT='-CfSOFT -dGP2X -darm -dno_smpeg -dFPC_ARM -O- -gl' CROSSBINDIR=/usr/local gp2xdev/bin BINUTILSPREFIX=gp2x-
Packing of zipinstall file didn't work, but in directory /tmp/fpc-pack all needed files are located, so finally i got the cross compiler

A simple sdl program, playing an ogg music file and showing a graphic, working well.

Greetings
Thomas

That's awesome news KidPaddle! I remember the problems {insert appropriate swear words here} that we had trying to get the sdl_mixer working for the GP2X hand-held!!

Obviously this means no .mp3 files but still WooHoo! :)

excellent :)
cheers,
Paul

KidPaddle
28-01-2009, 08:35 AM
Please notice, that i used dynamic linking, most of older reported error depends on static linking. I check this at weekend.

I made a step by step tutorial, but only in German, for bigger docs my language knowledge is too less.

I made two simple samples, http://www.seban.de/download/fpc4gp2x.zip . Both versions, for Windows and GP2X, are included.

- sdlcheck.gpe
Only for simple testing, left and right to move, press x for quitting.

- sfighter.gpe
Simple shooter with scrolling background, press both shoulder buttons for quitting.

Both are compiled with "ppcrossarm -dGP2 -dno_smpeg project.dpr".

Thomas

paul_nicholls
28-01-2009, 10:44 PM
Please notice, that i used dynamic ]http://www.seban.de/download/fpc4gp2x.zip[/url]. Both versions, for Windows and GP2X, are included.

- sdlcheck.gpe
Only for simple testing, left and right to move, press x for quitting.

- sfighter.gpe
Simple shooter with scrolling background, press both shoulder buttons for quitting.

Both are compiled with "ppcrossarm -dGP2 -dno_smpeg project.dpr".

Thomas

Neat :-)

BTW, the zip file link you provided has a '.' character at the end and needs removing.

Do you have a link to your german tutorial?
I should be able to use a translator to get the gist of how to get this working for myself :)

cheers,
Paul

paul_nicholls
28-01-2009, 10:51 PM
Hi KidPaddle,
Is the information on your home page still relevant to the new fpc 2.2.4 cross-compiler?

Orignal URL
http://www.seban.de/

Translated URL
http://translate.google.com.au/translate?hl=en&sl=de&u=http://www.seban.de/&sa=X&oi=translate&resnum=1&ct=result&prev=/search%3Fq%3Dhttp://www.seban.de/%26hl%3Den%26sa%3DG

cheers,
Paul

KidPaddle
29-01-2009, 05:58 AM
Yes, it is. But auto translation is very ugly and partly wrong.

Thomas

KidPaddle
29-01-2009, 06:47 AM
Static compiling doesn't work, i got errors like this

/usr/local/lib/fpc/2.2.4/units/arm-linux/rtl/errors.o uses hardware FP, whereas sdltest uses software FP
cross compiler is build with

make crosszipinstall CPU_TARGET=arm CROSSOPT='-CfSOFT -dGP2X -dno_smpeg -dFPC_ARM -O- -gl' CROSSBINDIR=/usr/local/gp2xdev/bin BINUTILSPREFIX=gp2x-
, but it seems to be, that the option -CfSOFT is not used.

For static linking, i need softfloat, all libraries in gp2x sdk has softfloat and mixing is not possible.

At this time, i can not use optimized sdl libraries.

Thomas

Ñuño Martínez
29-01-2009, 11:17 AM
I wonder if it will be able to use it in the future Pandora hand-held (http://openpandora.org/). I commented it in the FPC's mail list and they said it should run but they can't test it because today Pandora is just a prototype. Actually they (Pandora developers) build the first complete Pandora prototype yesterday. ;)

KidPaddle
29-01-2009, 11:28 AM
If i got my pandora and wiz, i will check it. Next step is cross compiling for Nokia N800, i have one, and it has same screen resolution as pandora.

At moment, i use dynamic linking. I write my own hardware layer for gp2x, uGP2X.pas in download file, it is long time ago i used peek and poke :)

Cheers,
Thomas

noeska
29-01-2009, 05:12 PM
@KidPaddle: does the Pandora come with openg-es drivers?

KidPaddle
29-01-2009, 06:10 PM
Yes, there was an announcement a few days ago on, http://www.gp32x.com/board/index.php?showtopic=46247 , that OpenGL ES are now public and are shipped on official release.

Thomas