[sldev] [VWR] Compiling WindLight on MacOS
Alissa Sabre
alissa_sabre at yahoo.co.jp
Tue Dec 25 07:58:25 PST 2007
Has anybody tried compiling WindLight viewer on MacOS?
I grabbed and compiled the FL-1.18.6.76116 source on MacOS X
(10.4.11). The first try failed because glh/glh_linear.h and
glh/glh_convenience.h were not found. So, I went to the Nick's site
and downloaded http://www.blueflash.cc/users/nicholaz/~libs/glh.zip
Then, I got an error message that says GL/gl.h : No such file or
directory in glh_convenience.h. Well, on MacOS (or xcode I should
say), gl.h is under OpenGL directory but GL, so it must be included as
<OpenGL/gl.h>. I edited the file as follows:
#if LL_DARWIN
#include <OpenGL/gl.h>
#else
#include <GL/gl.h>
#endif
The problem here is, that the include <GL/gl.h> is in
glh_convenience.h, and the comment in glh_convenience.h says "glh is
platform independent". Also, the file has NVIDIA copyright. I have a
feeling that I should not put SL specific LL_DARWIN or any other
platform-specific macro/#if's there.
What should I do? What Lindens are doing?
Any idea?
# I hope Soft makes source QA on WindLight next time...
Alissa Sabre
--------------------------------------
New Design Yahoo! JAPAN 2008/01/01
http://pr.mail.yahoo.co.jp/newdesign/
More information about the SLDev
mailing list