[Pbrt-discuss] Couldn't get symbol "CreateLight"
Jonas Peter
jonas at peter-mail.com
Tue Mar 3 19:38:19 EST 2009
I added -fPIC to CXXFLAGS to avoid this error
Building Integrator Plugin "directlighting"
/usr/bin/ld: objs/directlighting.o: relocation R_X86_64_32S against `vtable
for DirectLighting' can not be used when making a shared object; recompile
with -fPIC
objs/directlighting.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
Jonas
On Wednesday March 04 2009 01:34:31 Matt Pharr wrote:
> What compiler flags were used when compiling? It looks like there's
> something weird going on with some stuff being compiled for 64-bit and
> some for 32..
>
> Thanks,
> -matt
>
> On Mar 3, 2009, at 4:29 PM, Jonas Peter wrote:
> > Hi,
> >
> > I built pbrt 1.03 on debian (sid) with gcc 4.3.3.
> >
> > Trying to render the file simple.pbrt from the CD I get the
> > following error.
> >
> > Error: Can't open plug-in "/.../pbrt/src/bin/distant.so"
> > (/.../pbrt/src/bin/distant.so: wrong ELF class: ELFCLASS64)
> > Line 15, file simple.pbrt
> > Fatal Error: Couldn't get symbol "CreateLight" in
> > Plugin /.../pbrt/src/bin/distant.so.
> > Line 15, file simple.pbrt
> >
> > The searchpath is set.
> >
> > I hope you can help me.
> >
> > Kind regards
> >
> > Jonas
> > _______________________________________________
> > pbrt-discuss mailing list
> > pbrt-discuss at pbrt.org
> > http://six.pairlist.net/mailman/listinfo/pbrt-discuss
More information about the pbrt-discuss
mailing list