Re: [osg-users] Arggh! Frustrating compiler error! OS X XCode3.0.
Hi Stephan, Sorry I took a while to reply to this.. I have done some more digging.. But am still somewhat confused. However I am sure it's two parts of a project conflicting somehow. I wonder if you can throw any pearls of wisdom my way.. The Open Flight stuff I was reporting earlier was totally related to an older Prefix file from an old OSG Template. Duh! With regards to the OpenGL errors.. I have glew and SDL and a few other things included in my XCode project. It's only in this project I get this problem. However I have cleaned the project and the entire machine of any OSG installs except the one from SVN. I have also checked all the libraries I am using are 10.5, as is the OSG build. When I build it the errors persist in 'Uniform' just below line 184 which is commented as TODO: the following must be integrated fully Those 6 GL_FLOAT_MAT equates throw up a 'not declared in this scope error' every time. But with other examples from the OSG distribution I don't get that error. So it's something I have added to my project. glew is funny about being included before gl.h and other files of that ilk, and I wonder if that's causing a problem for me with OSG?!? So obviously there is a build order / compilation problem for me of some sort. Or I am making a silly mistake somewhere perhaps? Can you shed any light on why SDL, freetype or glew might cause this problem, or anything I should be careful of? Thanks. Stephen. On Jan 28, 2008, at 5:12 PM, Stephan Maximilian Huber wrote: Hi Stephen, Stephen Northcott schrieb: I am still getting the OpenGL error references I mentioned earlier. Is it possible I am going to the wrong repository? Do you have more than one! Seems unlikely as you told me you had fixed various other linking probs and I grabbed it again and they had indeed gone.. Nice to hear that your linking error is gone. Can you post the error-messages you get regarding the GL_ defines into an email and your used computer / system? cheers, Stephan ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Arggh! Frustrating compiler error! OS X XCode3.0.
Hi Stephen, Stephen Northcott schrieb: So obviously there is a build order / compilation problem for me of some sort. Or I am making a silly mistake somewhere perhaps? Can you shed any light on why SDL, freetype or glew might cause this problem, or anything I should be careful of? Your problem is that GLEW defines GL_VERSION_2_0 without defining the GL_FLOAT_MAT-stuff like osg does in osg/Uniform. The #define GL_VERSION_2_0 in glew prevents the #define-block in osg/Uniform. I think there are several solutions: 1) move the inclusion of glew after the inclusion of osg so that osg/uniform is seen first by the compiler 2) add the missing defines to glew.h from osg/Uniform 3) undefine GL_VERSION_2_0 before you include osg-headers I would go with solution 2) and report back to the glew-crew, I think this is a bug of glew. It says, that it defines GL_VERSION_2_0 but does not define all stuff related to OpenGL 2.0. Hope that helps, Stephan ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Arggh! Frustrating compiler error! OS X XCode3.0.
Hi Stephan, Thanks, that makes sense. Suggestion one is a little hard as glew gets upset if it's not put together before gl.h etc. Suggestion 2 3 are both viable as a fix. I'll ping the Glew people about it also. Ultimately I'd like to move away from Glew and rely on OSG for that, but I can't right now. Kind regards, Stephen. On Feb 3, 2008, at 6:50 PM, Stephan Huber wrote: Hi Stephen, Stephen Northcott schrieb: So obviously there is a build order / compilation problem for me of some sort. Or I am making a silly mistake somewhere perhaps? Can you shed any light on why SDL, freetype or glew might cause this problem, or anything I should be careful of? Your problem is that GLEW defines GL_VERSION_2_0 without defining the GL_FLOAT_MAT-stuff like osg does in osg/Uniform. The #define GL_VERSION_2_0 in glew prevents the #define-block in osg/Uniform. I think there are several solutions: 1) move the inclusion of glew after the inclusion of osg so that osg/uniform is seen first by the compiler 2) add the missing defines to glew.h from osg/Uniform 3) undefine GL_VERSION_2_0 before you include osg-headers I would go with solution 2) and report back to the glew-crew, I think this is a bug of glew. It says, that it defines GL_VERSION_2_0 but does not define all stuff related to OpenGL 2.0. Hope that helps, Stephan ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Arggh! Frustrating compiler error! OS X XCode3.0.
On Jan 28, 2008 2:44 AM, Stephen Northcott [EMAIL PROTECTED] wrote: Hi Stephan, (Robert there is a comment about the svn repository in here that may be of interest to you) OK. Can I ask what is perhaps a more stupid question now.. Can you confirm the correct svn source.. There is only one svn repsitory for the OSG: http://www.openscenegraph.org/svn/osg/OpenSceneGraph/ I used the one detailed on the OSG site, but it refers to the .com URL. That gave me repeated errors. Could you please give the page where this out of date URL is. The SVN was under .com for a few months last year before we got .org mapped across to the new site. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Arggh! Frustrating compiler error! OS X XCode3.0.
Hi Robert, Sure.. Here you go.. http://www.openscenegraph.org/index.php?page=Downloads.SVN Kind regards, Stephen. On Jan 28, 2008, at 3:55 PM, Robert Osfield wrote: On Jan 28, 2008 2:44 AM, Stephen Northcott [EMAIL PROTECTED] wrote: Hi Stephan, (Robert there is a comment about the svn repository in here that may be of interest to you) OK. Can I ask what is perhaps a more stupid question now.. Can you confirm the correct svn source.. There is only one svn repsitory for the OSG: http://www.openscenegraph.org/svn/osg/OpenSceneGraph/ I used the one detailed on the OSG site, but it refers to the .com URL. That gave me repeated errors. Could you please give the page where this out of date URL is. The SVN was under .com for a few months last year before we got .org mapped across to the new site. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Arggh! Frustrating compiler error! OS X XCode3.0.
Hi Stephen, Stephen Northcott schrieb: I am still getting the OpenGL error references I mentioned earlier. Is it possible I am going to the wrong repository? Do you have more than one! Seems unlikely as you told me you had fixed various other linking probs and I grabbed it again and they had indeed gone.. Nice to hear that your linking error is gone. Can you post the error-messages you get regarding the GL_ defines into an email and your used computer / system? cheers, Stephan ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Arggh! Frustrating compiler error! OS X XCode3.0.
Hi Stephen, On Jan 28, 2008 9:14 AM, Stephen Northcott [EMAIL PROTECTED] wrote: Sure.. Here you go.. http://www.openscenegraph.org/index.php?page=Downloads.SVN OK, this is the old pmwiki website, which explains why its been missed - the new tracs website will be up to date. I've fixed this old page, if you see any others just send them in, or fix them directly where possible (password for the old pmwiki is osg except for the download pages where only I have access). Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Arggh! Frustrating compiler error! OS X XCode3.0.
Hi Stephen, I am a bit perplexed... Stephen Northcott schrieb: Thank you so much for doing that.. OSG Compiles fine now. (I limited it to 10.5SDK for Intel for simplicity right now) Just thought you'd like to know that I get the following errors, which I have dealt with by commenting files I don't need out.. osgSim/OpenFlightOptimizer is not found. And I get some OpenGL errors for osg/Uniform. Basically GL_FLOAT_MAT2x3 is not 'declared in this scope', and it's 6 brothers and sisters. I noticed that in Uniform these defines are under a TODO: heading, so you may be aware of that. I did not get any of your errors, osgSim/OpenFlightOptimizer is not part of the xcode-project anymore, and the #GL-defines are defined in osg/GLExtensions. I get some warnings about unused local variables and wrong initialization order, that's all. I added the offending lines of your example to the osggeometry-example, and it builds and links fine on my end, both for 10.4u and 10.5-sdk. It looks like you are not using an uptodate source, or refererencing old versions of the osg-frameworks, perhaps some old frameworks are lurking around in /Library/Frameworks or ~/Library/Frameworks. Both mentioned errors are fixed in current svn. So please check again your source-tree if it's current and if there are any modified files. Please remove OpenSceneGraph/Xcode/OpenSceneGraph/OpenSceneGraph.xcodeproj and do a svn update to get a clean and fresh xcode-project and try again. good luck :) stephan ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Arggh! Frustrating compiler error! OS X XCode3.0.
Stephen Northcott schrieb: Am I missing something blindingly obvious, or has anyone seen this before! Just an idea: What sdk are you using? There were some problems when using the 10.5 sdk, these has been fixed in svn. Or try switching to the 10.4u sdk if you don't want to upgrade. HTH, Stephan ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Arggh! Frustrating compiler error! OS X XCode3.0.
Thanks Stephan, I'll give those a try. Kind regards, Stephen. On Jan 26, 2008, at 7:19 PM, Stephan Huber wrote: Stephen Northcott schrieb: Am I missing something blindingly obvious, or has anyone seen this before! Just an idea: What sdk are you using? There were some problems when using the 10.5 sdk, these has been fixed in svn. Or try switching to the 10.4u sdk if you don't want to upgrade. HTH, Stephan ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Arggh! Frustrating compiler error! OS X XCode3.0.
Very strange problem this one.. Can anyone who's a whizz with XCode help me out please.. I have a fully compiled version of the OSG 2.2 release, which works perfectly in every way except this one crazy problem which is driving me mad!! I built OSG on the same machine with XCode3.0 that is giving me these problems. I have the standard OSG prefix.pch file with all dependencies in it in the XCode project. In fact it's based on the OSG XCode Template. The problem is at linking the compiler cannot find the StateSet::setMode symbol. All other StateSet stuff works on instructions either side of this one instruction that is failing. This is happening across several XCode projects.. I have tried rebuilding the entire OSG package. I am also now manually including these following files also in the file this code is resident in. #include osgGA/StateSetManipulator #include osg/StateAttribute #include osg/StateSet The offending line is commented out below.. ss2 = geom-getOrCreateStateSet(); // ss2-setMode(GL_BLEND,osg::StateAttribute::ON); ss2-setAttribute(new osg::PolygonOffset(1.0f, 1.0f),osg::StateAttribute::ON); ss2-setRenderingHint(osg::StateSet::TRANSPARENT_BIN); ss2 is defined as osg::StateSet* ss2 earlier in the file. So it's either me being really dense, the OSG package I have, or aliens Any result is fine. I just want the problem to go away! This is the linker error... osg::StateSet::setMode(unsigned long, unsigned int), referenced from: OSG_HUD::create() in Planet.o OSG_HUD::create() in Planet.o symbol(s) not found I have asked the compiler to take me to the definition of setMode and it finds several, including the two in StateSet. Am I missing something blindingly obvious, or has anyone seen this before! Thanks, Stephen. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Arggh! Frustrating compiler error! OS X XCode3.0.
Thanks for the suggestions... Tried both, but on 10.4u I get the same problem. And the latest svn is unbuildable for me. Lots of errors that I don't really want to or know where to start trying to fix. Do you know where I can get a version that has had those issues fixed? Cheers, Stephen. On Jan 26, 2008, at 7:25 PM, Stephen Northcott wrote: Thanks Stephan, I'll give those a try. Kind regards, Stephen. On Jan 26, 2008, at 7:19 PM, Stephan Huber wrote: Stephen Northcott schrieb: Am I missing something blindingly obvious, or has anyone seen this before! Just an idea: What sdk are you using? There were some problems when using the 10.5 sdk, these has been fixed in svn. Or try switching to the 10.4u sdk if you don't want to upgrade. HTH, Stephan ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Arggh! Frustrating compiler error! OS X XCode3.0.
Stephen Northcott schrieb: Thanks for the suggestions... Tried both, but on 10.4u I get the same problem. And the latest svn is unbuildable for me. Lots of errors that I don't really want to or know where to start trying to fix. I did a fresh checkout and adjusted the XCode project, so osg compiles fine. ( I checked in back the modified Xcode-project, so do an update) Do you know where I can get a version that has had those issues fixed? For my projects I am using Rev. 7799 of OpenSceneGraph on Max OS X + XCode 3.0 and Windows Vista + Visual Studio 2005. I've built OpenSceneGraph with the provided XCode project, I had to adjust some details (switching back to 10.4u sdk, set the deployment target to 10.4, ...). For now, I can't use CMake on OS Xbecause Cmake can't create (private) frameworks. One note: Be sure, that all your targets have the same sdk-settings, so build the osg-frameworsk AND your apps with 10.4u SDK or 10.5 SDK, you can't mix them, because of a binary incompatibility introduced with 10.5 + OpenGL. See the posts from E.Wing for more details. hope that helps, Stephan ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Arggh! Frustrating compiler error! OS X XCode3.0.
Hi Stephan, Thank you so much for doing that.. OSG Compiles fine now. (I limited it to 10.5SDK for Intel for simplicity right now) Just thought you'd like to know that I get the following errors, which I have dealt with by commenting files I don't need out.. osgSim/OpenFlightOptimizer is not found. And I get some OpenGL errors for osg/Uniform. Basically GL_FLOAT_MAT2x3 is not 'declared in this scope', and it's 6 brothers and sisters. I noticed that in Uniform these defines are under a TODO: heading, so you may be aware of that. But.. Oh no... I was typing that as it was building on my project and I still get the error... osg::StateSet::setMode(unsigned long, unsigned int), referenced from: OSG_HUD::create() in Planet.o OSG_HUD::create() in Planet.o symbol(s) not found I am considering getting drunk! Kind regards, Stephen. On Jan 27, 2008, at 2:19 AM, Stephan Huber wrote: Stephen Northcott schrieb: Thanks for the suggestions... Tried both, but on 10.4u I get the same problem. And the latest svn is unbuildable for me. Lots of errors that I don't really want to or know where to start trying to fix. I did a fresh checkout and adjusted the XCode project, so osg compiles fine. ( I checked in back the modified Xcode-project, so do an update) Do you know where I can get a version that has had those issues fixed? For my projects I am using Rev. 7799 of OpenSceneGraph on Max OS X + XCode 3.0 and Windows Vista + Visual Studio 2005. I've built OpenSceneGraph with the provided XCode project, I had to adjust some details (switching back to 10.4u sdk, set the deployment target to 10.4, ...). For now, I can't use CMake on OS Xbecause Cmake can't create (private) frameworks. One note: Be sure, that all your targets have the same sdk-settings, so build the osg-frameworsk AND your apps with 10.4u SDK or 10.5 SDK, you can't mix them, because of a binary incompatibility introduced with 10.5 + OpenGL. See the posts from E.Wing for more details. hope that helps, Stephan ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Arggh! Frustrating compiler error! OS X XCode3.0.
Hi Stephan, Instead of drinking I did some googling.. I just found Eric's comments about Apple breaking binary compatibility, and someone with an identical error to me. So it does seem this has something to do with me mixing 10.4 and 10.5 frameworks. I have been aware of this for a while so was actually quite careful to avoid it. So (as I said) I have completely re-built OSG against 10.5, and also my entire project against 10.5 Am I missing something else I have to do to get around this? Thanks again. Stephen. On Jan 27, 2008, at 2:19 AM, Stephan Huber wrote: Stephen Northcott schrieb: Thanks for the suggestions... Tried both, but on 10.4u I get the same problem. And the latest svn is unbuildable for me. Lots of errors that I don't really want to or know where to start trying to fix. I did a fresh checkout and adjusted the XCode project, so osg compiles fine. ( I checked in back the modified Xcode-project, so do an update) Do you know where I can get a version that has had those issues fixed? For my projects I am using Rev. 7799 of OpenSceneGraph on Max OS X + XCode 3.0 and Windows Vista + Visual Studio 2005. I've built OpenSceneGraph with the provided XCode project, I had to adjust some details (switching back to 10.4u sdk, set the deployment target to 10.4, ...). For now, I can't use CMake on OS Xbecause Cmake can't create (private) frameworks. One note: Be sure, that all your targets have the same sdk-settings, so build the osg-frameworsk AND your apps with 10.4u SDK or 10.5 SDK, you can't mix them, because of a binary incompatibility introduced with 10.5 + OpenGL. See the posts from E.Wing for more details. hope that helps, Stephan ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org