NxOgre in header file thrown an error.

ahmadi

30-03-2006 19:45:46

hi betejaen
from my last problem in nxogre compiling .
http://www.ogre3d.org/phpBB2/viewtopic. ... eclaration
i want know also i can not compile nxogre in debug mode?
because i have also error : :oops:

1>------ Build started: Project: Demo_oSceneLoader, Configuration: Debug Win32 ------
1>Compiling...
1>oSceneLibDemo.cpp
1>d:\dev\novodex\sdks\foundation\include\nxuserallocator.h(381) : error C2143: syntax error : missing ';' before '.'
1>d:\dev\novodex\sdks\foundation\include\nxuserallocator.h(381) : error C2838: 'sMemManager' : illegal qualified name in member declaration
1>d:\dev\novodex\sdks\foundation\include\nxuserallocator.h(381) : error C2238: unexpected token(s) preceding ';'

...
\downloads\ogre\3dsmax\LIB\oSceneLoader_demo_azathoth\oSceneLoader_demo\obj\Debug\BuildLog.htm"
1>Demo_oSceneLoader - 96 error(s), 2 warning(s)

ahmadi

30-03-2006 20:19:49

** i must say you that i have this error only when i use nxogre in a header file.it mean that i have not any problem for running your code in a cpp file.

betajaen

30-03-2006 23:10:16

You're doing this right?


#include <NxOgre.h>
#include <Ogre.h>

ahmadi

30-03-2006 23:34:17

You're doing this right?


#include <NxOgre.h>
#include <Ogre.h>


code is your tutorial311 code.

betajaen

30-03-2006 23:47:09

You're doing this right?


#include <NxOgre.h>
#include <Ogre.h>


code is your tutorial311 code.


You're compiling 311, and you're getting those errors!?

ahmadi

31-03-2006 00:03:28

You're doing this right?


#include <NxOgre.h>
#include <Ogre.h>


code is your tutorial311 code.


You're compiling 311, and you're getting those errors!?

no , sorry its 301,
sorry

ahmadi

31-03-2006 00:25:22

my error is in this line of ogrememorymanager.h:
inline void operator delete(void *reportedAddress)
{
Ogre::MemoryManager::sMemManager.op_del_sc( reportedAddress, gProcessID );
}
its my ogre.log after error:

03:31:32: Win32Input8: Mouse input in immediate mode initialized.
03:31:32: Win32Input8: DirectInput OK.
03:31:32: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: OverlayManager::getOverlayElementImpl
Description: OverlayElement with name nx.gui.stats.fps not found..
File: d:\dev\ogrenew\ogremain\src\ogreoverlaymanager.cpp
Line: 680
Stack unwinding: <<beginning of stack>>




also its my resource.cfg:




# Resource locations to be added to the 'boostrap' path
# This also contains the minimum you need to use the Ogre example framework
[Bootstrap]
Zip=../../../Media/packs/OgreCore.zip

# Resource locations to be added to the default path
[General]
FileSystem=D:\dev\NxOgre\scripts\VC8\NxTutorials\Media
FileSystem=D:\models\osm
FileSystem=../../../Media
FileSystem=../../../Media/fonts
FileSystem=../../../Media/materials/programs
FileSystem=../../../Media/materials/scripts
FileSystem=../../../Media/materials/textures
FileSystem=../../../Media/models
FileSystem=../../../Media/overlays
FileSystem=../../../Media/particle
FileSystem=../../../Media/gui
Zip=../../../Media/packs/cubemap.zip
Zip=../../../Media/packs/cubemapsJS.zip
Zip=../../../Media/packs/dragon.zip
Zip=../../../Media/packs/fresneldemo.zip
Zip=../../../Media/packs/ogretestmap.zip
Zip=../../../Media/packs/skybox.zip




also you must know that after adding your folder that is contain nx.gui.stats.fps file, i have new error that if u want i can post here

betajaen

31-03-2006 09:06:25

A few questions first:

-What version of NxOgre are you using?
-What version of Ogre are you using?
-Are you compiling it in Release or Debug?

ahmadi

31-03-2006 10:20:07

A few questions first:

-What version of NxOgre are you using?
-What version of Ogre are you using?
-Are you compiling it in Release or Debug?

im in debug mode
My Ogre=ogre-win32-v1-0-6.zip and also OgreSDKSetup1.2.0_RC1_VC80.exe
My NxOgre =Version: 0.5.Preview 2.0 "Holiday Edition"

betajaen

31-03-2006 15:11:36

Alright. First of all, Debug mode is not safe with NxOgre; Always use Release mode, most of the problems with NxOgre come with that.

