Compile problem

darken_cz

27-07-2006 22:23:35

Hi,

I have problems with compiling ogredotnet. I tryed combination of ogre from 1.2.0 to 1.2.2, with cegui 0.4 and 0.4.1 and with gcc 3.4.5 and gcc 4.1.1, still same error when I start make. I have mono 1.1.16


Making all in OgreNet
make[2]: Entering directory `/home/michal/ogredotnet/OgreNet'
if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/OGRE -g -O2 -MT libOgreBindings_la-OgreBindings_wrap.lo -MD -MP -MF ".deps/libOgreBindings_la-OgreBindings_wrap.Tpo" -c -o libOgreBindings_la-OgreBindings_wrap.lo `test -f 'OgreBindings_wrap.cxx' || echo './'`OgreBindings_wrap.cxx; \
then mv -f ".deps/libOgreBindings_la-OgreBindings_wrap.Tpo" ".deps/libOgreBindings_la-OgreBindings_wrap.Plo"; else rm -f ".deps/libOgreBindings_la-OgreBindings_wrap.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/OGRE -g -O2 -MT libOgreBindings_la-OgreBindings_wrap.lo -MD -MP -MF .deps/libOgreBindings_la-OgreBindings_wrap.Tpo -c OgreBindings_wrap.cxx -fPIC -DPIC -o .libs/libOgreBindings_la-OgreBindings_wrap.o
In file included from OgreBindings_wrap.cxx:1790:
EventHandler.h:205:28: warning: no newline at end of file
OgreBindings_wrap.cxx: In function `Ogre::ChildNodeIteratorWrap* Ogre_Node_GetChildIterator(Ogre::Node*)':
OgreBindings_wrap.cxx:1803: warning: taking address of temporary
In file included from OgreBindings_wrap.cxx:2489:
GpuProgramExt.h: In member function `const Ogre::String& Ogre::GPPAutoConstantDefinition::getName()':
GpuProgramExt.h:56: warning: returning reference to temporary
GpuProgramExt.h: In member function `Ogre::GPPRealConstantEntry* Ogre::GPPRealConstantIterator::peekNext()':
GpuProgramExt.h:166: warning: taking address of temporary
GpuProgramExt.h: In member function `Ogre::GPPRealConstantEntry* Ogre::GPPRealConstantIterator::getNext()':
GpuProgramExt.h:170: warning: taking address of temporary
GpuProgramExt.h: In member function `Ogre::GPPRealConstantEntry* Ogre::GPPRealConstantIterator::next()':
GpuProgramExt.h:175: warning: taking address of temporary
GpuProgramExt.h: In member function `void Ogre::GPPIntConstantEntry::setVal(int, float)':
GpuProgramExt.h:218: warning: converting to `int' from `float'
GpuProgramExt.h: In member function `Ogre::GPPIntConstantEntry* Ogre::GPPIntConstantIterator::peekNext()':
GpuProgramExt.h:258: warning: taking address of temporary
GpuProgramExt.h: In member function `Ogre::GPPIntConstantEntry* Ogre::GPPIntConstantIterator::getNext()':
GpuProgramExt.h:262: warning: taking address of temporary
GpuProgramExt.h: In member function `Ogre::GPPIntConstantEntry* Ogre::GPPIntConstantIterator::next()':
GpuProgramExt.h:267: warning: taking address of temporary
GpuProgramExt.h: In member function `const Ogre::String& Ogre::GPPConstantDefinition::getName()':
GpuProgramExt.h:306: warning: returning reference to temporary
GpuProgramExt.h: In member function `Ogre::GPPAutoConstantEntry* Ogre::GPPAutoConstantIterator::peekNext()':
GpuProgramExt.h:452: warning: taking address of temporary
GpuProgramExt.h: In member function `Ogre::GPPAutoConstantEntry* Ogre::GPPAutoConstantIterator::getNext()':
GpuProgramExt.h:456: warning: taking address of temporary
GpuProgramExt.h: In member function `Ogre::GPPAutoConstantEntry* Ogre::GPPAutoConstantIterator::next()':
GpuProgramExt.h:461: warning: taking address of temporary
OgreBindings_wrap.cxx: In function `const Ogre::GPPRealConstantIterator* Ogre_GpuProgramParameters_GetRealConstantIterator(Ogre::GpuProgramParameters*)':
OgreBindings_wrap.cxx:2507: warning: taking address of temporary
OgreBindings_wrap.cxx: In function `const Ogre::GPPIntConstantIterator* Ogre_GpuProgramParameters_GetIntConstantIterator(Ogre::GpuProgramParameters*)':
OgreBindings_wrap.cxx:2516: warning: taking address of temporary
OgreBindings_wrap.cxx: In function `const Ogre::GPPAutoConstantIterator* Ogre_GpuProgramParameters_GetAutoConstantIterator(Ogre::GpuProgramParameters*)':
OgreBindings_wrap.cxx:2522: warning: taking address of temporary
In file included from OgreBindings_wrap.cxx:2671:
MovableObjectExt.h: In member function `virtual const Ogre::String& Ogre::MovableObjectFactoryDirector::getType() const':
MovableObjectExt.h:75: warning: returning reference to temporary
In file included from OgreBindings_wrap.cxx:2752:
KeyFrameExt.h: In member function `Ogre::VPKFPoseRef* Ogre::VPKFPoseRefIterator::peekNext()':
KeyFrameExt.h:126: warning: taking address of temporary
KeyFrameExt.h: In member function `Ogre::VPKFPoseRef* Ogre::VPKFPoseRefIterator::getNext()':
KeyFrameExt.h:130: warning: taking address of temporary
KeyFrameExt.h: In member function `Ogre::VPKFPoseRef* Ogre::VPKFPoseRefIterator::next()':
KeyFrameExt.h:135: warning: taking address of temporary
OgreBindings_wrap.cxx: In function `Ogre::VPKFPoseRefIterator* Ogre_VertexPoseKeyFrame_GetPoseReferenceIterator(Ogre::VertexPoseKeyFrame*)':
OgreBindings_wrap.cxx:2755: warning: taking address of temporary
In file included from OgreBindings_wrap.cxx:3243:
StaticGeometrySubClassProxies.h: In member function `const Ogre::String& Ogre::SGQueuedSubMesh::getMaterialName()':
StaticGeometrySubClassProxies.h:182: warning: returning reference to temporary
StaticGeometrySubClassProxies.h: In member function `const Ogre::String& Ogre::SGMaterialBucket::getMaterialName() const':
StaticGeometrySubClassProxies.h:478: warning: returning reference to temporary
StaticGeometrySubClassProxies.h: In member function `const Ogre::String& Ogre::SGMaterialBucketMapIterator::peekNextKey()':
StaticGeometrySubClassProxies.h:549: warning: returning reference to temporary
StaticGeometrySubClassProxies.h:550: warning: returning reference to temporary
OgreBindings_wrap.cxx: In function `Ogre::RGMResourceDeclarationList* Ogre_ResourceGroupManager_GetResourceDeclarationList(Ogre::ResourceGroupManager*, const Ogre::String&)':
OgreBindings_wrap.cxx:4565: warning: taking address of temporary
make[2]: *** [libOgreBindings_la-OgreBindings_wrap.lo] Error 1
make[1]: *** [all-recursive] Přerušení (SIGINT)
make: *** [all] Přerušení (SIGINT)

darken_cz

28-07-2006 18:07:31

Addition: After line OgreBindings_wrap.cxx:4565: warning: taking address of temporary

compilation froze and need to be break by ctrl+c

rastaman

31-07-2006 21:34:26

don't break it.
It's a big file and can take 3-5(never actualy timed it) minuts to build on my P4 2.6Ghz.