[Radiance-dev] Help compiling 3R9 for Linux
James Lee
list at oxdrove.co.uk
Thu May 1 06:47:15 PDT 2008
On 01/05/08, 00:10:19, Greg Ward <gregoryjward at gmail.com> wrote regarding
[Radiance-dev] Help compiling 3R9 for Linux:
> If anyone out there is willing to lend a hand, I'd like to compile
> Radiance under Linux for a 3.9 release.
> http://radsite.lbl.gov/radiance/dist/rad3R9.tar.gz
I'm using Unix not Linux but here are my results. I've compiled 3.9
for Solaris using the Sun Studio compiler. Provisional packages are
here:
http://www.blastwave.org/testing/
today's files (rev date may change):
radiance-3.9,REV=2008.05.01-SunOS5.8-i386-CSW.pkg.gz
radiance-3.9,REV=2008.05.01-SunOS5.8-sparc-CSW.pkg.gz
Since 3.8 the Rmakefiles have lost some -lm. I had to add these,
patch attached.
There are some compiler warnings, extracts attached. Most are
unimportant but if you like I will attempt to edit the source and
provide a patch.
James.
-------------- next part --------------
--- ./src/cal/Rmakefile.orig 2007-11-24 00:37:26.000000000 +0000
+++ ./src/cal/Rmakefile 2008-05-01 11:16:11.373038000 +0100
@@ -49,7 +49,7 @@
$(CC) $(CFLAGS) -o rlam lam.o
tabfunc: tabfunc.o
- $(CC) $(CFLAGS) -o tabfunc tabfunc.o -lrtrad
+ $(CC) $(CFLAGS) -o tabfunc tabfunc.o -lrtrad $(MLIB)
histo: histo.o
$(CC) $(CFLAGS) -o histo histo.o $(MLIB)
--- ./src/hd/Rmakefile.orig 2008-02-07 23:02:14.000000000 +0000
+++ ./src/hd/Rmakefile 2008-05-01 11:14:15.862585000 +0100
@@ -119,25 +119,25 @@
$(DEVDIR)/ogl.hdi: rhd_ogl0.o rhdisp.o rhdisp2.o viewbeams.o \
rhd_odraw.o rhd_geom.o holo.o
$(CC) $(CFLAGS) -o $(DEVDIR)/ogl.hdi rhd_ogl0.o rhdisp.o rhdisp2.o \
-viewbeams.o holo.o rhd_odraw.o rhd_geom.o -lrgl -lrtrad -lGLU -lGL -lX11
+viewbeams.o holo.o rhd_odraw.o rhd_geom.o -lrgl -lrtrad -lGLU -lGL -lX11 $(MLIB)
$(DEVDIR)/oglo.hdi: rhd_oglo.o rhdisp.o rhdisp2.o viewbeams.o \
rhd_odraw.o rhd_geom.o holo.o rhdobj.o
$(CC) $(CFLAGS) -o $(DEVDIR)/oglo.hdi rhd_oglo.o rhdisp.o \
rhdisp2.o viewbeams.o holo.o rhd_odraw.o rhd_geom.o rhdobj.o \
--lrgl -lrtrad -lGLU -lGL -lX11
+-lrgl -lrtrad -lGLU -lGL -lX11 $(MLIB)
$(DEVDIR)/ogls.hdi: rhd_ogls.o rhdisp.o rhdisp2.o viewbeams.o \
rhd_odraw.o rhd_geom.o holo.o
$(CC) $(CFLAGS) -o $(DEVDIR)/ogls.hdi rhd_ogls.o rhdisp.o rhdisp2.o \
viewbeams.o holo.o rhd_odraw.o rhd_geom.o \
--lrgl -lrtrad -lGLU -lGL -lX11 -lXext
+-lrgl -lrtrad -lGLU -lGL -lX11 -lXext $(MLIB)
$(DEVDIR)/oglso.hdi: rhd_oglso.o rhdisp.o rhdisp2.o viewbeams.o \
rhd_odraw.o rhd_geom.o holo.o rhdobj.o
$(CC) $(CFLAGS) -o $(DEVDIR)/oglso.hdi rhd_oglso.o rhdisp.o rhdisp2.o \
viewbeams.o holo.o rhd_odraw.o rhd_geom.o rhdobj.o \
--lrgl -lrtrad -lGLU -lGL -lX11 -lXext
+-lrgl -lrtrad -lGLU -lGL -lX11 -lXext $(MLIB)
rhd_ogl0.o: rhd_ogl.c
$(CC) $(CFLAGS) -c rhd_ogl.c
--- ./src/util/Rmakefile.orig 2008-05-01 11:15:05.372784000 +0100
+++ ./src/util/Rmakefile 2008-05-01 11:15:21.222845000 +0100
@@ -99,7 +99,7 @@
glrad: glrad.o
$(CC) $(CFLAGS) -o glrad glrad.o -lrgl -lrtrad -lGLU -lGL \
--lX11 -lXext
+-lX11 -lXext $(MLIB)
setscan.o: setscan.h
-------------- next part --------------
"rtcontrib.c", line 1221: warning: function expects to return value: myclose
"glrad.c", line 49: warning: initializer does not fit or is out of range: -1
"caldefn.c", line 709: warning: integer overflow detected: op "<<"
"caldefn.c", line 712: warning: integer overflow detected: op "<<"
"caldefn.c", line 713: warning: integer overflow detected: op "<<"
"rglinst.c", line 43: warning: initialization type mismatch
"x11plot.c", line 295: warning: argument #4 is incompatible with prototype:
prototype: pointer to const char : "/usr/openwin/include/X11/Xlib.h", line 3164
argument : pointer to unsigned char
"../common/calcomp.h", line 20: warning: macro redefined: TICK
"srcobstr.c", line 183: warning: initializer does not fit or is out of range: -1
"x11icon.h", line 5: warning: initializer does not fit or is out of range: 224
"x11icon.h", line 6: warning: initializer does not fit or is out of range: 224
"x11icon.h", line 8: warning: initializer does not fit or is out of range: 192
...
"mkillum4.c", line 236: warning: implicit function declaration: isspace
"neuclrtab.c", line 442: warning: integer overflow detected: op "<<"
"ra_pict.c", line 302: warning: argument #1 is incompatible with prototype:
prototype: pointer to unsigned char : "ra_pict.c", line 42
argument : pointer to char
"ra_pict.c", line 302: warning: argument #2 is incompatible with prototype:
prototype: pointer to unsigned char : "ra_pict.c", line 42
argument : pointer to char
"ra_pict.c", line 307: warning: argument #1 is incompatible with prototype:
prototype: pointer to unsigned char : "ra_pict.c", line 112
argument : pointer to char
"warp3d.c", line 124: warning: argument #2 is incompatible with prototype:
prototype: pointer to const char : "../common/lookup.h", line 85
argument : pointer to unsigned char
"rholo3.c", line 129: warning: argument #4 is incompatible with prototype:
prototype: pointer to function(pointer to const void, pointer to const void) returning int : "/usr/include/iso/stdlib_iso.h", line 134
argument : pointer to function(pointer to struct {short hd, int bi, int nr, int nc}, pointer to struct {short hd, int bi, int nr, int nc}) returning int
"rholo3.c", line 132: warning: argument #5 is incompatible with prototype:
prototype: pointer to function(pointer to const void, pointer to const void) returning int : "/usr/include/iso/stdlib_iso.h", line 113
argument : pointer to function(pointer to struct {short hd, int bi, int nr, int nc}, pointer to struct {short hd, int bi, int nr, int nc}) returning int
"rholo3.c", line 185: warning: argument #4 is incompatible with prototype:
prototype: pointer to function(pointer to const void, pointer to const void) returning int : "/usr/include/iso/stdlib_iso.h", line 134
argument : pointer to function(pointer to struct {short hd, int bi, int nr, int nc}, pointer to struct {short hd, int bi, int nr, int nc}) returning int
"rholo3.c", line 407: warning: argument #4 is incompatible with prototype:
prototype: pointer to function(pointer to const void, pointer to const void) returning int : "/usr/include/iso/stdlib_iso.h", line 134
argument : pointer to function(pointer to struct {short hd, int bi, int nr, int nc}, pointer to struct {short hd, int bi, int nr, int nc}) returning int
"rholo3.c", line 412: warning: argument #4 is incompatible with prototype:
prototype: pointer to function(pointer to const void, pointer to const void) returning int : "/usr/include/iso/stdlib_iso.h", line 134
argument : pointer to function(pointer to struct {short hd, int bi, int nr, int nc}, pointer to struct {short hd, int bi, int nr, int nc}) returning int
"rhd_ogl.c", line 100: warning: initializer does not fit or is out of range: -1
"rhd_geom.c", line 201: warning: argument #4 is incompatible with prototype:
"rhd_ogl.c", line 100: warning: initializer does not fit or is out of range: -1
"rhdobj.c", line 85: warning: can not declare variably modified type at file scope
"rhdobj.c", line 221: warning: variable length array can not be declared with a static storage class: neighlist
"rhd_glx1.c", line 71: warning: initializer does not fit or is out of range: -1
"rhd_glx1.c", line 169: warning: argument #3 is incompatible with prototype:
prototype: pointer to const char : "/usr/openwin/include/X11/Xlib.h", line 1574
argument : pointer to unsigned char
"glare.h", line 80: warning: syntax error: empty declaration
"rad.c", line 1381: warning: implicit function declaration: kill
"ranimate.c", line 1299: warning: argument #1 is incompatible with prototype:
prototype: pointer to int : "netproc.h", line 36
argument : pointer to long
More information about the Radiance-dev
mailing list