trouble building nxogre

jchmack

01-11-2006 23:42:12

1>------ Build started: Project: nxOgre, Configuration: Release Win32 ------
1>Compiling...
1>nxOgre_body.cpp
1>..\source\nxOgre_body.cpp(68) : error C2039: 'hasSceneNode' : is not a member of 'Ogre::SceneManager'
1> c:\ogresdk\include\OgreSceneManager.h(149) : see declaration of 'Ogre::SceneManager'
1>..\source\nxOgre_body.cpp(163) : error C2039: 'hasSceneNode' : is not a member of 'Ogre::SceneManager'
1> c:\ogresdk\include\OgreSceneManager.h(149) : see declaration of 'Ogre::SceneManager'
1>..\source\nxOgre_body.cpp(259) : error C2039: 'hasSceneNode' : is not a member of 'Ogre::SceneManager'
1> c:\ogresdk\include\OgreSceneManager.h(149) : see declaration of 'Ogre::SceneManager'
1>Build log was saved at "file://C:\Documents and Settings\Julius Abella\Desktop\game4\NxOgre\compiler\NxOgre.VC8\Release\obj\BuildLog.htm"
1>nxOgre - 3 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

any ideas?

edit:
I know that has scene node was changed to something else in a later version of ogre

betajaen

01-11-2006 23:46:34

Are you using Azaroth?

jchmack

01-11-2006 23:48:36

Are you using Azaroth?

no dagon 1.2.3

betajaen

01-11-2006 23:50:54

Weird. Dagon has the hasSceneNode function.

Your copy must be one of the older versions.

jchmack

01-11-2006 23:52:48

Weird. Dagon has the hasSceneNode function.

Your copy must be one of the older versions.


bah i think its still linking to the older SDK i have installed

jchmack

02-11-2006 00:01:02

sigh was linking to ogrenew not ogremain

jchmack

02-11-2006 00:14:33

i got NxOgre to build

Now im trying to run the tutorials i DLed from here:
http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=2614

They Build alright but when i tried to run them... at first i had the error cant' find ogremain.dll but i changed the working directory to the ogre bin. Now it cant find NxCharacter.dll. Where can i find this?

edit
bah was looking in NxOgre not in novodex i found it and copied it (and a few other dlls) in my working directory but now its throwing an exception:

First-chance exception at 0x7c812a5b in nxTutorial101.exe: Microsoft C++ exception: Ogre::Exception at memory location 0x0012fc80..
The program '[3364] nxTutorial101.exe: Native' has exited with code 0 (0x0).

i think im not linking something dumb...

edit2:
its crashing because i dont have the resouces.cfg file and the config.yaml files...

is there a way i can tell the compiler to find dlls in directories other than the working directory?

betajaen

02-11-2006 10:27:13

Alright. Make sure the tutorials directory is inside the NxOgre directory.

The resources.cfg and config.yaml files come inside the tutorials, if your trying to run the program through Visual Studio as Debug; I've never got it to run that way.

You'll have to do it the old fashioned way and just run it via explorer.

Unless someone else has an idea.

jchmack

02-11-2006 10:34:20

ok i am running it inside explorer as an exe now an just adding the .dlls each time ogre crashes asking for one.

edit:

ok i got ogre to open up after adding all the dlls needed and now it starts up shows me a loading screen then crashes asking for an error report.

nx log is blank
and ogre log:

