Hi Ji,
Warnings can generally be ignored. Errors are a problem, because they generally cause one or more programs to fail to compile. But warnings (as you have here) are not a big deal. Is XCode refusing to make all the programs because of this warning? I'd doubt it. Regardless, XCode is overkill if all you want to do is compile the source code. The "makeall" script that is in the source tree works flawlessly on the mac and on Linux. It too will generate these warnings, but like I said they can be ignored. As long as you don't end up with the dreaded "there were some errors." message at the end of the makeall script, you should be all set!
- Rob
···
On Jun 23, 2012, at 8:55 AM, Ji Zhang wrote:
Hi, List,
I got the following "clang" related error message while compiling Radiance4 on Mac:
####################################################################
Current rmake command is:
#!/bin/sh
exec make "SPECIAL=ogl" \
"OPT=-O2" \
"MACH=-DBSD -DNOSTEREO -Dfreebsd -I/usr/X11R6/include -L/usr/X11R6/lib" \
ARCH=Intel "COMPAT=" \
INSTDIR=/Applications/Radiance/HEAD_2012_06_23/ray/bin \
LIBDIR=/Applications/Radiance/HEAD_2012_06_23/ray/lib \
ESUFFIX= \
CC=cc CONFIGURE_ARCH=i386 "$@" -f Rmakefile
Do you want to change it? n
Making programs...
/Applications/Radiance/HEAD_2012_06_23/ray/src/common /Applications/Radiance/HEAD_2012_06_23/ray/src
In directory common...
cc -DBSD -DNOSTEREO -Dfreebsd -I/usr/X11R6/include -L/usr/X11R6/lib -O2 -c -o cone.o cone.c
clang: warning: argument unused during compilation: '-L/usr/X11R6/lib'
......
cc -DBSD -DNOSTEREO -Dfreebsd -I/usr/X11R6/include -L/usr/X11R6/lib -O2 -c -o bsdf.o bsdf.c
clang: warning: argument unused during compilation: '-L/usr/X11R6/lib'
bsdf.c:1432:2: warning: implicit declaration of function 'multisamp' is invalid
in C99 [-Wimplicit-function-declaration]
multisamp(pert, 3, rv);
^
1 warning generated.
......
####################################################################
Have I missed sth critical here?
(Mac OSX 10.7.4 with Xcode.4.3.2)
- Cheers, Ji
_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general
Rob is right, but I wanted to thank you anyway for pointing out a problem I hadn't noticed before!
Cheers,
-Greg
···
From: Rob Guglielmetti <[email protected]>
Date: June 23, 2012 8:20:58 AM PDT
Hi Ji,
Warnings can generally be ignored. Errors are a problem, because they generally cause one or more programs to fail to compile. But warnings (as you have here) are not a big deal. Is XCode refusing to make all the programs because of this warning? I'd doubt it. Regardless, XCode is overkill if all you want to do is compile the source code. The "makeall" script that is in the source tree works flawlessly on the mac and on Linux. It too will generate these warnings, but like I said they can be ignored. As long as you don't end up with the dreaded "there were some errors." message at the end of the makeall script, you should be all set!
- Rob
On Jun 23, 2012, at 8:55 AM, Ji Zhang wrote:
Hi, List,
I got the following "clang" related error message while compiling Radiance4 on Mac:
####################################################################
Current rmake command is:
#!/bin/sh
exec make "SPECIAL=ogl" \
"OPT=-O2" \
"MACH=-DBSD -DNOSTEREO -Dfreebsd -I/usr/X11R6/include -L/usr/X11R6/lib" \
ARCH=Intel "COMPAT=" \
INSTDIR=/Applications/Radiance/HEAD_2012_06_23/ray/bin \
LIBDIR=/Applications/Radiance/HEAD_2012_06_23/ray/lib \
ESUFFIX= \
CC=cc CONFIGURE_ARCH=i386 "$@" -f Rmakefile
Do you want to change it? n
Making programs...
/Applications/Radiance/HEAD_2012_06_23/ray/src/common /Applications/Radiance/HEAD_2012_06_23/ray/src
In directory common...
cc -DBSD -DNOSTEREO -Dfreebsd -I/usr/X11R6/include -L/usr/X11R6/lib -O2 -c -o cone.o cone.c
clang: warning: argument unused during compilation: '-L/usr/X11R6/lib'
......
cc -DBSD -DNOSTEREO -Dfreebsd -I/usr/X11R6/include -L/usr/X11R6/lib -O2 -c -o bsdf.o bsdf.c
clang: warning: argument unused during compilation: '-L/usr/X11R6/lib'
bsdf.c:1432:2: warning: implicit declaration of function 'multisamp' is invalid
in C99 [-Wimplicit-function-declaration]
multisamp(pert, 3, rv);
^
1 warning generated.
......
####################################################################
Have I missed sth critical here?
(Mac OSX 10.7.4 with Xcode.4.3.2)
- Cheers, Ji