box64 icon indicating copy to clipboard operation
box64 copied to clipboard

Discord!

Open C29H25N3O5 opened this issue 2 years ago • 6 comments

  • Using the latest build of box64
  • Ubuntu ARM on Apple M1 using Parallels (virtual machine)
  • trying to run Discord using .tar.gz file Input:
$ box64 Discord

Output:

Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL ATOMICS PageSize:4096
Box64 with Dynarec v0.1.9 098317e built on May  2 2022 17:47:02
Using default BOX64_LD_LIBRARY_PATH: ./:lib/:lib64/:x86_64/:bin64/:libs64/
Using default BOX64_PATH: ./:bin/
Counted 63 Env var
Looking for Discord
Using emulated libffmpeg.so
Using native(wrapped) libdl.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) libgobject-2.0.so.0
Using native(wrapped) libglib-2.0.so.0
Error loading needed lib libxshmfence.so.1
Error loading one of needed lib
Error: loading needed libs in elf ~/Downloads/Discord/Discord

C29H25N3O5 avatar May 04 '22 00:05 C29H25N3O5

You need a missing library libxshmfence.

Donload the .deb from here Extract the deb and move files usr/lib/x86_64-linux-gnu/libxshmfence.so.1 and usr/lib/x86_64-linux-gnu/libxshmfence.so.1.0.0 to the folder where u extracted discord.tar.gz

You can extract deb files by using dpkg-deb -R <deb-name> <folder-name>

Jai-JAP avatar May 04 '22 04:05 Jai-JAP

Thanks. But after I installed libxshmfence, this is what I get:

Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL ATOMICS PageSize:4096
Box64 with Dynarec v0.1.9 098317e built on May  2 2022 17:47:02
Using default BOX64_LD_LIBRARY_PATH: ./:lib/:lib64/:x86_64/:bin64/:libs64/
Using default BOX64_PATH: ./:bin/
Counted 63 Env var
Looking for Discord
Using emulated libffmpeg.so
Using native(wrapped) libdl.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) libgobject-2.0.so.0
Using native(wrapped) libglib-2.0.so.0
Using emulated /lib/x86_64-linux-gnu/libxshmfence.so.1
Using native(wrapped) libgio-2.0.so.0
Using native(wrapped) libgmodule-2.0.so.0
Using native(wrapped) libnss3.so
Using native(wrapped) libnssutil3.so
Using native(wrapped) libsmime3.so
Using native(wrapped) libnspr4.so
Using native(wrapped) libatk-1.0.so.0
Using native(wrapped) libatk-bridge-2.0.so.0
Using native(wrapped) libSM.so.6
Using native(wrapped) libICE.so.6
Using native(wrapped) libXau.so.6
Using native(wrapped) libxcb.so.1
Using native(wrapped) libdbus-1.so.3
Using native(wrapped) libdrm.so.2
Using native(wrapped) libgdk_pixbuf-2.0.so.0
Error loading needed lib libgtk-3.so.0
Error loading one of needed lib
Error: loading needed libs in elf ~/Downloads/Discord/Discord

Which is confusing, because when I run

$ sudo apt get install libgtk-3-0

...it seems that I already have the latest version?

Reading package lists... Done
Building dependency tree       
Reading state information... Done
libgtk-3-0 is already the newest version (3.24.20-0ubuntu1.1).
The following packages were automatically installed and are no longer required:
  keditbookmarks liba52-0.7.4 libaribb24-0 libass9 libbasicusageenvironment1 libcddb2
  libdc1394-22 libdca0 libdvbpsi10 libdvdnav4 libdvdread7 libebml4v5 libfaad2 libgroupsock8
  libgtkd-3-0 libixml10 libkate1 libkf5bookmarks-data libkf5bookmarks5 libkf5kiogui5
  libkf5notifyconfig-data libkf5notifyconfig5 libkf5parts-data libkf5parts-plugins libkf5parts5
  libkf5pty-data libkf5pty5 liblivemedia77 libllvm10 libllvm11 libmad0 libmatroska6v5 libmpcdec6
  libmpeg2-4 libmysofa1 libopenmpt-modplug1 libphobos2-ldc-shared90 libphonon4qt5-4
  libphonon4qt5-data libplacebo7 libpostproc55 libprotobuf-lite17 libproxy-tools libqt5test5
  libresid-builder0c2a libsdl-image1.2 libsdl1.2debian libsidplay2 libspatialaudio0 libsrt1
  libssh2-1 libupnp13 libusageenvironment3 libva-wayland2 libvlc-bin libvlc5 libvlccore9
  libvted-3-0 phonon4qt5 phonon4qt5-backend-vlc python3-configobj python3-psutil vlc-data
  vlc-plugin-base vlc-plugin-video-output
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.

C29H25N3O5 avatar May 04 '22 15:05 C29H25N3O5

You may need to add x64 gtk libs as above. Get gtk libs from ubuntu repos. Google lib name to get package name. This has to be done for other missing libs too

Jai-JAP avatar May 04 '22 15:05 Jai-JAP

gtk 3.0 is not supported on box64 yet (it is supported, a bit, on box86) So Native libs will be ignored, you need x86_64 version of the libs

ptitSeb avatar May 04 '22 15:05 ptitSeb

I went through and added all the missing libs.. Still getting errors This is on the Apple M1 running Asahi

log.txt

Radiicall avatar May 14 '22 09:05 Radiicall

Until gtk 3.0 works you could maybe use webcord as an alternative as they offer a native aarch64 build.

FreddyFeuerstein avatar Jun 23 '22 23:06 FreddyFeuerstein