Compiling RTcontrib on linux

Hi Greg,

Following the instructions below RTcontrib compiled flawlessly, thanks!

Feeling such a Dude compiling Radiance now :wink:
Sheer satisfaction reading "SOFTWARE= RADIANCE 3.7a lastmod Tue May 31
00:59:22 CEST 2005 by root on LINUX" in the pic headers!

Also I managed to compile Radzilla -charmed by the photon's & the falsecolor
material!-

I have to admit I'm still thinking in 3.3 terms of Radiance.
I haven't been able to track differences in the man pages, or other
documents. What would be a good way of updating myself in terms of Radiance
-besides browsing through the past 3 years of this & the development mailing
list-?

A small hiccup while compiling 3.6.1 though:

-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -o pcwarp pcwarp.o warp3d.o
-lrt -lm
make: Target `install' not remade because of errors.

-> see the file trace on the end of this mail, could this be due to a lack
of a tiff lib? I'm running the Ubuntu linux distribution.

Cheers,

Jelle.

---------RTcontrib 'patch'---------

The fault is mine -- apparently, OS X is more generous with it's #include's
than Linux. Add the following right after the line:

#include <ctype.h>

at the head of rtcontrib.c:

#include <signal.h>

Hopefully, that should fix it.

---------error compiling 3.6.1 on linux (ubuntu)---------

gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o pfilt.o pfilt.c
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o pf2.o pf2.c
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o pf3.o pf3.c
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -o pfilt pfilt.o pf2.o pf3.o
-lrt -lm
pfilt.o(.text+0x57f): In function `main':
: warning: the use of `mktemp' is dangerous, better use `mkstemp'
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o ttyimage.o ttyimage.c
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -o ttyimage ttyimage.o -lrt
-lm
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o psign.o psign.c
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -o psign psign.o -lrt -lm
make: *** No rule to make target `tiff/config.local', needed by
`../lib/libtiff.a'.
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o pvalue.o pvalue.c
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -o pvalue pvalue.o -lrt -lm
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o pcompos.o pcompos.c
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -o pcompos pcompos.o -lrt -lm
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o protate.o protate.c
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -o protate protate.o -lrt -lm
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o ra_hexbit.o
ra_hexbit.c
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -o ra_hexbit ra_hexbit.o -lrt
-lm
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o ra_bmp.o ra_bmp.c
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -o ra_bmp ra_bmp.o -lrt -lm
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o ra_t8.o ra_t8.c
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o clrtab.o clrtab.c
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o neuclrtab.o
neuclrtab.c
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -o ra_t8 ra_t8.o clrtab.o
neuclrtab.o -lrt -lm
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o ra_t16.o ra_t16.c
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -o ra_t16 ra_t16.o -lrt -lm
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o pcomb.o pcomb.c
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -o pcomb pcomb.o -lrt -lm
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o pinterp.o pinterp.c
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -o pinterp pinterp.o -lrt -lm
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o pflip.o pflip.c
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -o pflip pflip.o -lrt -lm
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o ra_ppm.o ra_ppm.c
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -o ra_ppm ra_ppm.o -lrt -lm
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o x11image.o x11image.c
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o x11raster.o
x11raster.c
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -o ximage x11image.o
x11raster.o \
clrtab.o -lrt -lX11 -lm
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o xshowtrace.o
xshowtrace.c
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o x11findwind.o
x11findwind.c
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -o xshowtrace xshowtrace.o \
x11findwind.o -lrt -lX11 -lm
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o ra_rgbe.o ra_rgbe.c
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -o ra_rgbe ra_rgbe.o -lrt -lm
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o ra_pict.o ra_pict.c
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -o ra_pict ra_pict.o -lrt -lm
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o ra_ps.o ra_ps.c
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -o ra_ps ra_ps.o -lrt -lm
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o pextrem.o pextrem.c
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -o pextrem pextrem.o -lrt -lm
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o ra_gif.o ra_gif.c
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -o ra_gif ra_gif.o clrtab.o
neuclrtab.o -lrt -lm
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o ra_xyze.o ra_xyze.c
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -o ra_xyze ra_xyze.o -lrt -lm
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o macbethcal.o
macbethcal.c
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o pmapgen.o pmapgen.c
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o mx3.o mx3.c
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o warp3d.o warp3d.c
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -o macbethcal macbethcal.o
pmapgen.o mx3.o warp3d.o \
-lrt -lm
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o pcond.o pcond.c
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o pcond2.o pcond2.c
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o pcond3.o pcond3.c
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o pcond4.o pcond4.c
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -o pcond pcond.o pcond2.o
pcond3.o pcond4.o warp3d.o \
-lrt -lm
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -c -o pcwarp.o pcwarp.c
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64
-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -o pcwarp pcwarp.o warp3d.o
-lrt -lm
make: Target `install' not remade because of errors.

Hi Jelle,

From: "Jelle Feringa / EZCT Architecture & Design Research" <[email protected]>
Date: June 1, 2005 2:14:25 AM PDT

I have to admit I'm still thinking in 3.3 terms of Radiance.
I haven't been able to track differences in the man pages, or other
documents. What would be a good way of updating myself in terms of Radiance
-besides browsing through the past 3 years of this & the development mailing
list-?

You can pick up the main points of what's changed by browsing the ReleaseNotes file in ray/doc/notes. This is a simple, chronological listing of changes since time memorial. I also recommend downloading my presentations from past Radiance workshops on code changes. Each year for the past few years I've given a summary of "what's new" at the workshop. These are available from www.radiance-online.org under "Intl. Radiance workshops" on the main (left) frame.

A small hiccup while compiling 3.6.1 though:

-L/usr/X11R6/lib -I/usr/include/X11 -DNOSTEREO -o pcwarp pcwarp.o warp3d.o
-lrt -lm
make: Target `install' not remade because of errors.

-> see the file trace on the end of this mail, could this be due to a lack
of a tiff lib? I'm running the Ubuntu linux distribution.

Looks like you might have forgotten to download the required overlay. Is there even a ray/src/px/tiff directory on your system? The file you want is called "rad3R6P1supp.tar.gz" and is available from the downloads page. Install it _right_over_ your previously downloaded HEAD directory. (Very important.) Then try to recompile.

In future, just send me those error listings, to save load on the list. Thanks.

-Greg