Second, I urge you to upgrade to Dagon RC1 and at least Preview 3.0 (possibly even the CVS). If I remember correctly you're on a modem connection so it may take some time, but it is worth it.

ahmadi

31-03-2006 22:48:14

please see http://www.ogre3d.org/wiki/index.php/Da ... er_Changes , u must fix nxogre 0.5 R3

1>d:\dev\nxogre\nxtutorials\common\tutorialcar.h(134) : error C2664: 'Ogre::Root::getSceneManager' : cannot convert parameter 1 from 'Ogre::SceneType' to 'const Ogre::String &'
1> Reason: cannot convert from 'Ogre::SceneType' to 'const Ogre::String'
1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
1>Build log was saved at "file://d:\dev\NxOgre\scripts\VC8\NxTutorials\Debug\BuildLog.htm"
1>nxTutorialx06 - NxTurismo - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

its your code that have error :

void chooseSceneManager(void) {
mSceneMgr = mRoot->getSceneManager(ST_GENERIC);
}



you must know that in ogre 1.2 , name of getSceneManager changed to createSceneManager, and i was fixed it.
now i have nxogre in release mode and i can compile nxogre demos.
but my ogre log say:

Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named view_position.
File: e:\projects\ogrecvs\branches\dagon_vc8_clean\ogrenew\ogremain\src\ogregpuprogram.cpp
Line: 768
Stack unwinding: <<beginning of stack>>
04:49:25: An exception has been thrown!

betajaen

01-04-2006 10:14:56

I know about the scene manager changes, in fact I embrace them. I just forgot to alter the NxTutorialx06 and a few others.

As you have a Preview 3 error there, I assume everything is successful now?

ahmadi

01-04-2006 14:38:06

I know about the scene manager changes, in fact I embrace them. I just forgot to alter the NxTutorialx06 and a few others.

As you have a Preview 3 error there, I assume everything is successful now?

i have only this error in ogre.log :

Error #: 7
Function: GpuProgramParameters::getParamIndex
Description: Cannot find a parameter named view_position.
File: e:\projects\ogrecvs\branches\dagon_vc8_clean\ogrenew\ogremain\src\ogregpuprogram.cpp
Line: 768
Stack unwinding: <<beginning of stack>>
04:49:25: An exception has been thrown!

betajaen

01-04-2006 15:02:45

Ignore it, it's not an error. :D

ahmadi

01-04-2006 15:25:07

Ignore it, it's not an error. :D

but after closing ogre rendering window i have an error :

"...the app want teminate from an unusual way..."

ahmadi

01-04-2006 21:16:20

Maybe u dont want answer me? :cry: :cry: :(

betajaen

01-04-2006 21:27:06

Which tutorial crashes? And is it in release?

ahmadi

01-04-2006 21:38:57

Which tutorial crashes? And is it in release?
all tutorial are crashes, im testing 104
im in debug mode.
Are u sure that its impossible to i use NxOgre in debug mode.
for debuging my project i need debug mode. maybe u want say that i never need it :shock:

the only error that i have in debug mode is
http://www.ogre3d.org/phpBB2/viewtopic. ... 766#138766

betajaen

01-04-2006 21:57:09

Yes. The reason why it crashes is because it compiled in Debug mode.

There is no way around it, PhysX is compiled in release, and NxOgre and Ogre in debug, there are obvious incompatibilities there.

You have to use NxOgre and Ogre in release.

ColeZero

01-06-2006 19:29:35

Same here:
>d:\dev\novodex\sdks\foundation\include\nxuserallocator.h(381) : error C2143: syntax error : missing ';' before '.'
1>d:\dev\novodex\sdks\foundation\include\nxuserallocator.h(381) : error C2838: 'sMemManager' : illegal qualified name in member declaration


I've finally compiled all the NxOgre Demos, but if i try to compile my own Demo, these errors appears if i select Debug, but i can compile the samples in debug mode from nxOgre.

So i decided to use realease mode, there are now some other errors
Fehler 1 error C2872: 'Controller': Mehrdeutiges Symbol ..AGEIA PhysX SDK\v2.3.3\SDKs\NxCharacter\include\ControllerManager.h 49

Sorry but its in German..^^

ColeZero

01-06-2006 19:35:09

oK biG SORRY i fixed it.. i've read the thread:http://www.ogre3d.org/phpBB2addons/viewtopic.php?p=4571&sid=e65d28c3752099b181b3bcd603430cac
Now every thing works fine..sorry
I must learn to use google or any other search-engine..

betajaen

01-06-2006 21:29:27

No problem. Glad you have it sorted.