I tried to debug my macOS App on Linux Mint 18.2 and got these error message after executing the app. Where can I find and load the required libraries to run my app correctly? I use Xojo 2017.2.
Common/Loaders/Loader.cpp: 173
Failure Condition: 0
Failed to load library libgdk-x11-2.0.so
libgdk-x11-2.0.so.0.2400.30: cannot open shared object file: No such file or directory
I build a test app for Linux 64-bit console and GUI and looked on them with ldd in terminal.
There is no reference to gtk 2.0 there. All gtk 3.0 for the GUI and nothing for console.
if not System.IsFunctionAvailable( “uuid_generate”, kLibName ) then
useDeclares = false
elseif not System.IsFunctionAvailable( “uuid_unparse_upper”, kLibName ) then
useDeclares = false
else
soft declare sub UUIDGenerate lib kLibName alias “uuid_generate” ( ByRef uuid as LinuxUUID )
soft declare sub UUIDUnparse lib kLibName alias “uuid_unparse_upper” ( ByRef uuid As LinuxUUID, ByRef out As LinuxUUIDString )
dim uuid as LinuxUUID
UUIDGenerate( uuid )
dim out as LinuxUUIDString
UUIDUnparse( uuid, out )
result = out.Data
result = result.DefineEncoding( Encodings.UTF8 )
end if[/code]
maybe you check yourself with ldd plus path to executable or library which of the library files there in your app or libs folder has a reference to gtk-2 which you do not have installed.
It’s the code of @Kem Tekinay he postet here. I also commented the source out and tried to debug, but I’ll get the same messages. The App has some custom drawn controls (Canvas subclasses). The rest of the App uses the new Xojo Framework. Looks like, I’ll have to re-engineer.