Problems compiling OgreNewt_Main!

sebastieng

17-04-2006 17:37:14

When im trying to compile OgreNewt_Main, i get the following errors:

c:\OgreSDK\ogreaddons\OgreNewt_Main\src\OgreNewt_World.cpp(89): error C2100: illegal indirection
c:\OgreSDK\ogreaddons\OgreNewt_Main\src\OgreNewt_Body.cpp(184): error C2666: 'Ogre::operator`!='' : 4 overloads have similar conversions
c:\OgreSDK\ogreaddons\OgreNewt_Main\src\OgreNewt_Body.cpp(200): error C2666: 'Ogre::operator`!='' : 4 overloads have similar conversions


:cry:

walaber

17-04-2006 17:52:42

what compiler are you using?

sebastieng

17-04-2006 17:56:59

Microsoft Visual Studio 2003.NET and i downloaded OgreNewt from your website last night.

sebastieng

17-04-2006 18:09:02

Well i just got the CVS update, and it works fine. I guess there was something wrong with the OgreNewt version that i downloaded last night.
Thanks anyways :)

Project5

17-04-2006 21:44:04

I'm having the same issue here too, downloaded from your web site and not cvs.

VC 8 standard.

That'll teach me not to download from cvs :-)

EDIT:
CVS is the last version without boost.

--Ben

P_v

17-04-2006 23:07:05

Same thing here using the .rar from the website and VC++ 8 express. Get 9 errors in total, here are the unique ones:

OgreNewt_BasicFrameListener.cpp
exampleframelistener.h(256) : error C2039: 'setDetailLevel' : is not a member of 'Ogre::Camera'

exampleframelistener.h(256) : error C2065: 'SDL_SOLID' : undeclared identifier

exampleframelistener.h(257) : error C2065: 'SDL_WIREFRAME' : undeclared identifier

exampleframelistener.h(258) : error C2065: 'SDL_POINTS' : undeclared identifier

OgreNewt_Body.cpp
ogrenewt_body.cpp(184) : error C2666: 'Ogre::operator !=' : 4 overloads have similar conversions

OgreNewt_World.cpp
ogrenewt_world.cpp(89) : error C2100: illegal indirection

P_v

17-04-2006 23:18:43

Found a post here saying to delete the ExampleFrameListener.h and ExampleApplication.h from /OgreNewt/demos/include. That worked to clear up the SDL_* and setDetailLevel errors but I still have the other two, as mentioned by the OP.

walaber

18-04-2006 00:16:43

okay, I think I forgot to update a few files in the binary on my website.

I have re-uploaded, please re-download and try compiling again!

sorry about that! hopefully this fixes it.

Project5

18-04-2006 20:29:28

Ok, just got the latest version off your web site, and go to open one of my projects with it.

Then VC 8 tells me that OgreNewt_Main.vcproj will not open, without a reason. Same with the version for 7.1. Something may have gotten corrupted in those two files because your old vcproj files worked fine.

I just copied over the old (fastdelegate version) project file and made sure that all the new .h and .cpp files were present, compiled, and there were only six errors.

Those errors were in your exapleframelistener class when the user wants to switch the rendering from polygons / wireframe / dots. It calls mCamera->setDetailLevel() when it should be calling mCamera->setPolygonMode(), and the enums should be prefixed with PM_ instead of SDL_.

With those changes, everything compiles fine. I'm moving my projects over to boost::bind right now, and will let you know if it functions correctly :-)

EDIT:
once you follow those steps, everything works fine :-)

--Ben

walaber

19-04-2006 00:34:40

like I said above, the example*.hpp files have been removed from OgreNewt for a while now. the reason people have problems is that they extract the new OgreNewt files over there old ones, and so removed files never get deleted.

if you start from scratch with either the current CVS or the version on my website, it should all work fine now.

Project5

19-04-2006 02:20:53

I actually started with an empty directory when I ran into those problems.

To verify, I downloaded OgreNewt from your website just now:
http://walaber.com/misc/OgreNewt.rar

And unrared it to my desktop.

In directory:
\OgreNewt\demos\Include\

There exists:
exampleApplication.h
exampleFrameListener.h


and starting on line 256 of exampleFrameListener.h:
case 0 : mCamera->setDetailLevel(SDL_SOLID) ; break ;
case 1 : mCamera->setDetailLevel(SDL_WIREFRAME) ; break ;
case 2 : mCamera->setDetailLevel(SDL_POINTS) ; break ;


So let me know what I should do differently for an easier install :-)

--Ben

walaber

19-04-2006 06:21:48

whoops! I made the same mistake I talked about above. when I made the zip, I took an old zip and just overwrote the new files, I forgot to remove those.

I have uploaded a new version that has those 2 files removed. sorry for the confusion!!!