Forum
× CodeTyphon Cross-Build Development, discussions and problems

Question Gtk CRITICAL on crosscompile from linux but works fine from Windows

  • superc
  • superc's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
1 month 4 weeks ago #13801 by superc
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.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
1 month 4 weeks ago #13803 by Sternas Stefanos
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.

  • superc
  • superc's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
1 month 4 weeks ago #13804 by superc
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.

  • superc
  • superc's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
1 month 4 weeks ago #13805 by superc
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.

  • superc
  • superc's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
1 month 4 weeks ago #13806 by superc
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.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
1 month 4 weeks ago #13808 by Sternas Stefanos
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.