[fpc-pascal] Problem with compile Gtk2 for version 2.6

Marco van de Voort marcov at stack.nl
Mon May 1 12:25:59 CEST 2006

> I tried to compile gtk2 for arm linux.
> I download the package/extra/gtk2 source from svn server and I use the 
> following command to compile it:
> make OS_TARGET="linux" CPU_TARGET="arm" FPCCPUOPT="O2" PP="ppcarm" 
> With the original source (GTK2_2), it compiles successfully.
> Then I modifed gtk2/gtk+/gtk/gtk2.pas, and changed the following line 
> {$define GTK2_2} to 2_4 or 2_6.
> The compilation errors are:
> Assembling gtk2
> Assembling with smartlinking gtk2
> /bin/sh: /usr/bin/ar: Argument list too long
> gtkdebug.inc(19,6) Error: Error while linking
> gtkdebug.inc(19,6) Fatal: There were 1 errors compiling module, stopping
> gtkdebug.inc(28,36) Error: Compilation aborted
> make: *** [buildgtk2.ppu] Error 1
> Can anybody help me to solve it?

Do not smartlink that unit, iow remove the -CX 

More information about the fpc-pascal mailing list