[SOLVED] Can't find/install 32-bit version of libGLU.so

Kernels & Hardware, configuring network, installing services

[SOLVED] Can't find/install 32-bit version of libGLU.so

Postby ticketman » 2018-07-28 15:56

I have 64bit Debian Testing (Buster) system.
I am compiling and linking a 32bit openGL application.

The compile is fine, but when linking I get:

/usr/bin/ld: skipping incompatible //usr/lib/x86_64-linux-gnu/libGLU.so when searching for -lGLU
/usr/bin/ld: skipping incompatible //usr/lib/x86_64-linux-gnu/libGLU.a when searching for -lGLU
/usr/bin/ld: cannot find -lGLU

The linker options are:
-m32 -lpthread -lXrandr -lrt -lGL -lGLU

Now libGL.so (and also libGLX.so) is found in /usr/lib/i386-linux-gnu, but libGLU.so is not there.

I have libGLU.so in /usr/lib/x86_64-linux-gnu, but that is the 64 bit version.

I have libglu1-mesa and libglu1-mesa-dev installed.

For info,
/usr/lib/i386-linux-gnu/libGL.so points to: /etc/alternatives/glx--libGL.so-i386-linux-gnu which points to: /usr/lib/mesa-diverted/i386-linux-gnu/libGL.so
/usr/lib/x86_64-linux-gnu/libGL.so points to: /etc/alternatives/glx--libGL.so-x86_64-linux-gnu which points to /usr/lib/x86_64-linux-gnu/nvidia/libGL.so.1

How can I get libGLU.so (32 bit) to appear in /usr/lib/i386-linux-gnu so my linker will work?

I am using a legacy nVidia driver.
Last edited by ticketman on 2018-07-29 09:59, edited 1 time in total.
ticketman
 
Posts: 75
Joined: 2012-06-30 11:06

Re: Can't find/install 32-bit version of libGLU.so

Postby stevepusser » 2018-07-28 18:05

https://packages.debian.org/search?sear ... e&arch=any

So I would try installing the ":i386" version of the package.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Kdenlive 18.08.1, Pale Moon 28.1.0, wine-staging 3.17, qBittorrent 4.1.3, Liquorix kernel 4.18-13, Audacity 2.3.0
User avatar
stevepusser
 
Posts: 9991
Joined: 2009-10-06 05:53

Re: Can't find/install 32-bit version of libGLU.so [SOLVED]

Postby ticketman » 2018-07-29 09:58

Excellent steve, that fixed it:

Code: Select all
sudo apt-get install libglu1-mesa-dev:i386
[sudo] password for xxxxx:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libglu1-mesa:i386
The following NEW packages will be installed:
  libglu1-mesa:i386 libglu1-mesa-dev:i386
0 upgraded, 2 newly installed, 0 to remove and 34 not upgraded.
Need to get 382 kB of archives.
After this operation, 1,319 kB of additional disk space will be used.
Do you want to continue? [Y/n] y


I notice that 32-bit libGL.so appears to be 'mesa' implementation, while 64-bit libGL.so appears to be 'nvidia' implementation.
Is there a way to make them both 'nvidia' implemented?
My concern is the mesa version will be much slower.
ticketman
 
Posts: 75
Joined: 2012-06-30 11:06

Re: [SOLVED] Can't find/install 32-bit version of libGLU.so

Postby ticketman » 2018-08-11 15:35

"How can I get libGLU.so (32 bit) to appear in /usr/lib/i386-linux-gnu so my linker will work?"

The answer was :

Code: Select all
sudo apt-get install libgl1-nvidia-legacy-340xx-glx:i386


(I am using a legacy card)

Then

Code: Select all
The following additional packages will be installed:
  libnvidia-legacy-340xx-glcore:i386
The following NEW packages will be installed:
  libgl1-nvidia-legacy-340xx-glx:i386 libnvidia-legacy-340xx-glcore:i386
...
Setting up libnvidia-legacy-340xx-glcore:i386 (340.107-2) ...
Processing triggers for nvidia-legacy-340xx-alternative (340.107-2) ...
update-alternatives: updating alternative /usr/lib/nvidia/legacy-340xx because link group nvidia has changed slave links
...
Processing triggers for glx-alternative-nvidia (0.8.7) ...
update-alternatives: warning: forcing reinstallation of alternative /usr/lib/nvidia because link group glx is broken


Despite the warnings, it worked.
ticketman
 
Posts: 75
Joined: 2012-06-30 11:06


Return to System configuration

Who is online

Users browsing this forum: No registered users and 4 guests

fashionable