04:48:58: ***************************************
04:48:58: *** D3D9 : Subsystem Initialised OK ***
04:48:58: ***************************************
04:48:58: ResourceBackgroundQueue - threading disabled
04:48:58: Particle Renderer Type 'billboard' registered
04:48:58: Creating viewport on target 'NxOgre: 101 - Cube on a plane', rendering from camera 'MainCamera', relative dimensions L: 0.00 T: 0.00 W: 1.00 H: 1.00 ZOrder: 0
04:48:58: Viewport for camera 'MainCamera', actual dimensions L: 0 T: 0 W: 1024 H: 768
04:48:58: Parsing scripts for resource group Autodetect
04:48:58: Finished parsing scripts for resource group Autodetect
04:48:58: Parsing scripts for resource group Bootstrap
04:48:58: Parsing script gui.material
04:48:58: Parsing script boot.material
04:48:58: Parsing script instructions.material
04:48:58: Parsing script nx.bodyguide.material
04:48:58: Parsing script Ogre.fontdef
04:48:58: Finished parsing scripts for resource group Bootstrap
04:48:58: Parsing scripts for resource group General
04:48:58: Parsing script nx.floor.material
04:48:58: Parsing script nx.floor2.material
04:48:58: Parsing script nx.particles.material
04:48:58: Parsing script 312.material
04:48:58: Parsing script 313.material
04:48:58: Parsing script arrows.material
04:48:58: Parsing script chair.material
04:48:58: Parsing script int.material
04:48:58: Parsing script nx.interior1.material
04:48:58: Parsing script nx.stairs.material
04:48:58: Parsing script set.material
04:48:58: Parsing script nx.shapes.material
04:48:58: Parsing script nx.particles.particle
04:48:58: Finished parsing scripts for resource group General
04:48:58: Parsing scripts for resource group Internal
04:48:58: Finished parsing scripts for resource group Internal
04:48:58: Texture: any.jpg: Loading 1 faces(PF_B8G8R8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
04:48:58: Texture: gui_loading_notice.png: Loading 1 faces(PF_A8B8G8R8,128x32x1) with hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,128x32x1.
04:48:58: Win32Input8: DirectInput Activation Starts
04:48:58: Win32Input8: Establishing keyboard input.
04:48:58: Win32Input8: Keyboard input established.
04:48:58: Win32Input8: Initializing mouse input in immediate mode.
04:48:58: Win32Input8: Mouse input in immediate mode initialized.
04:48:58: Win32Input8: DirectInput OK.
04:48:58: Texture: arrow.png: Loading 1 faces(PF_A8B8G8R8,32x32x1) with hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,32x32x1.
04:48:58: Texture: gui_pause.png: Loading 1 faces(PF_A8B8G8R8,128x128x1) with hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,128x128x1.
04:48:58: Font nxogrefontusing texture size 512x512
04:48:58: Info: Freetype returned null for character 160 in font nxogrefont
04:48:58: Texture: nxogrefontTexture: Loading 1 faces(PF_BYTE_LA,512x512x1) with 0 generated mipmaps from Image. Internal format is PF_BYTE_LA,512x512x1.
04:48:58: Mesh: Loading nx.bodyguide.mesh.
04:48:58: Texture: bodyguide1m.png: Loading 1 faces(PF_A8B8G8R8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_A8B8G8R8,256x256x1.
04:48:58: WARNING: Mesh instance 'NxOgre.ErrorCube' was defined as manually loaded, but no manual loader was provided. This Resource will be lost if it has to be reloaded.

i have the "cube.1m.mesh" that is referenced in tutorial 101 in the media folder unzipped. But i still think its a problem finding a resource

VS8 says this when it crashes:
Unhandled exception at 0x00595e77 (NxOgre.dll) in nxTutorial101.exe: 0xC0000005: Access violation reading location 0x00000000.

betajaen

02-11-2006 11:47:24

Your not meant to unzip the resources, or touch them. NxOgre works out of the box with quite easily if you just follow the install instructions.

Let's go through this step by step:

  1. Make sure all the three required environmental variables are setup correctly. (OGRE_HOME, NXOGRE_DIR, and PHYSX_DIR). You probably have. But check anyway.[/*:m]
  2. Delete your NxOgre directory you have created.[/*:m]
  3. Unzip the NxOgre.0.4RC2.zip to the parent directory of NXOGRE_DIR[/*:m]
  4. Unzip the NxOgre.0.4RC2.tutorials.zip[/*:m]
  5. Move the tutorials directory into the NxOgre directory[/*:m]
  6. Copy all of the DLL's from ogrenew/samples/common/bin/Release or Debug/ into NxOgre/tutorials/[/*:m]
  7. Copy NxCharacter.dll, NxCooking.dll, NxExtensions.dll and PhysXLoader.dll from PhysX/Bin/Win32/[/*:m]
  8. Compile NxOgre as Release or Debug[/*:m]
  9. Compile Tutorial 101 as Release or Debug[/*:m]
  10. Open explorer.[/*:m]
  11. Run NxOgre/Tutorials/NxTutorial101[/*:m][/list:u]

jchmack

02-11-2006 16:50:34

ok i reinstalled EVERYTHING like u reccomended but im still having the same problem. Im trying to just run the PhysX tutorials in their bin(v2.6.0\Bin\win32) but it looks like im having the same crash. Im thinking i didn't install the PhysXdriver but i dont see where it prompts me to do so... im using version 2.6.0

edit:

ok i got the tutorials working thx for all the help. Guess i was expecting the PhysX install to prompt me for the driver :oops: . but thx again :D

betajaen

02-11-2006 16:52:57

http://www.ageia.com/drivers/drivers.html