Re: [osg-users] include conflict while compiling osg 2.9.11

2011-05-09 Thread Lv Qing
robertosfield wrote: Hi Lv, I have now a couple experiments of including the X11 headers before includeDB/Serializer and adding your suggested addition to the osgviewerQt example and find that X11 either screws up lots of other OSG files or Qt headers. This isn't something that is wrong

Re: [osg-users] include conflict while compiling osg 2.9.11

2011-05-09 Thread Wang Rui
Hi Lv, It is a known issue of the osgviewerQt example under Linux. AFAIK, OSG's multithreading mechanism could well with QtOpenGL under Windows, but the make current operation is confused when using QGLWidget as the low-level graphics context. With Qt 4.7 and Ubuntu 10.10, the example seems to

Re: [osg-users] include conflict while compiling osg 2.9.11

2011-05-08 Thread Robert Osfield
Hi Lv, My guess is that X11 is doing #define on one of the typedefs or variables used by the include/osgDB/Serializer. This namespace polution is unfortunately effect of old C headers that one has to either re-order includes, change names to avoid conflicts or add #undef's to the headers to

Re: [osg-users] include conflict while compiling osg 2.9.11

2011-05-08 Thread Robert Osfield
Hi Lv, I have now a couple experiments of including the X11 headers before includeDB/Serializer and adding your suggested addition to the osgviewerQt example and find that X11 either screws up lots of other OSG files or Qt headers. This isn't something that is wrong with wither OSG or Qt, but

[osg-users] include conflict while compiling osg 2.9.11

2011-05-07 Thread Lv Qing
Hi, When I integrating my osg application into a QT application ,I found some include conflicting while using osg 2.9.11. /usr/local/include/osgDB/Serializer:640: error:expected unqualified-id before numeric constant /usr/local/include/osgDB/Serializer:640: error:expected `)' before numeric