NxOgre and compilation Problems

charlie

21-04-2006 19:51:38

I tried to build NxOgre with Visual Studio 8. I'm using the Ogre 1.2 RC2.

I'm using the CVS Version from yesterday. The Spoon release demos don't build at all.

However 2 demos didn't build (Output is below....). And all the others exit with an unhandled win32 exception.

Did I make a common mistake? I copied the Ogre DLLs into the release directory of NxOgre. That was all I did. Any ideas what could cause this problem?

The errorous compilation output:

------ Build started: Project: nxTutorial110 - Triggers, Configuration: Release Win32 ------
Compiling...
110.cpp
..\..\..\NxTutorials\110.cpp(50) : error C2039: 'createSystem' : is not a member of 'Ogre::ParticleSystemManager'
c:\ogre3d\ogrenew\ogremain\include\OgreParticleSystemManager.h(67) : see declaration of 'Ogre::ParticleSystemManager'
..\..\..\NxTutorials\110.cpp(64) : error C2039: 'destroySystem' : is not a member of 'Ogre::ParticleSystemManager'
c:\ogre3d\ogrenew\ogremain\include\OgreParticleSystemManager.h(67) : see declaration of 'Ogre::ParticleSystemManager'
Build log was saved at "file://c:\Ogre3D\NxOgre\scripts\VC8\NxTutorials\Release\BuildLog.htm"
nxTutorial110 - Triggers - 2 error(s), 0 warning(s)
------ Build started: Project: nxTutorialx06 - NxTurismo, Configuration: Release Win32 ------
Compiling...
x06.cpp
c:\Ogre3D\NxOgre\NxTutorials\Common\tutorialCar.h(198) : error C2065: 'mViewport' : undeclared identifier
c:\Ogre3D\NxOgre\NxTutorials\Common\tutorialCar.h(198) : error C2227: left of '->getWidth' must point to class/struct/union/generic type
c:\Ogre3D\NxOgre\NxTutorials\Common\tutorialCar.h(200) : error C2065: 'mTextInstructions' : undeclared identifier
c:\Ogre3D\NxOgre\NxTutorials\Common\tutorialCar.h(201) : error C2227: left of '->setCaption' must point to class/struct/union/generic type
type is ''unknown-type''
c:\Ogre3D\NxOgre\NxTutorials\Common\tutorialCar.h(201) : error C2065: 'instructions' : undeclared identifier
Build log was saved at "file://c:\Ogre3D\NxOgre\scripts\VC8\NxTutorials\Release\BuildLog.htm"
nxTutorialx06 - NxTurismo - 5 error(s), 0 warning(s)
========== Build: 0 succeeded, 2 failed, 29 up-to-date, 0 skipped ==========

betajaen

21-04-2006 21:46:10

Yep, I know about these. They aren't bugs, there just interface errors between the transition between Azaroth and Dagon.

If you really want to try out those demos, I'm sure you can modify them to work with Dagon. (It's only a few changes of lines) :D

charlie

21-04-2006 22:06:55

But what about the problem that the other demos aren't working. They are exiting with an unhandled win32 exeption. Is this a Ogre Version problem, too?

betajaen

21-04-2006 22:14:55

TBH, I haven't tried NxOgre with RC2 yet. Would you post any errors that come up, and the Ogre log?

charlie

22-04-2006 13:51:17

Here's the ogre log from starting the first tutorial:
What could be the problem when the message
14:36:01: [NxOgre] Unable to start PhysX SDK!appears?


