Compiling PBRT 1.03 under Ubuntu Gutsy

181 views
Skip to first unread message

mimhotep

unread,
Apr 3, 2008, 9:40:18 AM4/3/08
to pbrt
Hi everybody.
I'm trying to compile PBRT under Ubuntu 7.10, but with no result.
I followed this path:
- Installed build-essential and zlib-devel through Synaptic;
- manually installed IlmBase-1.0.1 and OpenEXR-1.40 using
./configure
make
make install
so OpenEXR is in /usr/local/include/OpenEXR and libs in /usr/local/
lib (I suppose, so no modifications are necessary to the makefile).
- launched make in pbrt dir.

Unfortunately I got this error message

****************************************************
Compiling core/api.cpp
Compiling core/camera.cpp
Compiling core/color.cpp
Compiling core/dynload.cpp
Checking for EXR installation...exrcheck.cpp:1:26: error:
ImfInputFile.h: No such file or directory
exrcheck.cpp:2:27: error: ImfOutputFile.h: No such file or directory
exrcheck.cpp:3:28: error: ImfChannelList.h: No such file or directory
exrcheck.cpp:4:28: error: ImfFrameBuffer.h: No such file or directory
exrcheck.cpp:5:18: error: half.h: No such file or directory
exrcheck.cpp:7: error: 'Imf' is not a namespace-name
exrcheck.cpp:7: error: expected namespace-name before ';' token
exrcheck.cpp:8: error: 'Imath' is not a namespace-name
exrcheck.cpp:8: error: expected namespace-name before ';' token
exrcheck.cpp: In function 'void ReadImage(const char*, int*, int*)':
exrcheck.cpp:13: error: 'InputFile' was not declared in this scope
exrcheck.cpp:13: error: expected `;' before 'file'
exrcheck.cpp:14: error: 'Box2i' was not declared in this scope
exrcheck.cpp:14: error: expected `;' before 'dw'
exrcheck.cpp:15: error: 'dw' was not declared in this scope
exrcheck.cpp:18: error: 'half' was not declared in this scope
exrcheck.cpp:18: error: 'rgb' was not declared in this scope
exrcheck.cpp:18: error: expected type-specifier before 'half'
exrcheck.cpp:18: error: expected `;' before 'half'
exrcheck.cpp:20: error: 'FrameBuffer' was not declared in this scope
exrcheck.cpp:20: error: expected `;' before 'frameBuffer'
exrcheck.cpp:21: error: 'frameBuffer' was not declared in this scope
exrcheck.cpp:21: error: 'HALF' was not declared in this scope
exrcheck.cpp:22: error: 'Slice' was not declared in this scope
exrcheck.cpp:28: error: 'file' was not declared in this scope

An installation of OpenEXR was not found on your system.
*********************************************************

Am i doing something wrong?

Thanks in advance,
Mimmo Briganti

Mimmo Briganti

unread,
Apr 3, 2008, 10:43:52 AM4/3/08
to pbrt
On Apr 3, 3:40 pm, mimhotep <mimmo.briga...@gmail.com> wrote:
> Unfortunately I got this error message
>
> *********************************************************
> An installation of OpenEXR was not found on your system.
> *********************************************************
>

Hi again.
I solved the problem myself.
Despite the error message, it wasn't anything about OpenEXR, but the
lack of some dependenciens on my machine.

I just installed "flex" and "bison" packages and everything worked.

Now I'm not able to run pbrt executable (bash: pbrt: command not
found), but this is another story.

Mimmo Briganti

Matt Pharr

unread,
Apr 18, 2008, 8:49:44 AM4/18/08
to pb...@googlegroups.com
Have you added the directory with the pbrt executable to your PATH
environment variable?

Thanks,
-matt

Mimmo Briganti

unread,
Apr 19, 2008, 5:10:07 AM4/19/08
to pbrt
Thanks Matt.
Just forgot to post here about this, but I solved it on the very same
day by adding these lines to .bashrc file in my home dir (obviously,
paths are local to my linux installation).

export PBRT_SEARCHPATH=~/Documents/pbrt-1.03/bin
PATH=$PATH:~/Documents/pbrt-1.03/bin
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export PATH LD_LIBRARY_PATH

It might be useful for other users, so I should have posted before :)

Cheers,
Mimmo
Reply all
Reply to author
Forward
0 new messages