armory icon indicating copy to clipboard operation
armory copied to clipboard

Neither wayland nor X11 found

Open pozitigor1 opened this issue 2 years ago • 17 comments

I cant start game with krom, terminal writes this: Failed to load libXi.so Neither wayland nor X11 found.

pozitigor1 avatar May 06 '22 14:05 pozitigor1

I cant start game with krom, terminal writes this: Failed to load libXi.so Neither wayland nor X11 found.

me to

donjwan88 avatar May 08 '22 09:05 donjwan88

when i use krom 1

donjwan88 avatar May 08 '22 09:05 donjwan88

Hi @donjwan88, this is a completely different issue (please look at the different error messages). But thanks anyways for the report, your issue will be fixed with https://github.com/armory3d/armory/pull/2488. For now it will work if you disable live patch and make sure that there aren't any unconnected reroute sockets in your node trees.


As for the original issue: there is a bit more information in https://forums.armory3d.org/t/help-opensuse/4878 (for reference), and someone else on the Discord server had exactly the same issue a few weeks ago.

Maybe related: https://github.com/armory3d/armory/issues/2478

MoritzBrueckner avatar May 08 '22 16:05 MoritzBrueckner

Hi there , It seems to work with git version at least on Fedora . I could see on linux mint if someone needs to. https://github.com/armory3d/armory/wiki/gitversion Perhaps you will need to replace the pull origin master with pull origin main .

This issue comes from the March or April´s release . I always switch to git after a release , so I am not sure about the month .

Hope this helps .

jeffrds avatar May 08 '22 21:05 jeffrds

Hi @jeffrds, thanks for your answer, I'm currently using manjaro linux, so I can't try the git version because everything works fine for me, but in the future, when I return to LMDE or linux mint, I'll try the way you described!

pozitigor1 avatar May 10 '22 12:05 pozitigor1

Hi @pozitigor1 , you´re welcome . But I think you need to forget this way as my last answer is not accurate . It happens that my git version was not updated since at least March , my mistake :)

As I told in my last message , it seems that there is a conflict between main and master on Kha repo when you use pull origin command .

So you have to forget my solution . I tried on both linux mint and fedora Kde with the last release , the git version and also the old release from March and April ... same error : Failed to load libXi.so Neither wayland nor X11 found.

I can not tell if the error is also on the armory February release as I can´t download prior to this date on itch.io . I´ve also put the binary linux Krom from my old git but it complains about different API versions between Kha and Krom .

On discord , there is also this error from an armorpaint user in April . So I tried to see if there is something wrong with ArmorPaint_09_linux64.zip but I can not even start the app on Fedora . I can use ArmorPaint 08 without issue though . I will try on linux mint later this week .

I am sorry I could not be of more help on this subject .

jeffrds avatar May 11 '22 22:05 jeffrds

Hey @luboslenco, sorry for the ping.

Because this issue comes up a lot recently by different users, could it be that the Krom binary used on Linux is simply missing https://github.com/armory3d/armorcore/commit/2573559c91bb0e1594477ce9990ec5544ecf3735 ?

Or do you think this will be fixed by the full switch to Armorcore that seems to be in progress right now? Btw, it's awesome to see you working on this! :)

MoritzBrueckner avatar May 12 '22 19:05 MoritzBrueckner

I believe it is already included. :( I guess this started happening after merging https://github.com/Kode/Kinc/pull/668. I pushed one fix at https://github.com/Kode/Kinc/pull/692 but it looks like some distros still have issues opening a window via x11.

So we need to compare the x11 code before the https://github.com/Kode/Kinc/pull/668, see what changed and push a fix into Kinc. The bad part is that some distros work, some don't.

The wayland backend is missing the kinc_wayland_display_init() function, once that is implemented we can enable wayland in armory as well.

luboslenco avatar May 16 '22 12:05 luboslenco

(Link https://github.com/armory3d/armorpaint/issues/1400)

luboslenco avatar May 17 '22 08:05 luboslenco

Temporary workaround which should get rid of the Failed to load libXi.so error - in terminal run: sudo apt install libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev

luboslenco avatar May 18 '22 15:05 luboslenco

Hello ,

Thanks for the update ! It works so you can use Krom for armory dev and Armorpaint 0.9 .

for those on Fedora you can run : sudo dnf install libXrandr-devel libXinerama-devel libXcursor-devel libXi-devel

jeffrds avatar May 19 '22 09:05 jeffrds

Must create the symbolic link, it is just a matter of library naming. ln -s /usr/lib/x86_64-linux-gnu/libXi.so.6 /usr/lib/x86_64-linux-gnu/libXi.so ln -s /usr/lib/x86_64-linux-gnu/libXinerama.so.1 /usr/lib/x86_64-linux-gnu/libXinerama.so ln -s /usr/lib/x86_64-linux-gnu/libXrandr.so.2 /usr/lib/x86_64-linux-gnu/libXrandr.so ln -s /usr/lib/x86_64-linux-gnu/libXcursor.so.1 /usr/lib/x86_64-linux-gnu/libXcursor.so

e2002e avatar Jun 23 '22 13:06 e2002e

Should be ok now with https://github.com/Kode/Kinc/pull/710 and https://github.com/Kode/Kinc/pull/711 applied?

luboslenco avatar Jul 20 '22 08:07 luboslenco

idk, for now im using archlinux on my system, as soon as my system crashes, I'll install ubuntu or debian!

pozitigor1 avatar Jul 20 '22 11:07 pozitigor1

He @luboslenco you made a mistake in the first debian package that needs to be installed, it is not called libxrand-dev, but libxrandr-dev. So the full code is: sudo apt install libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev

pozitigor1 avatar Jul 28 '22 09:07 pozitigor1

Edited, thanks. So you still need to install these packages with the latest armory?

luboslenco avatar Jul 28 '22 09:07 luboslenco

on debian linux I still need to install these packages

pozitigor1 avatar Aug 01 '22 09:08 pozitigor1

OK, so now I could use armory on any distro that I choose, I'm closing the issue, thanks to everyone

pozitigor1 avatar Jan 11 '23 17:01 pozitigor1