You are not logged in.

#1 2019-10-13 02:42:32

PedroVSC
Member
Registered: 2019-09-18
Posts: 8

[SOLVED] Salome failed to open with libGL error failed to load drivers

I'm trying to run Salome on Arch, but it is not opening because of some libGL erros.

$ ./salome 
runSalome running on PedroPC
Searching for a free port for naming service: 2815 - OK
Searching Naming Service  + found in 0.1 seconds 
Searching /Kernel/Session in Naming Service  +++++++++++++libGL error: MESA-LOADER: failed to open radeonsi (search paths /usr/lib/dri)
libGL error: failed to load driver: radeonsi
libGL error: MESA-LOADER: failed to open radeonsi (search paths /usr/lib/dri)
libGL error: failed to load driver: radeonsi
libGL error: MESA-LOADER: failed to open swrast (search paths /usr/lib/dri)
libGL error: failed to load driver: swrast
Warning: this type (Study,objref) already exists, it will be ignored.
Warning: this type (pyobj,objref) already exists, it will be ignored.
+ found in 7.0 seconds 
Start SALOME, elapsed time :   7.2 seconds

The output of "glxinfo -B" is

name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: X.Org (0x1002)
    Device: AMD Radeon (TM) RX 470 Graphics (POLARIS10, DRM 3.33.0, 5.3.5-arch1-1-ARCH, LLVM 9.0.0) (0x67df)
    Version: 19.2.1
    Accelerated: yes
    Video memory: 4096MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 4.5
    Max compat profile version: 4.5
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
Memory info (GL_ATI_meminfo):
    VBO free memory - total: 3741 MB, largest block: 3741 MB
    VBO free aux. memory - total: 4051 MB, largest block: 4051 MB
    Texture free memory - total: 3741 MB, largest block: 3741 MB
    Texture free aux. memory - total: 4051 MB, largest block: 4051 MB
    Renderbuffer free memory - total: 3741 MB, largest block: 3741 MB
    Renderbuffer free aux. memory - total: 4051 MB, largest block: 4051 MB
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 4096 MB
    Total available memory: 8192 MB
    Currently available dedicated video memory: 3741 MB
OpenGL vendor string: X.Org
OpenGL renderer string: AMD Radeon (TM) RX 470 Graphics (POLARIS10, DRM 3.33.0, 5.3.5-arch1-1-ARCH, LLVM 9.0.0)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 19.2.1
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL version string: 4.5 (Compatibility Profile) Mesa 19.2.1
OpenGL shading language version string: 4.50
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 19.2.1
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

The output of pacman -Qs libgl is

local/glu 9.0.1-1
    Mesa OpenGL Utility library
local/lib32-mesa 19.2.1-1
    An open-source implementation of the OpenGL specification (32-bit)
local/mesa 19.2.1-1
    An open-source implementation of the OpenGL specification
local/mesa-demos 8.4.0-2
    Mesa demos and tools incl. glxinfo + glxgears
local/opencl-mesa 19.2.1-1
    OpenCL support for AMD/ATI Radeon mesa drivers
local/vulkan-radeon 19.2.1-1
    Radeon's Vulkan mesa driver
local/lib32-libglvnd 1.2.0-2
    The GL Vendor-Neutral Dispatch library
local/lib32-mesa 19.2.1-1
    An open-source implementation of the OpenGL specification (32-bit)
local/libglade 2.6.4-6
    Allows you to load glade interface files in a program at runtime
local/libglvnd 1.2.0-2
    The GL Vendor-Neutral Dispatch library
local/mesa 19.2.1-1
    An open-source implementation of the OpenGL specification

The output of $ pacman -Qs mesa is

local/glu 9.0.1-1
    Mesa OpenGL Utility library
local/lib32-mesa 19.2.1-1
    An open-source implementation of the OpenGL specification (32-bit)
local/mesa 19.2.1-1
    An open-source implementation of the OpenGL specification
local/mesa-demos 8.4.0-2
    Mesa demos and tools incl. glxinfo + glxgears
local/opencl-mesa 19.2.1-1
    OpenCL support for AMD/ATI Radeon mesa drivers
local/vulkan-radeon 19.2.1-1
    Radeon's Vulkan mesa driver

Last edited by PedroVSC (2021-07-06 19:55:40)

Offline

#2 2019-10-13 10:22:16

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: [SOLVED] Salome failed to open with libGL error failed to load drivers

https://aur.archlinux.org/packages.php?K=salome  shows lots of packages, which ones are you using ?

post pacman -Qs salome


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2019-10-13 12:50:56

seth
Member
Registered: 2012-09-03
Posts: 50,012

Re: [SOLVED] Salome failed to open with libGL error failed to load drivers

And "pacman -Ql" for each of them, there's probably some local glibc or stdlibc++ …

Offline

#4 2019-10-15 03:47:54

PedroVSC
Member
Registered: 2019-09-18
Posts: 8

Re: [SOLVED] Salome failed to open with libGL error failed to load drivers

pacman -Qs salome this command doesn't give any output, I think is because I installed salome using a script from github.

https://github.com/CrocoDuckoDucks/salo … -installer

When I try to install it from AUR I get the error saying that  could not find all required packages: opencascade7.

When a package is out-of-date in AUR, is it easy to fix that, I know that there is a wiki about AUR, but I would like to know if it is something that a newbie can do or is it just for more expirenced guys?

Offline

#5 2019-10-15 03:59:05

loqs
Member
Registered: 2014-03-06
Posts: 17,197

Re: [SOLVED] Salome failed to open with libGL error failed to load drivers

Change the dependency to opencascade.  If it fails to build after that change post the full output from makepkg.

Offline

#6 2019-10-15 04:46:11

PedroVSC
Member
Registered: 2019-09-18
Posts: 8

Re: [SOLVED] Salome failed to open with libGL error failed to load drivers

Where should I change the dependency? In the AUR package?

The script that I used to install basically run the other script provided by the Salome official website. But change some entries from pyton2 to python (something like that).

Offline

#7 2019-10-15 05:02:35

loqs
Member
Registered: 2014-03-06
Posts: 17,197

Re: [SOLVED] Salome failed to open with libGL error failed to load drivers

In the PKGBUILD.

Offline

#8 2021-07-06 19:29:00

PedroVSC
Member
Registered: 2019-09-18
Posts: 8

Re: [SOLVED] Salome failed to open with libGL error failed to load drivers

I have found a way to solve it with the following:

LD_PRELOAD='/usr/$LIB/libstdc++.so.6' DISPLAY=:0 salome

I do not know if answering  thread with two years wrong, but I've found the solution just recently and I was not using the salome during this years.

Offline

Board footer

Powered by FluxBB