[Pbrt-discuss] Couldn't get symbol "CreateLight"

Jonas Peter jonas at peter-mail.com
Wed Mar 4 06:52:02 EST 2009


Hi,

I found the problem. I set a link to the binary from the CD to my /usr/bin/
directory and accidentily executed this instead of the newly built one.
Everything works fine now.

Thanks for your Time

Jonas

On Wednesday March 04 2009 05:40:10 Matt Pharr wrote:

> Can you try changing the line

>

> OPT=-O2

>

> to

>

> OPT=-O2 -m64

>

> in the Makefile? Can you also do a make clean and then send the

> output of 'make -n' if the above fix doesn't work?

>

> Thanks,

> -matt

>

> On Mar 3, 2009, at 4:38 PM, Jonas Peter wrote:

> > 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