Problem with run 32-bit program with optirun second Nvidia

Hi. I’m new in suse. So i have laptop with two grafic cards:

sudo lspci
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor DRAM Controller (rev 06)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller (rev 06)
**00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)**
00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06)
00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI (rev 05)
00:16.0 Communication controller: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #1 (rev d5)
00:1c.2 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #3 (rev d5)
00:1c.3 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #4 (rev d5)
00:1d.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation HM86 Express LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] (rev 05)
00:1f.3 SMBus: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller (rev 05)
**01:00.0 3D controller: NVIDIA Corporation GK107M [GeForce GT 750M] (rev ff)**
07:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5209 PCI Express Card Reader (rev 01)
0d:00.0 Network controller: Qualcomm Atheros AR9462 Wireless Network Adapter (rev 01)
0e:00.0 Ethernet controller: Broadcom Corporation NetLink BCM57780 Gigabit Ethernet PCIe (rev 01)

I install all drivers using this instruction.

I install zypper in Mesa-libGL1-32bit libX11-6-32bit primus-32bit like noted in this instruction too

If you plan to use 32bit apps (like steam), install required libraries:

zypper in Mesa-libGL1-32bit libX11-6-32bit primus-32bit

glxgears and optirun glxgears works grate!

glxgears
303 frames in 5.0 seconds = 60.595 FPS

optirun glxgears
12047 frames in 5.0 seconds = 2409.276 FPS

But I can’t to run 32-bit programs or games.


sudo optirun ./stellaris
./stellaris: error while loading shared libraries: libGLU.so.1: wrong ELF class: ELFCLASS64

What can I do with it?

Be sure that the you have libs that the game requires are also the 32bit versions. If you start program from command line you should see what is missing

autumn@linux-zvh6:/run/media/autumn/D/Загрузки/stellaris_v1.6.1> sudo optirun ./stellaris
root's password:
./stellaris: error while loading shared libraries: libGLU.so.1: wrong ELF class: ELFCLASS64
autumn@linux-zvh6:/run/media/autumn/D/Загрузки/stellaris_v1.6.1>  

http://i64.tinypic.com/6xrs5d.png

So do you have he 32bit version of libGLU.so.1

How can i check it or install?

There’s a package “libGLU1-32bit”. If that is not installed, then try adding it.

install and reboot. no changes:

autumn@linux-lzkk:/run/media/autumn/D/Загрузки/stellaris_v1.6.1> sudo optirun ./stellaris
root's password:
./stellaris: error while loading shared libraries: libuuid.so.1: wrong ELF class: ELFCLASS64

and if I try to run GPU test. I have an err too:


autumn@linux-lzkk:~> optirun glxgears     
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  154 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  22
  Current serial number in output stream:  23

opensuse Leap 42.2; KDE Plasma 5;

Am Sun, 21 May 2017 10:16:01 GMT
schrieb n osennij <n_osennij@no-mx.forums.microfocus.com>:

> nrickert;2823657 Wrote:
> > There’s a package “libGLU1-32bit”. If that is not installed, then try
> > adding it.
>
> install and reboot. no changes:
>
>
> Code:
> --------------------
> autumn@linux-lzkk:/run/media/autumn/D/Загрузки/stellaris_v1.6.1> sudo
> optirun ./stellaris root’s password:
> ./stellaris: error while loading shared libraries: libuuid.so.1: wrong ELF
> class: ELFCLASS64
> --------------------
>

And now have a second look at the error message and compare it to the one
before.

There is a a change, but the reason is the same as before, a missing 32Bit lib
(but another one now).

AK


Never attribute to malice that which can be adequately explained by stupidity.
(R.J. Hanlon)