Yade Installation on windows

Asked by Shubham Agarwal

Hi
I am trying to install YADE on WIN-10. I an using Windows' Ubuntu application, I am using the following steps:
1. sudo bash -c 'echo "deb http://www.yade-dem.org/packages/ xenial/" >> /etc/apt/sources.list'
2. sudo apt-get update
3. sudo apt-get install yade

After installation, I checked by typing Yade, I get the following:

Welcome to Yade 2020.01a
Using python version: 3.8.2 (default, Jul 16 2020, 14:00:26)
[GCC 9.3.0]
Traceback (most recent call last):
  File "/usr/bin/yade", line 144, in <module>
    import yade
  File "/usr/lib/x86_64-linux-gnu/yade/py/yade/__init__.py", line 75, in <module>
    from yade import boot
ImportError: libQt5Core.so.5: cannot open shared object file: No such file or directory

I am new to UBUNTU and YADE, please help me regarding where I am doing wrong

Thanks

Question information

Language:
English Edit question
Status:
Expired
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Robert Caulk (rcaulk) said :
#1

Windows linux subsystem doesn't support the GUI. You shouild be able to launch yade without a gui:

yade -n

Cheers,

Robert

Revision history for this message
Shubham Agarwal (shubagra) said :
#2

Hi
I tried that, but I am still getting the same error

shubagra@DESKTOP-IFEVV14:/mnt/c/Users/shubh/OneDrive/Desktop/DEM$ yade -n
Welcome to Yade 2020.01a
Using python version: 3.8.2 (default, Jul 16 2020, 14:00:26)
[GCC 9.3.0]
Traceback (most recent call last):
  File "/usr/bin/yade", line 144, in <module>
    import yade
  File "/usr/lib/x86_64-linux-gnu/yade/py/yade/__init__.py", line 75, in <module>
    from yade import boot
ImportError: libQt5Core.so.5: cannot open shared object file: No such file or directory

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

What output do you receive for the command

sudo apt install libqt5core5a

Revision history for this message
Shubham Agarwal (shubagra) said :
#4

Reading package lists... Done
Building dependency tree
Reading state information... Done
libqt5core5a is already the newest version (5.12.8+dfsg-0ubuntu1).
libqt5core5a set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 132 not upgraded.

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

And what is the output of

ls -l /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
ldd /usr/lib/x86_64-linux-gnu/libQt5Core.so.5

Revision history for this message
Shubham Agarwal (shubagra) said :
#6

Hi, following are the outputs-
ls -l /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 :
lrwxrwxrwx 1 root root 20 Apr 9 2020 /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 -> libQt5Core.so.5.12.8

 ldd /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 :
 linux-vdso.so.1 (0x00007fffd1ba8000)
 libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f375579d000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f3755780000)
libicui18n.so.66 => /lib/x86_64-linux-gnu/libicui18n.so.66 (0x00007f3755480000)
libicuuc.so.66 => /lib/x86_64-linux-gnu/libicuuc.so.66 (0x00007f3755290000)
 libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f3755280000)
 libpcre2-16.so.0 => /lib/x86_64-linux-gnu/libpcre2-16.so.0 (0x00007f37551f0000)
libdouble-conversion.so.3 => /lib/x86_64-linux-gnu/libdouble-conversion.so.3 (0x00007f37551c0000)
 libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f3755090000)
libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f3754ea0000)
  libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f3754d51000)
  libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f3754d30000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3754b30000)
/lib64/ld-linux-x86-64.so.2 (0x00007f3755d4a000)
  libicudata.so.66 => /lib/x86_64-linux-gnu/libicudata.so.66 (0x00007f3753050000)
 libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f3752fd0000)

Revision history for this message
Launchpad Janitor (janitor) said :
#7

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Luc Sibille (luc-sibille) said :
#8

Hello,

The IT of my lab managed to make YADE running on WSL (Windows subsystem for linux) inclunding the graphical interface.
Not sure it works for all the systems, it has been tested on a single PC, so do not take it as a release procedure and I am not able to give assistance about this pocedure, but some elements may help some Yade users.
Here is the procedure:

The installation has been tested on Windows 10 1903, WSL 2, Ubuntu 20.04.

If necessary, update Windows to version 1903 mininum

Update WSL2 : https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi

Install Ubuntu 20.04 from Microsoft Store.

Install Vcxsrv : https://sourceforge.net/projects/vcxsrv/

Install Yade (see the Yade documentation: https://yade-dem.org/doc/installation.html ).

sudo bash -c 'echo "deb http://www.yade-dem.org/packages/ focal main" >> /etc/apt/sources.list'
wget -O - http://www.yade-dem.org/packages/yadedev_pub.gpg | sudo apt-key add -
sudo apt update && sudo apt install yadedaily python3-pip
sudo pip3 install mpmath

At this step an error related to libQt5Core.so.5 may appear when Yade is launched. To avoid it :
sudo strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5

Then how to launch Yade:

Launch Vcxsrv -> keep all the default parameters.

Launch Ubuntu 20.04 WSL

export DISPLAY=:0.0

Launch Yadedaily

Accept the Firewall autorisation is necessary (popup)

Press F9 to generate a model

Then generate from the windows. The 3D rendering should appear.

Best,
Luc