Welcome, Guest
Username: Password: Remember me
CodeTyphon Cross-Build Development, discussions and problems
  • Page:
  • 1

TOPIC:

Gtk CRITICAL on crosscompile from linux but works fine from Windows 5 years 2 months ago #13801

  • superc
  • superc's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 75
  • Thank you received: 0
On my installation linux
Typhon 6.9 r61812 FPC 3.3.1 r42912 Platform : x86_64-linux-gtk2

my production program if i crosscompiler from windows to Linux-Arm (raspberry) works fine

if i cross compile from linux to Linux to Linux-Arm (raspberry) i receive this error :

Gtk-CRITICAL **: IA__gtk_text_view_scroll_to_mark: assertion 'within_margin >= 0.0 && within_margin < 0.5 failed

and application start but doesn't display any characters.

Please Log in or Create an account to join the conversation.

Gtk CRITICAL on crosscompile from linux but works fine from Windows 5 years 2 months ago #13803

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
Sometime in CrossBuild procedure of Unix target App on Unix Host OS
the "Linker" (ld) put in the CrossBuild target application libraries from Host OS,
and this is NOT correct.

Please check your app Libraries Directories.
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Gtk CRITICAL on crosscompile from linux but works fine from Windows 5 years 2 months ago #13804

  • superc
  • superc's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 75
  • Thank you received: 0
I've created a small app from debian 10 and run as in image:



button1 and button2 are visible; the button1 have font Sans;Regular:10 and button2 have font Sans:Regular:12 (I modified only size)


then I have crosscompiled for raspberry and voilĂ :



the button 2 not have any character.....

Any ideas?
Attachments:

Please Log in or Create an account to join the conversation.

Gtk CRITICAL on crosscompile from linux but works fine from Windows 5 years 2 months ago #13805

  • superc
  • superc's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 75
  • Thank you received: 0
I've tried to install xfonts-scalable on raspberry and on my installation of codetyphon run script ln1_SysLibraries_Install.sh ;
after I recomile same project with another font on the first button and voilĂ :

the text of the first button has also disappeared

Please Log in or Create an account to join the conversation.

Gtk CRITICAL on crosscompile from linux but works fine from Windows 5 years 2 months ago #13806

  • superc
  • superc's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 75
  • Thank you received: 0
I delete codetyphon, build big ide, and recreate cross element for raspberry 3....

NOW WORKS !!! without gtk error ....

Please Log in or Create an account to join the conversation.

Gtk CRITICAL on crosscompile from linux but works fine from Windows 5 years 2 months ago #13808

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
You can also install CT direct to raspberry 3 (slow)
but it's an option.
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

  • Page:
  • 1