On 02/12/07 08:12:23, Dan Nicholson wrote:
> On Dec 2, 2007 3:31 AM,  <[EMAIL PROTECTED]> wrote:
> >
> > Compilation of blender stops with:
> >
> >
> > cd 
> > /usr/src/blender/blender-2.45/obj/linux-glibc2.3.6-i386/gameengine/blphys/blbullet/;
> >  ar ruv 
> > /usr/src/blender/blender-2.45/obj/linux-glibc2.3.6-i386/gameengine/blphys/blbullet/libblbullet.a
> >  CcdPhysicsController.o CcdPhysicsEnvironment.o
> > ar: creating 
> > /usr/src/blender/blender-2.45/obj/linux-glibc2.3.6-i386/gameengine/blphys/blbullet/libblbullet.a
> > a - CcdPhysicsController.o
> > a - CcdPhysicsEnvironment.o
> > make[1]: *** No rule to make target `/usr/local/lib/lib-pthread.a', needed 
> > by `/usr/src/blender/blender-2.45/obj/linux-glibc2.3.6-i386/bin/blender'. 
> > Stop.
> > make: *** [all] Error 1
> >
> > I  don't have a /usr/local/lib/lib-pthread.a but a /usr/lib/libpthread.a 
> > which
> > ought to be fine but I can't  figure  out  how  to  change  the  make  
> > process
> > accordingly.  I  also  wonder  why  it  looks  for  static libs although it 
> > is
> > supposed to make a dynamic blender binary.
> 
> Otherwise, start grepping for 'lib-pthread.a'. My guess is that
> something tried to find 'lib-pthread' on your system, it obviously
> failed, and /usr/local was used as the fallback. I have no idea where
> 'lib-pthread' would come from, but maybe the grep will reveal some
> info.

I found the problem. In the file source/nan_definitions.mk there is OS 
dependent openexr configuration. For linux the line
"NAN_OPENEXR_LIBS?=$(addprefix ${NAN_OPENEXR}/lib/lib,$(addsuffix .a,$(shell 
pkg-config --libs OpenEXR |
sed -s "s/-l//g" )))"
with
"pkg-config --libs OpenEXR"
which yields on my system
"-pthread -L/usr/local/lib -lIlmImf -lz -lImath -lHalf -lIex -lIlmThread"
does not work for getting the right static libs because of
"-pthread -L/usr/local/lib".
I don't konw if my openexr installation is wrong or if this line is bad for 
other linux systems as well. Changing to
"pkg-config --libs-only-l OpenEXR"
does the trick though all static libs still have to be in one directory. It 
might be better to specify them by hand.


I hope this might help others.
Lynx
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to