Welcome, Guest
Username: Password: Remember me

TOPIC: GTK2 ScrollBar CrossCompile for ARM

GTK2 ScrollBar CrossCompile for ARM 2 months 2 weeks ago #3449

  • halmariane
  • halmariane's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
  • Karma: 0
Hi to everybody.

This is my first post.

I have CorssCompiled one simple form application for ARM-Linux with CodeTyphon 4.10.

In a form i drop one scrollbar without any behind code. When the application is executed in the host system(x86-64) works as expected. If i crosscompile the application from x86-64 to ARM then one SIGSEV crash is in the unit gtk2callback.inc only when the scrollbar is clicked:
function Gtk2RangeScrollCB(ARange: PGtkRange; AScrollType: TGtkScrollType; AValue: gdouble; AWidgetInfo: PWidgetInfo): gboolean; cdecl;

AWidgetInfo^.LCLObject is an invalid object. This is the reason of the fail. This problem has been reported to http://forum.lazarus.freepascal.org/index.php/topic,20129.0.html also.

If the application is compiled in the ARM system then works as expected also. The problem with the scrollbar is only if the application is crosscompiled. I have tested the application with GNU toolchain externally to CodeTyphon and the problem persists.

This is a hard problem.

Some erudite please ??
Last Edit: 2 months 1 week ago by halmariane.
The administrator has disabled public write access.

GTK2 ScrollBar CrossCompile for ARM 2 months 1 week ago #3464

  • halmariane
  • halmariane's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
  • Karma: 0
Problem Solved


forum.lazarus.freepascal.org/index.php/topic,19827.15.html

The problem was the compiler options and for this reason errors in the calling conventions.

Regards
The administrator has disabled public write access.

GTK2 ScrollBar CrossCompile for ARM 2 months 1 week ago #3465

  • fredycc
  • fredycc's Avatar
  • OFFLINE
  • Junior Boarder
  • Database/Developer
  • Posts: 45
  • Thank you received: 9
  • Karma: 2
:cheer: great news
the script must be modified on other parts more of the script

Can you suggest the modifications you made for future reference?

please.

thanks
The administrator has disabled public write access.

GTK2 ScrollBar CrossCompile for ARM 2 months 1 week ago #3496

  • halmariane
  • halmariane's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
  • Karma: 0
Yes, the script mus be modified in all "make" instructions in their respective OS script. For example in linux could be ln_FPCx_Build_Cross.sh for arm.

Regards
Last Edit: 2 months 1 week ago by halmariane.
The administrator has disabled public write access.
Time to create page: 0.141 seconds