Humble Beginnings Error when making (fixed
Posted: Mon Feb 14, 2005 12:15 am
Sorry I'm a N00b. But at least I searched the forums for an answer first (but probably not hard enough).
I'm having this error during the "Creating Ogre Project Files" section for linux. I did everything as stated (even copy and pasted) but I still get the following errors when I type in the command 'make':
if g++ -DHAVE_CONFIG_H -I. -I. -I. -DGCC_3_1 -DEXT_HASH -I/usr/include/OGRE -g -O2 -MT SkyPlane.o -MD -MP -MF ".deps/SkyPlane.Tpo" -c -o SkyPlane.o SkyPlane.cpp; \
then mv -f ".deps/SkyPlane.Tpo" ".deps/SkyPlane.Po"; else rm -f ".deps/SkyPlane.Tpo"; exit 1; fi
In file included from ExampleApplication.h:26,
from SkyPlane.h:24,
from SkyPlane.cpp:23:
ExampleFrameListener.h: In member function `void
ExampleFrameListener::updateStats()':
ExampleFrameListener.h:64: error: `OverlayElement' undeclared (first use this
function)
ExampleFrameListener.h:64: error: (Each undeclared identifier is reported only
once for each function it appears in.)
ExampleFrameListener.h:64: error: `guiAvg' undeclared (first use this function)
ExampleFrameListener.h:64: error: `getOverlayElement' undeclared (first use
this function)
ExampleFrameListener.h:65: error: `guiCurr' undeclared (first use this
function)
ExampleFrameListener.h:66: error: `guiBest' undeclared (first use this
function)
ExampleFrameListener.h:67: error: `guiWorst' undeclared (first use this
function)
ExampleFrameListener.h:78: error: `guiTris' undeclared (first use this
function)
ExampleFrameListener.h:81: error: `guiDbg' undeclared (first use this function)
ExampleFrameListener.h: In constructor `
ExampleFrameListener::ExampleFrameListener(Ogre::RenderWindow*,
Ogre::Camera*, bool, bool)':
ExampleFrameListener.h:94: error: invalid conversion from `Ogre::Resource*' to
`Ogre::Overlay*'
In file included from SkyPlane.h:24,
from SkyPlane.cpp:23:
ExampleApplication.h: In member function `virtual bool
ExampleApplication::setup()':
ExampleApplication.h:87: error: `setDefaultNumMipmaps' undeclared (first use
this function)
ExampleApplication.h: In member function `virtual void
ExampleApplication::setupResources()':
ExampleApplication.h:168: error: `SectionIterator' is not a member of type `
Ogre::ConfigFile'
ExampleApplication.h:168: error: parse error before `;' token
ExampleApplication.h:171: error: `seci' undeclared (first use this function)
ExampleApplication.h:174: error: `SettingsMultiMap' is not a member of type `
Ogre::ConfigFile'
ExampleApplication.h:174: error: `settings' undeclared (first use this
function)
ExampleApplication.h:175: error: parse error before `;' token
ExampleApplication.h:176: error: `i' undeclared (first use this function)
ExampleApplication.h:180: error: `ResourceGroupManager' undeclared (first use
this function)
ExampleApplication.h:180: error: parse error before `;' token
ExampleApplication.h: In member function `virtual void
ExampleApplication::loadResources()':
ExampleApplication.h:197: error: parse error before `;' token
make[1]: *** [SkyPlane.o] Error 1
make[1]: Leaving directory `/home/javis/Ogre_Tutorial.dir/Samples/Space'
make: *** [all] Error 2
Any suggestions?
thanks in advance
I'm having this error during the "Creating Ogre Project Files" section for linux. I did everything as stated (even copy and pasted) but I still get the following errors when I type in the command 'make':
if g++ -DHAVE_CONFIG_H -I. -I. -I. -DGCC_3_1 -DEXT_HASH -I/usr/include/OGRE -g -O2 -MT SkyPlane.o -MD -MP -MF ".deps/SkyPlane.Tpo" -c -o SkyPlane.o SkyPlane.cpp; \
then mv -f ".deps/SkyPlane.Tpo" ".deps/SkyPlane.Po"; else rm -f ".deps/SkyPlane.Tpo"; exit 1; fi
In file included from ExampleApplication.h:26,
from SkyPlane.h:24,
from SkyPlane.cpp:23:
ExampleFrameListener.h: In member function `void
ExampleFrameListener::updateStats()':
ExampleFrameListener.h:64: error: `OverlayElement' undeclared (first use this
function)
ExampleFrameListener.h:64: error: (Each undeclared identifier is reported only
once for each function it appears in.)
ExampleFrameListener.h:64: error: `guiAvg' undeclared (first use this function)
ExampleFrameListener.h:64: error: `getOverlayElement' undeclared (first use
this function)
ExampleFrameListener.h:65: error: `guiCurr' undeclared (first use this
function)
ExampleFrameListener.h:66: error: `guiBest' undeclared (first use this
function)
ExampleFrameListener.h:67: error: `guiWorst' undeclared (first use this
function)
ExampleFrameListener.h:78: error: `guiTris' undeclared (first use this
function)
ExampleFrameListener.h:81: error: `guiDbg' undeclared (first use this function)
ExampleFrameListener.h: In constructor `
ExampleFrameListener::ExampleFrameListener(Ogre::RenderWindow*,
Ogre::Camera*, bool, bool)':
ExampleFrameListener.h:94: error: invalid conversion from `Ogre::Resource*' to
`Ogre::Overlay*'
In file included from SkyPlane.h:24,
from SkyPlane.cpp:23:
ExampleApplication.h: In member function `virtual bool
ExampleApplication::setup()':
ExampleApplication.h:87: error: `setDefaultNumMipmaps' undeclared (first use
this function)
ExampleApplication.h: In member function `virtual void
ExampleApplication::setupResources()':
ExampleApplication.h:168: error: `SectionIterator' is not a member of type `
Ogre::ConfigFile'
ExampleApplication.h:168: error: parse error before `;' token
ExampleApplication.h:171: error: `seci' undeclared (first use this function)
ExampleApplication.h:174: error: `SettingsMultiMap' is not a member of type `
Ogre::ConfigFile'
ExampleApplication.h:174: error: `settings' undeclared (first use this
function)
ExampleApplication.h:175: error: parse error before `;' token
ExampleApplication.h:176: error: `i' undeclared (first use this function)
ExampleApplication.h:180: error: `ResourceGroupManager' undeclared (first use
this function)
ExampleApplication.h:180: error: parse error before `;' token
ExampleApplication.h: In member function `virtual void
ExampleApplication::loadResources()':
ExampleApplication.h:197: error: parse error before `;' token
make[1]: *** [SkyPlane.o] Error 1
make[1]: Leaving directory `/home/javis/Ogre_Tutorial.dir/Samples/Space'
make: *** [all] Error 2
Any suggestions?
thanks in advance