OgreNewt and Visual C++ 2005 express Edition

spline

03-04-2006 11:16:07

Hi

has anyone compiled ogrenewt using Visual C++ 2005 express Edition and platform sdk, i would be greatfull for any help, these are the errors im getting

------ Rebuild All started: Project: OgreNewt_Main, Configuration: Release Win32 ------
Deleting intermediate and output files for project 'OgreNewt_Main', configuration 'Release|Win32'
Compiling...
OgreNewt_World.cpp
OgreNewt_Vehicle.cpp
OgreNewt_TreeCollisionSerializer.cpp
OgreNewt_Tools.cpp
OgreNewt_RayCast.cpp
.\src\OgreNewt_RayCast.cpp(83) : warning C4018: '>' : signed/unsigned mismatch
OgreNewt_MaterialPair.cpp
OgreNewt_MaterialID.cpp
OgreNewt_Joint.cpp
OgreNewt_Debugger.cpp
OgreNewt_ContactCallback.cpp
OgreNewt_CollisionPrimitives.cpp
.\src\OgreNewt_CollisionPrimitives.cpp(384) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
.\src\OgreNewt_CollisionPrimitives.cpp(430) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
OgreNewt_Collision.cpp
OgreNewt_Body.cpp
OgreNewt_BasicJoints.cpp
OgreNewt_BasicFrameListener.cpp
c:\programming\ogre\orgeaddons\OgreNewt\demos\Include\ExampleFrameListener.h(256) : error C2039: 'setDetailLevel' : is not a member of 'Ogre::Camera'
c:\programming\ogre\ogrenew\ogremain\include\OgreCamera.h(76) : see declaration of 'Ogre::Camera'
c:\programming\ogre\orgeaddons\OgreNewt\demos\Include\ExampleFrameListener.h(256) : error C2065: 'SDL_SOLID' : undeclared identifier
c:\programming\ogre\orgeaddons\OgreNewt\demos\Include\ExampleFrameListener.h(257) : error C2039: 'setDetailLevel' : is not a member of 'Ogre::Camera'
c:\programming\ogre\ogrenew\ogremain\include\OgreCamera.h(76) : see declaration of 'Ogre::Camera'
c:\programming\ogre\orgeaddons\OgreNewt\demos\Include\ExampleFrameListener.h(257) : error C2065: 'SDL_WIREFRAME' : undeclared identifier
c:\programming\ogre\orgeaddons\OgreNewt\demos\Include\ExampleFrameListener.h(258) : error C2039: 'setDetailLevel' : is not a member of 'Ogre::Camera'
c:\programming\ogre\ogrenew\ogremain\include\OgreCamera.h(76) : see declaration of 'Ogre::Camera'
c:\programming\ogre\orgeaddons\OgreNewt\demos\Include\ExampleFrameListener.h(258) : error C2065: 'SDL_POINTS' : undeclared identifier
Generating Code...
Build log was saved at "file://c:\programming\ogre\orgeaddons\OgreNewt\OgreNewt_Main\obj\Release\BuildLog.htm"
OgreNewt_Main - 6 error(s), 3 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

thanks

nathanwilliams6

03-04-2006 11:20:53

what version of ogre are you using ?

i had the same problem, i was using version 1.2 of ogre.

basically, the ogrenewt was using a version of ExampleFrameListener in its demos, that was from the OgreNewt\demos\include\ direcotry.

these files are old, and wont work with the new interface of ogre.

i solved it by moving the files from demos\includes, into a new subdirectory called old (so the compiler cant find them), then i made sure that teh ogrenew\Samples\Common\include directory was included in the additional include directorys.

thus, ogrenewt examples, used the newer ExampleFrameListener, provided with ogre 1.2

hope this helps

spline

03-04-2006 15:16:32

that works a treat thanks for you help