Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2006-05

Problem with compile Gtk2 for version 2.6

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

smartkenny

Hello, all

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" COMPILER_OPTIONS="-CX -XX -Xs"

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?
Thank you so much.

Marco van de Voort
to smartkenny
Show quoted text 22 lines
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" COMPILER_OPTIONS="-CX -XX -Xs" 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