libGL.SO problem compiling blender with cmake

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

Post Reply
npm1
Posts: 0
Joined: Wed Aug 24, 2011 11:54 pm
Location: london

libGL.SO problem compiling blender with cmake

Post by npm1 » Sat Dec 24, 2011 12:26 am

Scanning dependencies of target blender
[100%] make[3]: *** No rule to make target `/usr/lib/x86_64-linux-gnu/libGL.so', needed by `bin/blender'. Stop.
make[3]: *** Waiting for unfinished jobs....
Building C object source/creator/CMakeFiles/blender.dir/buildinfo.c.o
make[2]: *** [source/creator/CMakeFiles/blender.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [all] Error 2

AMD HD Radeon 6950 2GB,AMD phenom x6 1055t,
latest proprietory driver from amd 11.12....
how i resolve this issue, i followed compilation from the wiki and automatic cmakei .e.
My pc rig windows7 thinking of dual boot, 500gb, 500gb, 650gb, 2tb hdds, 16gb ram, 6950 2gb, amd phenom x6.......looking forward to amd hd 7000 gpus .... and cycles opencl
SLG should help(Opencl AMD) cycles and cycles should help(Optimization) SLG

stiv
Posts: 0
Joined: Tue Aug 05, 2003 7:58 am
Location: 45N 86W

Post by stiv » Sat Dec 24, 2011 1:26 am

The libGL.so is OpenGL. Either you do not have it installed, or the path to the library is set incorrectly and does not match your system.

ldo
Posts: 0
Joined: Sun Nov 07, 2010 11:30 pm
Location: Hamilton, New Zealand

Post by ldo » Sat Dec 24, 2011 11:31 am

On my Debian system:

Code: Select all

ldo@theon:~> dpkg-query -S /usr/lib/x86_64-linux-gnu/libGL.so
libgl1-mesa-dev: /usr/lib/x86_64-linux-gnu/libGL.so
So assuming you’re on a Debian derivative (e.g. Ubuntu), you’ll need to install the package “libgl1-mesa-dev”.

npm1
Posts: 0
Joined: Wed Aug 24, 2011 11:54 pm
Location: london

Post by npm1 » Sat Dec 24, 2011 1:06 pm

ldo wrote:On my Debian system:

Code: Select all

ldo@theon:~> dpkg-query -S /usr/lib/x86_64-linux-gnu/libGL.so
libgl1-mesa-dev: /usr/lib/x86_64-linux-gnu/libGL.so
So assuming you’re on a Debian derivative (e.g. Ubuntu), you’ll need to install the package “libgl1-mesa-dev”.
i appreciate the very quick response. thank u........
but doesnt catalyst 11.12, installs the needed file
My pc rig windows7 thinking of dual boot, 500gb, 500gb, 650gb, 2tb hdds, 16gb ram, 6950 2gb, amd phenom x6.......looking forward to amd hd 7000 gpus .... and cycles opencl
SLG should help(Opencl AMD) cycles and cycles should help(Optimization) SLG

npm1
Posts: 0
Joined: Wed Aug 24, 2011 11:54 pm
Location: london

Post by npm1 » Sat Dec 24, 2011 1:38 pm

npm1 wrote:
ldo wrote:On my Debian system:

Code: Select all

ldo@theon:~> dpkg-query -S /usr/lib/x86_64-linux-gnu/libGL.so
libgl1-mesa-dev: /usr/lib/x86_64-linux-gnu/libGL.so
So assuming you’re on a Debian derivative (e.g. Ubuntu), you’ll need to install the package “libgl1-mesa-dev”.
i appreciate the very quick response. thank u........
but doesnt catalyst 11.12, installs the needed file
according to synaptic that dependancy/package is already installed.........
found this
[/url]http://forums.linuxmint.com/viewtopic.p ... 383689[url] following the instructions my terminal produces this.......

Code: Select all

sudo ldconfig -v|grep GL
/sbin/ldconfig.real: Can't stat /lib32: No such file or directory
/sbin/ldconfig.real: Can't stat /lib/i686-linux-gnu: No such file or directory
/sbin/ldconfig.real: Can't stat /usr/lib/i686-linux-gnu: No such file or directory
/sbin/ldconfig.real: Path `/lib/x86_64-linux-gnu' given more than once
/sbin/ldconfig.real: Path `/usr/lib/x86_64-linux-gnu' given more than once
	libGL.so.1 -> libGL.so.1.2
/sbin/ldconfig.real: Cannot stat /usr/lib/x86_64-linux-gnu/libjackserver.so: No such file or directory
/sbin/ldconfig.real: Cannot stat /usr/lib/x86_64-linux-gnu/libGL.so: No such file or directory
	libGLU.so.1 -> libGLU.so.1.3.071100
	libQtOpenGL.so.4 -> libQtOpenGL.so.4.7.4
/sbin/ldconfig.real: Cannot stat /usr/lib/x86_64-linux-gnu/mesa/libGL.so: No such file or directory
	libGLEWmx.so.1.5 -> libGLEWmx.so.1.5.2
	libGLEW.so.1.5 -> libGLEW.so.1.5.2
	libGL.so.1 -> libGL.so.1.2
t#my installation of ubuntu 11.10 is upgraded from a fresh install of ubuntu 11.04.......[/quote][/url]
My pc rig windows7 thinking of dual boot, 500gb, 500gb, 650gb, 2tb hdds, 16gb ram, 6950 2gb, amd phenom x6.......looking forward to amd hd 7000 gpus .... and cycles opencl
SLG should help(Opencl AMD) cycles and cycles should help(Optimization) SLG

stiv
Posts: 0
Joined: Tue Aug 05, 2003 7:58 am
Location: 45N 86W

Post by stiv » Sat Dec 24, 2011 3:29 pm

Another way to look at this is to ask:

Do you have a libGL.so file somewhere? (as a symlink pointing to the actual library.)

Is the path to libGL.so correct in your build system config file?

npm1
Posts: 0
Joined: Wed Aug 24, 2011 11:54 pm
Location: london

Post by npm1 » Sat Dec 24, 2011 3:43 pm

stiv wrote:Another way to look at this is to ask:

Do you have a libGL.so file somewhere? (as a symlink pointing to the actual library.)

Is the path to libGL.so correct in your build system config file?
thanxs again
where is the orginal libGL.so(where do you find your one)
where should it be
from there i could put a symlink in the required folder........ i.e. my build system is looking at
/usr/lib/x86_64-linux-gnu/libGL.so.....this point....
do i put a symlink in that folder....
My pc rig windows7 thinking of dual boot, 500gb, 500gb, 650gb, 2tb hdds, 16gb ram, 6950 2gb, amd phenom x6.......looking forward to amd hd 7000 gpus .... and cycles opencl
SLG should help(Opencl AMD) cycles and cycles should help(Optimization) SLG

stiv
Posts: 0
Joined: Tue Aug 05, 2003 7:58 am
Location: 45N 86W

Post by stiv » Sun Dec 25, 2011 12:21 am

from there i could put a symlink in the required folder........ i.e. my build system is looking at
Do NOT do this, for a bunch of reasons.

1) Make sure you have opengl installed. do
locate libGL.so
or more slowly
find / -name libGL.so

You should see something like (for example)
/usr/lib/libGL.so
/usr/lib/libGL.so.1
/usr/lib/libGL.so.290.10


The first two items are symlinks pointing to the next file in that list. Here, the libGL.so.290.10 is the actual library

2) Make sure you build config file matches what you found in step 1.

If you do not have OpenGL, you need to install it.

bhattigurjot
Posts: 0
Joined: Fri Oct 11, 2013 4:57 pm
Location: India

Re: libGL.SO problem compiling blender with cmake

Post by bhattigurjot » Sun Oct 27, 2013 5:31 pm

npm1 wrote:Scanning dependencies of target blender
[100%] make[3]: *** No rule to make target `/usr/lib/x86_64-linux-gnu/libGL.so', needed by `bin/blender'. Stop.
make[3]: *** Waiting for unfinished jobs....
Building C object source/creator/CMakeFiles/blender.dir/buildinfo.c.o
make[2]: *** [source/creator/CMakeFiles/blender.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [all] Error 2
Solve this using:
sudo ln -s -f -i /usr/lib/libGL.so.1.2 /usr/lib/x86_64-linux-gnu/libGL.so

Post Reply