XCode pbrt 1.04 troubles

4 views
Skip to first unread message

Pascal

unread,
Oct 20, 2009, 4:58:34 PM10/20/09
to pbrt
I succeeded in compiling pbrt 1.04 in XCode 3.2 but ran into problems
when running it. I also used Mark Colbert's XCode project from
http://www.cs.ucf.edu/~colbert/mayapbrt/goodies.html. These are the
errors I get when running it:

Error: Can't open plug-in "/Users/.../Desktop/last_test/pbrt-1.04/
build/Development/distant.so"
Line 15, file /Users/.../Desktop/last_test/pbrt-1.04/scenes/
simple.pbrt
Fatal Error: Couldn't get symbol "CreateLight" in Plugin /Users/.../
Desktop/last_test/pbrt-1.04/build/Development/distant.so.
Line 15, file /Users/.../Desktop/last_test/pbrt-1.04/scenes/
simple.pbrt


PBRT_SEARCHPATH is set to /Users/.../Desktop/last_test/pbrt-1.04/build/
Development/


Any help would be greatly appreciated.

Kevin Egan

unread,
Oct 20, 2009, 5:34:53 PM10/20/09
to pb...@googlegroups.com
The '...' in the following path is to shorten the path name:

/Users/.../Desktop/last_test/pbrt-1.04/build/Development/distant.so

That is not actually a valid path. You need to set PBRT_SEARCHPATH to
a directory that is valid and does not contain the '...' portion. If
you can run 'pwd' inside of your Desktop directory that would tell you
what the full path is.

I'm not that familiar with xcode, but it may be that the ... part is
only replacing your login name, in which case just substitute your
login name below when you set PBRT_SEARCHPATH:

/Users/MYLOGIN/Desktop/last_test/pbrt-1.04/build/Development/

Kevin

Pascal

unread,
Oct 20, 2009, 6:10:35 PM10/20/09
to pbrt
Sorry for the misunderstanding.
I deliberately substituted the ... for my login name in the post, as I
didn't want to expose my login name to everyone.

Matt Pharr

unread,
Oct 21, 2009, 5:47:07 PM10/21/09
to pb...@googlegroups.com
Is there a file named distant.so anywhere inside the pbrt-1.04/
hierarchy after you build it? Is it in the Development/ directory?
If it's in another directory, does it work if you set PBRT_SEARCHPATH
to point at that directory?

Thanks,
-matt

Pascal

unread,
Oct 22, 2009, 8:49:03 AM10/22/09
to pbrt
Yes there is a file named distant.so after building it.
It's in the pbrt-1.04/build/Development directory.

Pascal
Reply all
Reply to author
Forward
0 new messages