[osg-users] fails compilation on linux (Ubuntu Feisty Fawn)

2007-09-11 Thread Rafa Gaitan
Hi Robert, I'm really curious in the error I'm getting trying to compile svn version: OSG-SVN/OpenSceneGraph-g++-4.1/include/osg/Uniform:169: error: 'GL_SAMPLER_1D_ARRAY_EXT' was not declared in this scope OSG-SVN/OpenSceneGraph-g++-4.1/include/osg/Uniform:170: error: 'GL_SAMPLER_2D_ARRAY_EXT'

Re: [osg-users] fails compilation on linux (Ubuntu Feisty Fawn)

2007-09-11 Thread Art Tevs
Hi Rafa, yes you are right. I attached a patch which should correct this. Robert, could you please merge it. Rafa you could just use this file, until it is merged in. Cheers, Art --- Rafa Gaitan [EMAIL PROTECTED] schrieb: Hi Robert, I'm really curious in the error I'm getting trying to

Re: [osg-users] fails compilation on linux (Ubuntu Feisty Fawn)

2007-09-11 Thread David Callu
Hi Rafa, I had the same problem 1 week ago. I use Linux Fedora 7. When compiling, the default glext.h used is the glext.h provide by the mesa package. I have a Nvidia graphic card and the nvidia package for fedora provide an up to date glext.h. But this header is in the

Re: [osg-users] fails compilation on linux (Ubuntu Feisty Fawn)

2007-09-11 Thread Rafa Gaitan
Hi Art and David, With the new GL2Extension works fine thanks! ;) I think robert will check in the changes. David, the package of ubuntu doesn't provide a glext or I didn't find it on the system! :), but I think patching GL2Extensions is a better and more generic solution. Thanks anyway David.

Re: [osg-users] fails compilation on linux (Ubuntu Feisty Fawn)

2007-09-11 Thread David Callu
Define values are always the same on all platform so why. Moreover this seem clean and prevent redefine warning like I would fix in my other post. I am agree with this solution. Cheers David ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] fails compilation on linux (Ubuntu Feisty Fawn)

2007-09-11 Thread Art Tevs
Hmm, seems to be a good idea, since it would really define only those things, which are not defined. Now we need somebody to merge this for every define in the osg ;-) I think it would be faster to write a script to search for #define GL_ and to replace it with the proposed macro. Art ---

Re: [osg-users] fails compilation on linux (Ubuntu Feisty Fawn)

2007-09-11 Thread Rafa Gaitan
#define GL_DEIFINE(name, value) \ #ifndef name \ #define name value\ #endif Then in the header have: GL_DEFINE(GL_SAMPLER_1D_ARRAY_EXT, 0x8DC0) Thoughts? I agree with this solution... the only problem is to pay attention on all GL_* definitions inside osg:

Re: [osg-users] fails compilation on linux (Ubuntu Feisty Fawn)

2007-09-11 Thread Robert Osfield
On 9/11/07, Rafa Gaitan [EMAIL PROTECTED] wrote: #define GL_DEIFINE(name, value) \ #ifndef name \ #define name value\ #endif Then in the header have: GL_DEFINE(GL_SAMPLER_1D_ARRAY_EXT, 0x8DC0) Thoughts? I agree with this solution... the only problem is to pay