Jump to content
EugeneK

FmxLinux and GTK

Recommended Posts

Hi

 

I'm trying to use FmxLinux in Delphi 12.2 and deploying to WSL, all samples work apart from GtkWindow, it has following code

procedure gtk_window_set_title(window: Pointer; title: PUtf8Char); cdecl; external 'libgtk-3.so.0';

function gtk_widget_get_window(widget: Pointer): Pointer; cdecl; external 'libgtk-3.so.0';
procedure gdk_window_process_updates(window: Pointer; update_children: Boolean); cdecl; external 'libgdk-3.so.0';

and fails with this error when building

[DCC Error] E2597 C:\Program Files (x86)\Embarcadero\Studio\23.0\bin\ld-linux.exe: error: cannot find -lgdk-3
  C:\Program Files (x86)\Embarcadero\Studio\23.0\bin\ld-linux.exe: error: cannot find -lgtk-3
  

How can I make Delphi find these libraries?

Share this post


Link to post

Have you installed the gtk library on the linux machine?
 

sudo apt-get install libgtk-3-dev

 

Share this post


Link to post
9 hours ago, havrlisan said:

Have you installed the gtk library on the linux machine?
 


sudo apt-get install libgtk-3-dev

 

Yes, but it fails during build, not when deploying, so I don't think it matters. It have to be somewhere on Windows machine

Share this post


Link to post
1 hour ago, EugeneK said:

It have to be somewhere on Windows machine 

Press [Update Local File Cache] in SDK Manager after libgtk-3-dev installed.

  • Thanks 1

Share this post


Link to post
3 hours ago, Kazantsev Alexey said:

Press [Update Local File Cache] in SDK Manager after libgtk-3-dev installed.

Thank you! that was the problem.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×