Example NativeHandles does not compile

Issue #205 resolved
spyros created an issue

Example at C:\Users\user1\Documents\CrossVcl\Examples\NativeHandles

I open the folder \NativeHandles and i try to compile it from the example but it throws and Error

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

RAD STUDIO BUILD Embarcadero® RAD Studio 10.3 Version 26.0.33219.4899 (10.3.1)

Ubundu 16.04 ubuntu-16.04.6-desktop-amd64.iso

Can you tell me if you manage to run this example and if so what version of RAD STUDIO you used and what version of Linux

Comments (5)

  1. Eugene Kryukov repo owner

    First try to update SDK in Delphi. Second, install GTK3 to Ubuntu by “sudo apt install libgtk-3-common“ and then update SDK in Delphi again.

  2. spyros reporter

    I installed libgtk-3-common then i updated the SDK but the problem remains can you tell me what version of Ubuntu Linux you use and which version of delphi ? does it work for you?

  3. Eugene Kryukov repo owner

    We use Ubuntu 16.04, 18.04 and it works with Delphi 10.3.1.

    Please check your Linux’s SDK (usr\lib\x86_64-linux-gnu sub-folder usually) folder for “libgtk-3.so” file. Or any combination, like “libgtk-3.so.0” etc.

  4. spyros reporter

    OK I managed to resolve the problem with this command at the Linux Ubundu ===> “sudo apt-get install libgtk-3-dev”

    the command you gave me “sudo apt install libgtk-3-common“ did not solve the problem i had to install the dev edition of the GTK

    so what i did to resolve the problem was “sudo apt-get install libgtk-3-dev” then i had to update the SDK cache clicking replace yes to all.

    this solved the problem please tag the issue as resolved.

    Thank you

  5. spyros reporter

    OK I managed to resolve the problem with this command at the Linux Ubundu ===> “sudo apt-get install libgtk-3-dev”

    the command you gave me “sudo apt install libgtk-3-common“ did not solve the problem i had to install the dev edition of the GTK

    so what i did to resolve the problem was “sudo apt-get install libgtk-3-dev” then i had to update the SDK cache clicking replace yes to all.

    this solved the problem please tag the issue as resolved.

    Thank you

  6. Log in to comment