Please help

OGL

22-03-2009 14:26:04

Hi,
I did everything like this: http://nopaste.gamedev.pl/?id=2367&text

However, instead of
$(NXOGRE_DIR)\include
I have
$(NXOGRE_DIR)\sdk,
because I did not have such folder in BloodyMess directory.


but when trying to compile for example nxTutorial103 there are a lot of errors : :x
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(844) : error C2143: syntax error : missing ';' before '*'
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(844) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(844) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(847) : error C2143: syntax error : missing ';' before '*'
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(847) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(847) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(437) : error C2872: 'MeshManager' : ambiguous symbol
1> could be 'd:\ogresdk\nxogre\sdk\nxogremeshmanager.h(41) : NxOgre::MeshManager'
1> or 'd:\ogresdk\include\ogremeshmanager.h(52) : Ogre::MeshManager'
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(437) : error C2039: 'getSingleton' : is not a member of 'NxOgre::MeshManager'
1> d:\ogresdk\nxogre\sdk\nxogremeshmanager.h(41) : see declaration of 'NxOgre::MeshManager'
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(437) : error C2228: left of '.createPlane' must have class/struct/union
1> type is ''unknown-type''
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(437) : error C3861: 'getSingleton': identifier not found
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(561) : error C2653: 'world' : is not a class or namespace name
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(561) : error C2228: left of '.showDebugOverlay' must have class/struct/union
1> type is ''unknown-type''
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(561) : error C3861: 'getSingleton': identifier not found
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(562) : error C2653: 'world' : is not a class or namespace name
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(562) : error C2228: left of '.debug' must have class/struct/union
1> type is ''unknown-type''
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(562) : error C2653: 'world' : is not a class or namespace name
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(562) : error C2228: left of '.isDebugRendering' must have class/struct/union
1> type is ''unknown-type''
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(562) : error C3861: 'getSingleton': identifier not found
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(562) : error C3861: 'getSingleton': identifier not found
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(573) : error C2653: 'world' : is not a class or namespace name
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(573) : error C2228: left of '.setTimeModifer' must have class/struct/union
1> type is ''unknown-type''
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(573) : error C3861: 'getSingleton': identifier not found
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(591) : error C2653: 'world' : is not a class or namespace name
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(591) : error C2228: left of '.setTimeModifer' must have class/struct/union
1> type is ''unknown-type''
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(591) : error C3861: 'getSingleton': identifier not found
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(607) : error C2653: 'nxOgre' : is not a class or namespace name
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(607) : error C2228: left of '.isPaused' must have class/struct/union
1> type is ''unknown-type''
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(607) : error C3861: 'getSingleton': identifier not found
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(608) : error C2653: 'world' : is not a class or namespace name
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(608) : error C2228: left of '.resume' must have class/struct/union
1> type is ''unknown-type''
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(608) : error C3861: 'getSingleton': identifier not found
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(612) : error C2653: 'world' : is not a class or namespace name
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(612) : error C2228: left of '.pause' must have class/struct/union
1> type is ''unknown-type''
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(612) : error C3861: 'getSingleton': identifier not found
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(637) : error C2065: 'targetBody' : undeclared identifier
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(637) : error C2227: left of '->getGlobalPosition' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(704) : error C2065: 'mRayCaster' : undeclared identifier
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(704) : error C2061: syntax error : identifier 'rayCaster'
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(704) : error C2653: 'world' : is not a class or namespace name
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(713) : error C2541: 'delete' : cannot delete objects that are not pointers
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(733) : error C2227: left of '->setOrigin' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(734) : error C2227: left of '->setDirection' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(736) : error C2227: left of '->cast' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(747) : error C2227: left of '->mHitPos' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(747) : error C2228: left of '.dotProduct' must have class/struct/union
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(749) : error C2872: 'Real' : ambiguous symbol
1> could be 'd:\ogresdk\nxogre\sdk\nxogrestable.h(194) : float NxOgre::Real'
1> or 'd:\ogresdk\include\ogreprerequisites.h(120) : Ogre::Real'
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(755) : error C2227: left of '->getGlobalPosition' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(757) : error C2653: 'NxTools' : is not a class or namespace name
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(757) : error C2227: left of '->mActor' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(757) : error C2227: left of '->getPointVelocity' must point to class/struct/union/generic type
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(757) : error C2653: 'NxTools' : is not a class or namespace name
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(757) : error C2227: left of '->getGlobalPosition' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(757) : error C3861: 'convert': identifier not found
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(757) : error C3861: 'convert': identifier not found
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(758) : error C2227: left of '->addForceAtPos' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(758) : error C2227: left of '->getGlobalPosition' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(770) : error C2065: 'body' : undeclared identifier
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(770) : error C2065: 't' : undeclared identifier
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(770) : error C2227: left of '->mHitBody' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(772) : error C2227: left of '->isStatic' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>d:\ogresdk\nxogre\tutorials\nxtutorials\common\tutorialapplicationeihort.h(779) : error C2227: left of '->isKinematic' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>d:\ogresdk\nxogre\tutorials\nxtutorials\103.cpp(44) : error C2871: 'nxOgre' : a namespace with this name does not exist
1>d:\ogresdk\nxogre\tutorials\nxtutorials\103.cpp(52) : error C2143: syntax error : missing ';' before '*'
1>d:\ogresdk\nxogre\tutorials\nxtutorials\103.cpp(52) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\ogresdk\nxogre\tutorials\nxtutorials\103.cpp(52) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\ogresdk\nxogre\tutorials\nxtutorials\103.cpp(53) : error C2143: syntax error : missing ';' before '*'
1>d:\ogresdk\nxogre\tutorials\nxtutorials\103.cpp(53) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\ogresdk\nxogre\tutorials\nxtutorials\103.cpp(53) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\ogresdk\nxogre\tutorials\nxtutorials\103.cpp(56) : error C2143: syntax error : missing ';' before '*'
1>d:\ogresdk\nxogre\tutorials\nxtutorials\103.cpp(56) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\ogresdk\nxogre\tutorials\nxtutorials\103.cpp(56) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\ogresdk\nxogre\tutorials\nxtutorials\103.cpp(57) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\ogresdk\nxogre\tutorials\nxtutorials\103.cpp(63) : error C2065: 'mWorld' : undeclared identifier
1>d:\ogresdk\nxogre\tutorials\nxtutorials\103.cpp(63) : error C2061: syntax error : identifier 'world'
1>d:\ogresdk\nxogre\tutorials\nxtutorials\103.cpp(64) : error C2065: 'mScene' : undeclared identifier
1>d:\ogresdk\nxogre\tutorials\nxtutorials\103.cpp(64) : error C2227: left of '->createScene' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>d:\ogresdk\nxogre\tutorials\nxtutorials\103.cpp(66) : error C2227: left of '->hasGravityAndFloor' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>d:\ogresdk\nxogre\tutorials\nxtutorials\103.cpp(78) : error C2065: 'myCapsule' : undeclared identifier
1>d:\ogresdk\nxogre\tutorials\nxtutorials\103.cpp(78) : error C2227: left of '->createBody' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>d:\ogresdk\nxogre\tutorials\nxtutorials\103.cpp(82) : error C2061: syntax error : identifier 'capsuleShape'
1>d:\ogresdk\nxogre\tutorials\nxtutorials\103.cpp(86) : error C2143: syntax error : missing ';' before ')'
1>d:\ogresdk\nxogre\tutorials\nxtutorials\103.cpp(86) : error C2143: syntax error : missing ';' before ')'
1>d:\ogresdk\nxogre\tutorials\nxtutorials\103.cpp(133) : error C2065: 'myCuboid' : undeclared identifier
1>d:\ogresdk\nxogre\tutorials\nxtutorials\103.cpp(133) : error C2227: left of '->createBody' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>d:\ogresdk\nxogre\tutorials\nxtutorials\103.cpp(136) : error C2061: syntax error : identifier 'cubeShape'
1>d:\ogresdk\nxogre\tutorials\nxtutorials\103.cpp(144) : error C2143: syntax error : missing ';' before ')'
1>d:\ogresdk\nxogre\tutorials\nxtutorials\103.cpp(139) : error C3861: 'pose': identifier not found
1>d:\ogresdk\nxogre\tutorials\nxtutorials\103.cpp(144) : error C2143: syntax error : missing ';' before ')'
1>d:\ogresdk\nxogre\tutorials\nxtutorials\103.cpp(151) : error C2227: left of '->addEntity' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>d:\ogresdk\nxogre\tutorials\nxtutorials\103.cpp(152) : error C3861: 'pose': identifier not found
1>d:\ogresdk\nxogre\tutorials\nxtutorials\103.cpp(166) : error C2541: 'delete' : cannot delete objects that are not pointers
1>d:\ogresdk\nxogre\tutorials\nxtutorials\103.cpp(181) : error C2227: left of '->addForce' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>d:\ogresdk\nxogre\tutorials\nxtutorials\103.cpp(185) : error C2227: left of '->addForce' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>d:\ogresdk\nxogre\tutorials\nxtutorials\103.cpp(189) : error C2227: left of '->addForce' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>d:\ogresdk\nxogre\tutorials\nxtutorials\103.cpp(193) : error C2227: left of '->addForce' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>d:\ogresdk\nxogre\tutorials\nxtutorials\103.cpp(197) : error C2227: left of '->addForce' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>d:\ogresdk\nxogre\tutorials\nxtutorials\103.cpp(201) : error C2227: left of '->addForce' must point to class/struct/union/generic type
1> type is ''unknown-type''
1>d:\ogresdk\nxogre\tutorials\nxtutorials\103.cpp(230) : error C2065: 'SET_TERM_HANDLER' : undeclared identifier
1>Build log was saved at "file://d:\OgreSDK\NxOgre\tutorials\NxTutorials\VC8\Debug\BuildLog.htm"
1>103.Capsule, Local Pose and Centre of Mass - 98 error(s), 0 warning(s)



