You are not logged in.

#1 2017-03-16 20:20:43

altermetax
Member
Registered: 2016-03-19
Posts: 73

[Solved] Can't use primusrun since libglvnd is used

I have just upgraded my Arch system to the latest version, and the nvidia drivers were updated. There is no more nvidia-libgl or mesa-libgl or anything, there is just libglvnd (vendor-neutral dispatch libgl). Xorg runs fine with integrated card, but when I try running anything with primusrun (in order to use the nvidia card to run the application), I get an error saying that the shared object file of nvidia libgl can't be found. I have already tried updating bumblebee and primus, without success.
Has anyone had the same problem?

Last edited by altermetax (2017-03-18 12:09:52)

Offline

#2 2017-03-16 20:36:04

progandy
Member
Registered: 2012-05-17
Posts: 5,190

Re: [Solved] Can't use primusrun since libglvnd is used

There is a github issue. You can try to do the variable export before running primus.
https://github.com/amonakov/primus/pull/195


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#3 2017-03-16 21:02:57

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

Re: [Solved] Can't use primusrun since libglvnd is used

@progandy has this not already been address by https://git.archlinux.org/svntogit/comm … 73debdf07d?

Offline

#4 2017-03-16 21:37:16

progandy
Member
Registered: 2012-05-17
Posts: 5,190

Re: [Solved] Can't use primusrun since libglvnd is used

Oh, right. I did not see that patch line, just compared the commits. As of now, this patch is still in [testing] and has not been moved to [community] yet. It should have moved to community last week. (2017-03-11)

Just to be sure, you have the most recent nvidia-utils package that includes all nvidia libgl libraries?

Last edited by progandy (2017-03-16 21:55:35)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#5 2017-03-17 12:16:28

altermetax
Member
Registered: 2016-03-19
Posts: 73

Re: [Solved] Can't use primusrun since libglvnd is used

@progandy I do.
Here's the actual error:

$ primusrun glxgears
primus: fatal: failed to load any of the libraries: /usr/lib/nvidia/libGL.so.1:/usr/lib32/nvidia/libGL.so.1
/usr/lib/nvidia/libGL.so.1: cannot open shared object file: No such file or directory
/usr/lib32/nvidia/libGL.so.1: cannot open shared object file: No such file or directory

Actually, just using optirun works.

Last edited by altermetax (2017-03-17 12:23:10)

Offline

#6 2017-03-17 16:37:03

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,657

Re: [Solved] Can't use primusrun since libglvnd is used

Primusrun works here, are you absolutely certain you are on the latest version (primus 20151110-7)?

Last edited by V1del (2017-03-17 16:39:25)

Offline

#7 2017-03-17 20:50:25

altermetax
Member
Registered: 2016-03-19
Posts: 73

Re: [Solved] Can't use primusrun since libglvnd is used

@V1del I confirm I'm running the latest version.

community/primus 20151110-7 [installato]
    Faster OpenGL offloading for Bumblebee
multilib/lib32-primus 20151110-3 [installato]
    Faster OpenGL offloading for Bumblebee (32-bit)

Maybe I have to change some configuration?

Last edited by altermetax (2017-03-17 20:51:24)

Offline

#8 2017-03-17 23:25:36

SteveK
Member
Registered: 2010-06-11
Posts: 80

Re: [Solved] Can't use primusrun since libglvnd is used

Have a look at this post in the dedicated libglvnd thread: https://bbs.archlinux.org/viewtopic.php … 1#p1696971

You may need to adjust the commands for your installed packages, although like neobim posted, I'm unsure which particular packages are absolutely necessary.

Anyway, it worked for me too.

Offline

#9 2017-03-18 12:09:34

altermetax
Member
Registered: 2016-03-19
Posts: 73

Re: [Solved] Can't use primusrun since libglvnd is used

@SteveK That solved it, thank you very much. I just used the actual commands listed at the link without thinking about which particular packages to remove and reinstall. I would actually like why that worked, but it's not very important.

Offline

Board footer

Powered by FluxBB