[osg-users] osgQT build errors with QT 5.2 on MacOSX 10.9
Hi, I would like to build a GUI around my osg application, so I tried to build osgQT. I'm using MacOSX 10.9, Xcode 5, Qt 5.2, latest osg from trunk. I get following error: jean-claude$ make VERBOSE=1 ... [ 85%] Generating __/__/include/osgQt/moc_QGraphicsViewAdapter.cpp cd /Users/jean-claude/Sources/osg/osg-build/src/osgQt/__/__/include/osgQt /Users/jean-claude/Qt/5.2.0/clang_64/bin/moc @/Users/jean-claude/Sources/osg/osg-build/src/osgQt/__/__/include/osgQt/moc_QGraphicsViewAdapter.cpp_parameters moc: Too many input files specified Usage: /Users/jean-claude/Qt/5.2.0/clang_64/bin/moc [options] [header-file] [@option-file] Qt Meta Object Compiler version 67 (Qt 5.2.0) ... The moc option file is: jean-claude$ cat /Users/jean-claude/Sources/osg/osg-build/src/osgQt/__/__/include/osgQt/moc_QGraphicsViewAdapter.cpp_parameters -I/Users/jean-claude/Sources/osg/osg/include -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks -I/Users/jean-claude/Sources/osg/osg-build/include -DOSGQT_LIBRARY -f -o /Users/jean-claude/Sources/osg/osg-build/src/osgQt/__/__/include/osgQt/moc_QGraphicsViewAdapter.cpp /Users/jean-claude/Sources/osg/osg/include/osgQt/QGraphicsViewAdapter I'm not familiar with moc. Any advice to fix this would be welcome. Thanks, Jean-Claude ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Curious compiler behavior
Hi, I use Visual Express C++ 2010. The following code works very well: osg::FloatArray *array = ... (*array)[i] = 10.0; I decided to add integer support: osg::IntArray *array = ... (*array)[i] = 10; And the linker says: osgd.lib(osg80-osgd.dll) : error LNK2005: public: int __cdecl osg::MixinVector::operator[](unsigned __int64) already defined in libseFastOsgCored.lib(OsgUniform.obj) Any idea ? ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Curious compiler behavior
It seems that osg80-osgd.dll contains the symbols of scalar integer (char, uchar, short, ushort, int, uint) specializations of the MixinVector. The vector and floating point specializations are not defined. On 12/12/2013 18:19, Lionel Lagarde wrote: Hi, I use Visual Express C++ 2010. The following code works very well: osg::FloatArray *array = ... (*array)[i] = 10.0; I decided to add integer support: osg::IntArray *array = ... (*array)[i] = 10; And the linker says: osgd.lib(osg80-osgd.dll) : error LNK2005: public: int __cdecl osg::MixinVector::operator[](unsigned __int64) already defined in libseFastOsgCored.lib(OsgUniform.obj) Any idea ? ___ 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] Forum error
Hi all The forum seems to be out of service. Is there anybody working on this issue? The mailing list is gread but in order to look up and search, I still prefer the forum... Regards Daniel ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] TexGen limitations
Hi there I noticed a limitation in TexGen. It looks like osg::TexGen can only be used up to a texture unit between 0 and 3, starting from texture unit 4 to 7, osg::TexGen have no more effect. You can easily test this with the osgspotlight.cpp example by changing the following lines: Line 249: xform-addChild(createSpotLightNode(osg::Vec3(0.0f,0.0f,0.0f), osg::Vec3(0.0f,1.0f,-1.0f), 60.0f, 0, 1)); replace the last number (1). Line 275: root-setStateSet(createSpotLightDecoratorState(0,1)); replace the last number (1). If you use numbers between 0..3, everything works fine, 4 and up doesn't work anymore. Where does this limitation come from? Is this OSG or opengl? Regards Daniel ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org