Here's the full log:
14:35:58: Creating resource group General
14:35:58: Creating resource group Internal
14:35:58: Creating resource group Autodetect
14:35:58: Registering ResourceManager for type Material
14:35:58: Registering ResourceManager for type Mesh
14:35:58: Registering ResourceManager for type Skeleton
14:35:58: MovableObjectFactory for type 'ParticleSystem' registered.
14:35:58: Loading library OgrePlatform.dll
14:35:58: OverlayElementFactory for type Panel registered.
14:35:58: OverlayElementFactory for type BorderPanel registered.
14:35:58: OverlayElementFactory for type TextArea registered.
14:35:58: Registering ResourceManager for type Font
14:35:58: ArchiveFactory for archive type FileSystem registered.
14:35:58: ArchiveFactory for archive type Zip registered.
14:35:58: DevIL version: Developer's Image Library (DevIL) 1.6.5
14:35:58: DevIL image formats: bmp dib cut dcx dds gif ico cur jpg jpe jpeg lif mdl mng jng pcx pic pix png pbm pgm pnm ppm psd pdd psp pxr sgi bw rgb rgba tga vda icb vst tif tiff wal xpm raw
14:35:58: Registering ResourceManager for type HighLevelGpuProgram
14:35:58: Registering ResourceManager for type Compositor
14:35:58: MovableObjectFactory for type 'Entity' registered.
14:35:58: MovableObjectFactory for type 'Light' registered.
14:35:58: MovableObjectFactory for type 'BillboardSet' registered.
14:35:58: MovableObjectFactory for type 'ManualObject' registered.
14:35:58: MovableObjectFactory for type 'BillboardChain' registered.
14:35:58: MovableObjectFactory for type 'RibbonTrail' registered.
14:35:58: Loading library .\RenderSystem_Direct3D9
14:35:58: D3D9 : Direct3D9 Rendering Subsystem created.
14:35:58: D3D9: Driver Detection Starts
14:35:58: D3D9: Driver Detection Ends
14:35:58: Loading library .\RenderSystem_GL
14:35:58: OpenGL Rendering Subsystem created.
14:35:58: Loading library .\Plugin_ParticleFX
14:35:58: Particle Emitter Type 'Point' registered
14:35:58: Particle Emitter Type 'Box' registered
14:35:58: Particle Emitter Type 'Ellipsoid' registered
14:35:58: Particle Emitter Type 'Cylinder' registered
14:35:58: Particle Emitter Type 'Ring' registered
14:35:58: Particle Emitter Type 'HollowEllipsoid' registered
14:35:58: Particle Affector Type 'LinearForce' registered
14:35:58: Particle Affector Type 'ColourFader' registered
14:35:58: Particle Affector Type 'ColourFader2' registered
14:35:58: Particle Affector Type 'ColourImage' registered
14:35:58: Particle Affector Type 'ColourInterpolator' registered
14:35:58: Particle Affector Type 'Scaler' registered
14:35:58: Particle Affector Type 'Rotator' registered
14:35:58: Particle Affector Type 'DirectionRandomiser' registered
14:35:58: Particle Affector Type 'DeflectorPlane' registered
14:35:58: Loading library .\Plugin_BSPSceneManager
14:35:58: Registering ResourceManager for type BspLevel
14:35:58: Loading library .\Plugin_OctreeSceneManager
14:35:58: Loading library .\Plugin_CgProgramManager
14:35:58: *-*-* OGRE Initialising
14:35:58: *-*-* Version 1.2.0 (Dagon)
14:35:58: Creating resource group Bootstrap
14:35:58: Added resource location '../Media/overlays/' of type 'FileSystem' to resource group 'Bootstrap'
14:35:58: Added resource location '../Media/' of type 'FileSystem' to resource group 'General'
14:35:58: Added resource location '../Media/images/' of type 'FileSystem' to resource group 'General'
14:35:58: Added resource location '../Media/materials/' of type 'FileSystem' to resource group 'General'
14:35:58: Added resource location '../Media/meshes/' of type 'FileSystem' to resource group 'General'
14:35:58: Added resource location '../Media/particles/' of type 'FileSystem' to resource group 'General'
14:35:58: Added resource location '../Media/315/' of type 'FileSystem' to resource group 'General'
14:35:58: D3D9 : RenderSystem Option: Allow NVPerfHUD = No
14:35:58: D3D9 : RenderSystem Option: Anti aliasing = None
14:35:58: D3D9 : RenderSystem Option: Floating-point mode = Fastest
14:35:58: D3D9 : RenderSystem Option: Full Screen = No
14:35:58: D3D9 : RenderSystem Option: Rendering Device = NVIDIA GeForce4 Ti 4200 with AGP8X
14:35:58: D3D9 : RenderSystem Option: VSync = No
14:35:58: D3D9 : RenderSystem Option: Video Mode = 1024 x 768 @ 32-bit colour
14:36:01: D3D9 : Subsystem Initialising
14:36:01: D3D9RenderSystem::createRenderWindow "Tutorial 101 : Cube on a Plane", 1024x768 windowed miscParams: FSAA=0 FSAAQuality=0 colourDepth=32 useNVPerfHUD=false vsync=false
14:36:01: D3D9 : Created D3D9 Rendering Window 'Tutorial 101 : Cube on a Plane' : 1024x768, 32bpp
14:36:01: D3D9 : WARNING - disabling VSync in windowed mode can cause timing issues at lower frame rates, turn VSync on if you observe this problem.
14:36:01: Registering ResourceManager for type Texture
14:36:01: Registering ResourceManager for type GpuProgram
14:36:01: RenderSystem capabilities
14:36:01: -------------------------
14:36:01: * Hardware generation of mipmaps: yes
14:36:01: * Texture blending: yes
14:36:01: * Anisotropic texture filtering: yes
14:36:01: * Dot product texture operation: yes
14:36:01: * Cube mapping: yes
14:36:01: * Hardware stencil buffer: yes
14:36:01: - Stencil depth: 8
14:36:01: - Two sided stencil support: no
14:36:01: - Wrap stencil values: yes
14:36:01: * Hardware vertex / index buffers: yes
14:36:01: * Vertex programs: yes
14:36:01: - Max vertex program version: vs_1_1
14:36:01: * Fragment programs: yes
14:36:01: - Max fragment program version: ps_1_3
14:36:01: * Texture Compression: yes
14:36:01: - DXT: yes
14:36:01: - VTC: no
14:36:01: * Scissor Rectangle: yes
14:36:01: * Hardware Occlusion Query: yes
14:36:01: * User clip planes: no
14:36:01: * VET_UBYTE4 vertex element type: no
14:36:01: * Infinite far plane projection: no
14:36:01: * Hardware render-to-texture: yes
14:36:01: * Floating point textures: no
14:36:01: * Non-power-of-two textures: yes
14:36:01: * Volume textures: yes
14:36:01: * Multiple Render Targets: 1
14:36:01: * Point Sprites: yes
14:36:01: * Extended point parameters: yes
14:36:01: * Max Point Size: 8192
14:36:01: ***************************************
14:36:01: *** D3D9 : Subsystem Initialised OK ***
14:36:01: ***************************************
14:36:01: ResourceBackgroundQueue - threading disabled
14:36:01: Particle Renderer Type 'billboard' registered
14:36:01: Creating viewport on target 'Tutorial 101 : Cube on a Plane', rendering from camera 'PlayerCam', relative dimensions L: 0.00 T: 0.00 W: 1.00 H: 1.00 ZOrder: 0
14:36:01: Viewport for camera 'PlayerCam', actual dimensions L: 0 T: 0 W: 1024 H: 768
14:36:01: Parsing scripts for resource group Autodetect
14:36:01: Finished parsing scripts for resource group Autodetect
14:36:01: Parsing scripts for resource group Bootstrap
14:36:01: Parsing script OgreCore.material
14:36:01: Parsing script OgreProfiler.material
14:36:01: Parsing script Ogre.fontdef
14:36:01: Parsing script OgreDebugPanel.overlay
14:36:01: Texture: nx.gui.center.png: Loading 1 faces(PF_A8B8G8R8,16x16x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,16x16x1.
14:36:01: Font TrebuchetMSBoldusing texture size 512x512
14:36:01: Info: Freetype returned null for character 160 in font TrebuchetMSBold
14:36:01: Texture: TrebuchetMSBoldTexture: Loading 1 faces(PF_BYTE_LA,512x512x1) with 0 generated mipmaps from Image. Internal format is PF_BYTE_LA,512x512x1.
14:36:01: Bad element attribute line: 'right 2' for element nx.gui.logo in overlay Core/DebugOverlay
14:36:01: Texture: nx.gui.logo.png: Loading 1 faces(PF_A8B8G8R8,64x64x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,64x64x1.
14:36:01: Bad element attribute line: 'right 2' for element nx.gui.instructions in overlay Core/DebugOverlay
14:36:01: D3D9 : ***** Dimensions altered by the render system
14:36:01: D3D9 : ***** Source image dimensions : 196x196
14:36:01: D3D9 : ***** Texture dimensions : 256x256
14:36:01: Texture: controls1.png: Loading 1 faces(PF_A8B8G8R8,196x196x1) with 8 generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
14:36:01: Parsing script OgreLoadingPanel.overlay
14:36:01: Texture: New_Ogre_Border_Center.png: Loading 1 faces(PF_A8B8G8R8,256x128x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
14:36:01: Texture: New_Ogre_Border.png: Loading 1 faces(PF_A8B8G8R8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
14:36:01: Finished parsing scripts for resource group Bootstrap
14:36:01: Parsing scripts for resource group General
14:36:01: Parsing script heightmap.material
14:36:01: Parsing script nx.grid.material
14:36:01: Parsing script nx.particles.material
14:36:01: Parsing script nx.shapes.material
14:36:01: Error in material nx.raycaster at line 116 of nx.shapes.material: Bad specular attribute, wrong number of parameters (expected 2, 4 or 5)
14:36:01: Error in material nx.crosshair at line 131 of nx.shapes.material: Bad specular attribute, wrong number of parameters (expected 2, 4 or 5)
14:36:01: Parsing script nx.stairs.material
14:36:01: Parsing script nx.track.material
14:36:01: Parsing script nx.zones.material
14:36:01: Parsing script nature.cloud_dome.material
14:36:01: Parsing script nx.315.material
14:36:01: Parsing script nx6.material
14:36:01: Parsing script Scene.material
14:36:01: Parsing script nx.particles.particle
14:36:01: Finished parsing scripts for resource group General
14:36:01: Parsing scripts for resource group Internal
14:36:01: Finished parsing scripts for resource group Internal
14:36:01: Win32Input8: DirectInput Activation Starts
14:36:01: Win32Input8: Establishing keyboard input.
14:36:01: Win32Input8: Keyboard input established.
14:36:01: Win32Input8: Initializing mouse input in immediate mode.
14:36:01: Win32Input8: Mouse input in immediate mode initialized.
14:36:01: Win32Input8: DirectInput OK.
14:36:01: Texture: nx.grid.floor.png: Loading 1 faces(PF_A8B8G8R8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,512x512x1.
14:36:01: Texture: nx.grid.axis.png: Loading 1 faces(PF_A8B8G8R8,1024x1024x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,1024x1024x1.
14:36:01: [NxOgre] NxOgre Log started.
14:36:01: [NxOgre] Starting up PhysX SDK
14:36:01: [NxOgre] Unable to start PhysX SDK!
14:36:01: [NxOgre] Creating scene 'Main'.

betajaen

22-04-2006 18:39:54

Hmm. That is definitely a PhysX issue. I would recommend reinstalling it, also it tends to push the PPU drivers when it installs it. Don't let it.

charlie

23-04-2006 11:56:46

I have reinstalled it. No change. THe installation directory of PhsX is C:\Ogre3d\Novodex, Ogre is installed under C:\Ogre3d\ogrenew and NxOgre under C:\Ogre3d\NxOgre, as written in the readme. May it be a problem that I have first installed PhsX errorous under C:\Programs\Ageia\.... When I noticed the mistake I unistalled it using the uninstaller and reinstalled it to the previous mentioned location.
Any idea how I can solve this problem? I though the installation should be independend because it has nothing todo with all the stuff, as long as it compiles. It's simply about dll, libs and headers... What could cause this strange behavior?

betajaen

23-04-2006 13:20:41

I really don't know. This is the following code that generates that error:-


mPhysicsSDK = NxCreatePhysicsSDK(NX_PHYSICS_SDK_VERSION);


if(!mPhysicsSDK) {
Ogre::LogManager::getSingleton().logMessage("[NxOgre] Unable to start PhysX SDK!");
return;
}


I wonder if the DLL in your NxOgre /bin/Release folder is a different version to the one you have installed or using to compile NxOgre with?

charlie

24-04-2006 07:41:44

For sure they are the same. I have only one Version of PhsX. It's the community release of 2.3.2 from the ageia homepage.

Hmm, really strange

SFAOK

11-05-2006 18:17:35

I'm having exactly the same problems - the Dagon Ogre release and the latest (non CVS) release of NxOgre compile without any errors. But when I run any of the demos they crash, with the last message in the console being :

[NxOgre] Unable to start PhysX SDK!

Is there a solution to this? :?

betajaen

11-05-2006 18:31:13

Check if you have multiple copies of it anywhere, or you were pestered by the installer to install the PPU driver.

It's a PhysX issue and nothing to do with NxOgre. See if any of the PhysX demos work.

SFAOK

12-05-2006 14:43:36

Yup - fixed it. I just needed to download the extra (now manditory) 'SystemSoftware'. Worked fine after that. Thanks for the help!

celic

12-05-2006 14:59:57

Yup - fixed it. I just needed to download the extra (now manditory) 'SystemSoftware'. Worked fine after that. Thanks for the help!

Could you please explain which software have you installed? Maybe someone else will have same problems :?
Which version of PhysX SDK are you using?

SFAOK

12-05-2006 15:19:41

Yup - fixed it. I just needed to download the extra (now manditory) 'SystemSoftware'. Worked fine after that. Thanks for the help!

Could you please explain which software have you installed? Maybe someone else will have same problems :?
Which version of PhysX SDK are you using?

I'm using PhysX SDK version 2.3.3 at the moment. If you go to the Ageia support centre:

http://support.ageia.com/ics/support/de ... eptID=1949

(Note : Click on Downloads)

You will see the software that needs installing. Its labelled as MUST_INSTALL. Oops! :D