Waargh! what is this...

General discussion about the development of the open source Blender

Moderators: jesterKing, stiv

Post Reply
Mats78
Posts: 100
Joined: Thu Oct 17, 2002 5:06 pm
Location: Vantaa, Finland

Waargh! what is this...

Post by Mats78 »

Mandrake 9, building blender:

gcc -g -O2 -funsigned-char -o .libs/blender -L/usr/lib/python2.2/config -L/usr/
X11R6/lib source/.libs/libblender_source.so -lm -lm -lm -lm -lm -lm -lm -lm -lm
-lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm
intern/.libs/libblender_intern.so -lGL -lm intern/python/frozen/libfrozen.a -lpy
thon2.2 -lXxf86dga /usr/X11R6/lib/libGL.so -lSM -lICE -lXmu -lXt -lXi -lX11 -lXe
xt -lutil -lm /usr/lib/libjpeg.so -lpng -lcrypto -lssl -lpthread -ldl -lstdc++ -
lz -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/X11R6/lib
source/.libs/libblender_source.so: undefined reference to `gluUnProject'
source/.libs/libblender_source.so: undefined reference to `gluScaleImage'
source/.libs/libblender_source.so: undefined reference to `gluNewQuadric'
source/.libs/libblender_source.so: undefined reference to `gluQuadricDrawStyle'
source/.libs/libblender_source.so: undefined reference to `gluBuild2DMipmaps'
source/.libs/libblender_source.so: undefined reference to `gluCylinder'
source/.libs/libblender_source.so: undefined reference to `gluDeleteQuadric'
source/.libs/libblender_source.so: undefined reference to `gluPartialDisk'
source/.libs/libblender_source.so: undefined reference to `gluSphere'
source/.libs/libblender_source.so: undefined reference to `gluDisk'
collect2: ld returned 1 exit status
make[2]: *** [blender] Error 1
make[2]: Leaving directory `/home/matsi/blenderCVS/install'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/matsi/blenderCVS/install'
make: *** [all] Error 2

I'm cracking up :shock:

thanks for any help

Jellybean
Posts: 20
Joined: Sun Nov 17, 2002 10:43 am

Post by Jellybean »

Does not appear it is including the glu library. It needs a -lGLU somewhere in there. Maybe add /usr/X11R6/lib/libGLU.so also to be consistant with what's already there. :P You may want to add a few -lm also to keep the ratio correct. (I'm joking on that last one, if you couldn't tell.)

A quick way to get past that point is to redo that line by hand. Try this:

cd /home/matsi/blenderCVS/install

gcc -g -O2 -funsigned-char -o .libs/blender \
-L/usr/lib/python2.2/config \
-L/usr/X11R6/libsource/.libs/libblender_source.so \
-lm intern/.libs/libblender_intern.so -lGL -lGLU \
intern/python/frozen/libfrozen.a -lpython2.2 -lXxf86dga \
/usr/X11R6/lib/libGL.so /usr/X11R6/lib/libGLU.so \
-lSM -lICE -lXmu -lXt -lXi -lX11 -lXext -lutil -lm \
/usr/lib/libjpeg.so -lpng -lcrypto -lssl -lpthread -ldl \
-lstdc++ -lz -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath \
-Wl,/usr/X11R6/lib \


And then rerun make like you had before (from ~/blenderCVS?) so it can do whatever it needs/wants to after that. I havn't built Blender from source yet, but I just grabed the latest CVS snapshot to give it a try. Hope that helps.

Mats78
Posts: 100
Joined: Thu Oct 17, 2002 5:06 pm
Location: Vantaa, Finland

Post by Mats78 »

Thanks for your quick response =)

But I get this after trying your way:

/usr/bin/ld: cannot find -lGLU
collect2: ld returned 1 exit status

...and huh... ? ... should I have Mesa installed or not? well it didn't even work with mesa installed so I guess not ;) I had a look at my packages and these I found (searching for GLU): libMesaGLU1-4.0.3-6mdk, libMesaGLU1-devel-4.0.3-6mdk, libMesaglut3-4.0.3-6mdk, libMesaglut3-devel-4.0.3-6mdk

Mesa-4.0.3-6mdk is NOT installed as I've got the feeling it shouldn't be if you want to use Nvidia drivers which I have installed =) I don't have very deep knowledge in Linux which might explain alot.

regards,
Mats

PS. I didn't get your joke so nice explaining :lol: (ok now I really feel stupid ;))

Michel
Posts: 180
Joined: Wed Oct 16, 2002 7:27 pm
Location: Somewhere below the rivers in Holland (but not Limburg)

Post by Michel »

Mats78 wrote:Thanks for your quick response =)

But I get this after trying your way:

/usr/bin/ld: cannot find -lGLU
collect2: ld returned 1 exit status
Hi,

as far as I see, you're using the auto* build environment to compile Blender. During the configure process, checks are made to see if you have required libraries installed. I'm betting that the check for availability of GLU at your system resulted in false.
Here are 2 things you should do:
1-install GLU :)
2-report a bug (over here http://projects.blender.org/tracker/?at ... unc=browse). Blender should not even build when the required libraries are not installed. :twisted:
...and huh... ? ... should I have Mesa installed or not? well it didn't even work with mesa installed so I guess not ;) I had a look at my packages and these I found (searching for GLU): libMesaGLU1-4.0.3-6mdk, libMesaGLU1-devel-4.0.3-6mdk, libMesaglut3-4.0.3-6mdk, libMesaglut3-devel-4.0.3-6mdk

Mesa-4.0.3-6mdk is NOT installed as I've got the feeling it shouldn't be if you want to use Nvidia drivers which I have installed =) I don't have very deep knowledge in Linux which might explain alot.

regards,
Mats

PS. I didn't get your joke so nice explaining :lol: (ok now I really feel stupid ;))
You need to install MesaGLU to be able to build Blender.

Hope this helps.

With regards,
Michel

Mats78
Posts: 100
Joined: Thu Oct 17, 2002 5:06 pm
Location: Vantaa, Finland

Post by Mats78 »

Great... my bad =) you're right. It built well now - I didn't think enough! I tried make after installing glu but of course I should've created the configure scripts first. I had configured it without glu so... thanks for the tip.

Blender seems very sluggish and slow though... are there options I have to set when building? Splitting windows in particular doesn't want to work at all =) but I'm quite happy so far... alot easier to build on linux than on windows! even though on windows the slowing down problem isn't there.

Mats

Post Reply