In simple_sample.cpp from http://www.ogre3d.org/wiki/index.php/NxOgre_Tutorial_Simple_Sample is the same:

1>NX_TEST.cpp
1>d:\documents and settings\p&a\moje dokumenty\visual studio 2005\projects\nx_test\nx_test\include\nx_test.h(63) :[b] error C2065: 'NodeRenderableParams' : undeclared identifier[/b]
1>d:\documents and settings\p&a\moje dokumenty\visual studio 2005\projects\nx_test\nx_test\include\nx_test.h(63) : error C2146: syntax error : missing ';' before identifier 'nrp'
1>d:\documents and settings\p&a\moje dokumenty\visual studio 2005\projects\nx_test\nx_test\include\nx_test.h(63) : error C2065: 'nrp' : undeclared identifier
1>d:\documents and settings\p&a\moje dokumenty\visual studio 2005\projects\nx_test\nx_test\include\nx_test.h(64) : error C2228: left of '.setToDefault' must have class/struct/union
1> type is ''unknown-type''
1>d:\documents and settings\p&a\moje dokumenty\visual studio 2005\projects\nx_test\nx_test\include\nx_test.h(65) : error C2228: left of '.mIdentifierUsage' must have class/struct/union
1> type is ''unknown-type''
1>d:\documents and settings\p&a\moje dokumenty\visual studio 2005\projects\nx_test\nx_test\include\nx_test.h(65) : error C3083: 'NodeRenderableParams': the symbol to the left of a '::' must be a type
1>d:\documents and settings\p&a\moje dokumenty\visual studio 2005\projects\nx_test\nx_test\include\nx_test.h(65) : error C2039: 'IU_Use' : is not a member of 'NxOgre'
1>d:\documents and settings\p&a\moje dokumenty\visual studio 2005\projects\nx_test\nx_test\include\nx_test.h(65) : error C2065: 'IU_Use' : undeclared identifier
1>d:\documents and settings\p&a\moje dokumenty\visual studio 2005\projects\nx_test\nx_test\include\nx_test.h(66) : error C2228: left of '.mIdentifier' must have class/struct/union
1> type is ''unknown-type''
1>d:\documents and settings\p&a\moje dokumenty\visual studio 2005\projects\nx_test\nx_test\include\nx_test.h(70) : error C2039: 'Body' : is not a member of 'NxOgre'
1>d:\documents and settings\p&a\moje dokumenty\visual studio 2005\projects\nx_test\nx_test\include\nx_test.h(70) : error C2065: 'Body' : undeclared identifier
1>d:\documents and settings\p&a\moje dokumenty\visual studio 2005\projects\nx_test\nx_test\include\nx_test.h(70) : error C2065: 'body' : undeclared identifier
1>d:\documents and settings\p&a\moje dokumenty\visual studio 2005\projects\nx_test\nx_test\include\nx_test.h(70) : error C2039: 'createBody' : is not a member of 'NxOgre::Scene'
1> d:\ogresdk\nxogre\sdk\nxogrescene.h(46) : see declaration of 'NxOgre::Scene'
1>d:\documents and settings\p&a\moje dokumenty\visual studio 2005\projects\nx_test\nx_test\include\nx_test.h(70) : error C2061: syntax error : identifier 'Cube'
1>d:\documents and settings\p&a\moje dokumenty\visual studio 2005\projects\nx_test\nx_test\include\nx_test.h(70) : error C2143: syntax error : missing ';' before ')'
1>d:\documents and settings\p&a\moje dokumenty\visual studio 2005\projects\nx_test\nx_test\include\nx_test.h(70) : error C2143: syntax error : missing ';' before ')'
1>d:\documents and settings\p&a\moje dokumenty\visual studio 2005\projects\nx_test\nx_test\include\nx_test.h(86) : error C2872: 'Real' : ambiguous symbol
1> could be 'd:\ogresdk\nxogre\sdk\nxogrestable.h(194) : float NxOgre::Real'
1> or 'd:\ogresdk\include\ogreprerequisites.h(120) : Ogre::Real'
1>d:\documents and settings\p&a\moje dokumenty\visual studio 2005\projects\nx_test\nx_test\include\nx_test.h(88) : error C2872: 'Real' : ambiguous symbol
1> could be 'd:\ogresdk\nxogre\sdk\nxogrestable.h(194) : float NxOgre::Real'
1> or 'd:\ogresdk\include\ogreprerequisites.h(120) : Ogre::Real'
1>d:\documents and settings\p&a\moje dokumenty\visual studio 2005\projects\nx_test\nx_test\include\nx_test.h(106) : error C2664: 'NxOgre::World::World(NxOgre::WorldPrototype *)' : cannot convert parameter 1 from 'const char [30]' to 'NxOgre::WorldPrototype *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>d:\documents and settings\p&a\moje dokumenty\visual studio 2005\projects\nx_test\nx_test\include\nx_test.h(113) : error C2661: 'NxOgre::World::createScene' : no overloaded function takes 3 arguments
1>Build log was saved at "file://d:\Documents and Settings\P&A\Moje dokumenty\Visual Studio 2005\Projects\NX_TEST\NX_TEST\obj\Debug\BuildLog.htm"
1>NX_TEST - 20 error(s), 0 warning(s)

what am I doing wrong ?

betajaen

22-03-2009 16:54:52

You should follow the BloodyMess tutorials by Spacegaier.

http://www.ogre3d.org/wiki/index.php/Bl ... Tutorial_1

OGL

22-03-2009 19:52:08

after some small difficulties I finally managed to connect everything :)

adorzhang

19-12-2009 11:47:44

Hi,
I'm a newbie ogre3d
I've the same problem with you, but i don't understand why ? Please tell me how to about fix it, (I installed NxOgre 1.5.5, ogre 1.6.4,PhyX v2.8.1)
Thanks !