box64 icon indicating copy to clipboard operation
box64 copied to clipboard

Symbol `gtk_progress_bar_set_show_text` and `gdk_threads_add_idle` not found

Open Maxython opened this issue 2 years ago • 5 comments

I tried to run minecraft-launcher on Termux, but I ended up getting the following error: Screenshot_20231207-000859_Termux I note that this box64 is based on glibc and not on bionic from android.

Maxython avatar Dec 06 '23 21:12 Maxython

@ptitSeb some missing gtk and gdk wrapped symbols in box64 I guess

ghost avatar Dec 07 '23 08:12 ghost

Ok, I have added the 2 missing functions.

ptitSeb avatar Dec 08 '23 11:12 ptitSeb

@ptitSeb, if it's not a secret, but how are new symbols added to box64?

Maxython avatar Dec 08 '23 11:12 Maxython

@ptitSeb, if it's not a secret, but how are new symbols added to box64?

It's not secret at all. I check the signature on the official doc and add the wrapping in the XXXX_private.h file (and int the .c if the function has a callback or some special needs).

There is an old blog entry there https://box86.org/2021/08/a-deep-dive-into-library-wrapping/ with some details.

ptitSeb avatar Dec 08 '23 11:12 ptitSeb

@ptitSeb, if it's not a secret, but how are new symbols added to box64?

It's not secret at all. I check the signature on the official doc and add the wrapping in the XXXX_private.h file (and int the .c if the function has a callback or some special needs).

There is an old blog entry there https://box86.org/2021/08/a-deep-dive-into-library-wrapping/ with some details.

Maybe you can make a tutorial on this? I found missing symbols are the most common problems which seem "easy" to solve. If it is possible to solve by ourselves and contribute to the project?

iamcxds avatar Dec 21 '23 16:12 iamcxds

The requested functions have been wrapped and a guide on how to do wrapping has been created:

https://box86.org/2024/02/how-to-create-a-wrapping/

Closing as resolved.

LukeShortCloud avatar Nov 03 '24 17:11 LukeShortCloud