slint-ui / slint

Slint is a declarative GUI toolkit to build native user interfaces for Rust, C++, or JavaScript apps.
https://slint.dev
Other
17.54k stars 600 forks source link

slint reported an error running on tina #2753

Closed kevin406972552 closed 1 year ago

kevin406972552 commented 1 year ago

image

Cross compilation is error-free

image

Solve the problem of dynamic library

image

The futex facility returned an unexpected error code.Aborted

tronical commented 1 year ago

Interesting, I've never seen this error before. The discussion at https://github.com/rust-lang/rust/issues/93228 and https://bugs.gentoo.org/799878#c8 suggest that this message originates from the C library itself.

https://github.com/electron/electron/issues/24211 on the other hand suggests that you need to set DISPLAY , to reach the x server.

Are you running inside WSL by chance?

kevin406972552 commented 1 year ago

This runs on embedded Linux devices

tronical commented 1 year ago

As far as searching on the internet takes me, this appears to be some kind of incompatibility between glibc and the kernel. I'm not sure there's anything we can do on the Slint side. Could you try a different glibc version or perhaps switch to musl?

kevin406972552 commented 1 year ago

After switching to musl:

image

tronical commented 1 year ago

Ouch, we do indeed require dlopen. So musl is not an option:(.

kevin406972552 commented 1 year ago

Now the problem seems to be yeslogic-fontconfig-sys

tronical commented 1 year ago

Yes. And after that glutin, Wayland, or xcb: we do call dlopen() for a few system libraries. That means we can’t support musl.

I think you may need to get in touch with your linux distro to find out why glibc doesn’t support futexes. Maybe it’s a kernel incompatibility?

kevin406972552 commented 1 year ago

Would you like to know whether slint supports armv7-unknown-linux-gnueabihf or armv7-unknown-linux-gnueabi

tronical commented 1 year ago

Yes, armv7-unknown-linux-gnueabihf is supported, I'm uncertain about armv7-unknown-linux-gnueabi.

kevin406972552 commented 1 year ago

I wish slint would support framebuffer

ogoffart commented 1 year ago

I wish slint would support framebuffer

That's tracked in https://github.com/slint-ui/slint/issues/423 (Edit: https://github.com/slint-ui/slint/issues/712)

Are there still any problem tracked by this issue? Has the original problem been solved?