[Solve]'OgreNewt_Main.lib'(And turn off automaticly problem)

wilsonwing

11-07-2008 04:09:48

Hello.
I've compiled all the Demos in the OgreNewt without any problem.
Now I am trying to make my own project.
I copied the code from Demo01_TheBasics to my project.

Under debug mode, it can be compiled.
But when running it, there's only black screen and then quit automaticly.

Under release mode, I have this:
1>LINK : fatal error LNK1181: cannot open input file 'OgreNewt_Main.lib'
I have read the forum and saw someone said that I should compiled the OgreNewt_Main.
I compiled it and then there jumped out a IE window.
I can't find OgreNewt_Main.lib in the folder.(Only OgreNewt_Main_d.dll in the debug_dll folder, the one I use for the Debug mode. )

I've read the forum and solved most problems, this should be the last one.
Please help me :(
I really want to try the OgreNewton!

walaber

11-07-2008 06:06:55

make sure you set the IDE to "release" mode, and then recompile OgreNewt_Main...

wilsonwing

11-07-2008 06:40:07

make sure you set the IDE to "release" mode, and then recompile OgreNewt_Main...
Thanks for reply.
I compiled it and had my OgreNewt_Main.lib
But still doesn't work.
Still has LINK : fatal error LNK1181: cannot open input file 'OgreNewt_Main.lib'
Where should I put the .lib.
Or did I missed something?

Edit:
I've solve it by adding the exacte path to Library Directory.
But when I run the program.
It has only black screen, and turn offed automaticly after a few seconds.
It should be the same as Demo01_TheBasics.
Please help me if you have any hint about it.

Edit2:
Not sure if log file can help or not.
This is my log file:
10:07:45: Creating resource group General
10:07:45: Creating resource group Internal
10:07:45: Creating resource group Autodetect
10:07:45: SceneManagerFactory for type 'DefaultSceneManager' registered.
10:07:45: Registering ResourceManager for type Material
10:07:45: Registering ResourceManager for type Mesh
10:07:45: Registering ResourceManager for type Skeleton
10:07:45: MovableObjectFactory for type 'ParticleSystem' registered.
10:07:45: OverlayElementFactory for type Panel registered.
10:07:45: OverlayElementFactory for type BorderPanel registered.
10:07:45: OverlayElementFactory for type TextArea registered.
10:07:45: Registering ResourceManager for type Font
10:07:45: ArchiveFactory for archive type FileSystem registered.
10:07:45: ArchiveFactory for archive type Zip registered.
10:07:45: FreeImage version: 3.10.0
10:07:45: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
10:07:45: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi,exr,j2k,j2c,jp2
10:07:45: DDS codec registering
10:07:45: Registering ResourceManager for type HighLevelGpuProgram
10:07:45: Registering ResourceManager for type Compositor
10:07:45: MovableObjectFactory for type 'Entity' registered.
10:07:45: MovableObjectFactory for type 'Light' registered.
10:07:45: MovableObjectFactory for type 'BillboardSet' registered.
10:07:45: MovableObjectFactory for type 'ManualObject' registered.
10:07:45: MovableObjectFactory for type 'BillboardChain' registered.
10:07:45: MovableObjectFactory for type 'RibbonTrail' registered.
10:07:45: Loading library .\RenderSystem_Direct3D9
10:07:45: Installing plugin: D3D9 RenderSystem
10:07:45: D3D9 : Direct3D9 Rendering Subsystem created.
10:07:45: D3D9: Driver Detection Starts
10:07:45: D3D9: Driver Detection Ends
10:07:45: Plugin successfully installed
10:07:45: Loading library .\RenderSystem_GL
10:07:45: Installing plugin: GL RenderSystem
10:07:45: OpenGL Rendering Subsystem created.
10:07:46: Plugin successfully installed
10:07:46: Loading library .\Plugin_ParticleFX
10:07:46: Installing plugin: ParticleFX
10:07:46: Particle Emitter Type 'Point' registered
10:07:46: Particle Emitter Type 'Box' registered
10:07:46: Particle Emitter Type 'Ellipsoid' registered
10:07:46: Particle Emitter Type 'Cylinder' registered
10:07:46: Particle Emitter Type 'Ring' registered
10:07:46: Particle Emitter Type 'HollowEllipsoid' registered
10:07:46: Particle Affector Type 'LinearForce' registered
10:07:46: Particle Affector Type 'ColourFader' registered
10:07:46: Particle Affector Type 'ColourFader2' registered
10:07:46: Particle Affector Type 'ColourImage' registered
10:07:46: Particle Affector Type 'ColourInterpolator' registered
10:07:46: Particle Affector Type 'Scaler' registered
10:07:46: Particle Affector Type 'Rotator' registered
10:07:46: Particle Affector Type 'DirectionRandomiser' registered
10:07:46: Particle Affector Type 'DeflectorPlane' registered
10:07:46: Plugin successfully installed
10:07:46: Loading library .\Plugin_BSPSceneManager
10:07:46: Installing plugin: BSP Scene Manager
10:07:46: Plugin successfully installed
10:07:46: Loading library .\Plugin_OctreeSceneManager
10:07:46: Installing plugin: Octree & Terrain Scene Manager
10:07:46: Plugin successfully installed
10:07:46: Loading library .\Plugin_CgProgramManager
10:07:46: Installing plugin: Cg Program Manager
10:07:46: Plugin successfully installed
10:07:46: *-*-* OGRE Initialising
10:07:46: *-*-* Version 1.4.6 (Eihort)
10:07:46: Creating resource group Bootstrap
10:07:46: Added resource location 'media/packs/OgreCore.zip' of type 'Zip' to resource group 'Bootstrap'
10:07:46: Added resource location 'media' of type 'FileSystem' to resource group 'General'
10:07:46: Added resource location 'media/fonts' of type 'FileSystem' to resource group 'General'
10:07:46: Added resource location 'media/materials/programs' of type 'FileSystem' to resource group 'General'
10:07:46: Added resource location 'media/materials/scripts' of type 'FileSystem' to resource group 'General'
10:07:46: Added resource location 'media/materials/textures' of type 'FileSystem' to resource group 'General'
10:07:46: Added resource location 'media/models' of type 'FileSystem' to resource group 'General'
10:07:46: Added resource location 'media/overlays' of type 'FileSystem' to resource group 'General'
10:07:46: Added resource location 'media/particle' of type 'FileSystem' to resource group 'General'
10:07:46: Added resource location 'media/gui' of type 'FileSystem' to resource group 'General'
10:07:46: Added resource location 'media/DeferredShadingMedia' of type 'FileSystem' to resource group 'General'
10:07:46: Added resource location 'media/packs/cubemap.zip' of type 'Zip' to resource group 'General'
10:07:46: Added resource location 'media/packs/cubemapsJS.zip' of type 'Zip' to resource group 'General'
10:07:46: Added resource location 'media/packs/dragon.zip' of type 'Zip' to resource group 'General'
10:07:46: Added resource location 'media/packs/fresneldemo.zip' of type 'Zip' to resource group 'General'
10:07:46: Added resource location 'media/packs/ogretestmap.zip' of type 'Zip' to resource group 'General'
10:07:46: Added resource location 'media/packs/skybox.zip' of type 'Zip' to resource group 'General'
10:07:46: D3D9 : RenderSystem Option: Allow NVPerfHUD = Yes
10:07:46: D3D9 : RenderSystem Option: Anti aliasing = None
10:07:46: D3D9 : RenderSystem Option: Floating-point mode = Fastest
10:07:46: D3D9 : RenderSystem Option: Full Screen = No
10:07:46: D3D9 : RenderSystem Option: Rendering Device = WinFast PX7300 GT
10:07:46: D3D9 : RenderSystem Option: VSync = No
10:07:46: D3D9 : RenderSystem Option: Video Mode = 800 x 600 @ 32-bit colour
10:08:06: CPU Identifier & Features
10:08:06: -------------------------
10:08:06: * CPU ID: GenuineIntel: Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz
10:08:06: * SSE: yes
10:08:06: * SSE2: yes
10:08:06: * SSE3: yes
10:08:06: * MMX: yes
10:08:06: * MMXEXT: yes
10:08:06: * 3DNOW: no
10:08:06: * 3DNOWEXT: no
10:08:06: * CMOV: yes
10:08:06: * TSC: yes
10:08:06: * FPU: yes
10:08:06: * PRO: yes
10:08:06: * HT: no
10:08:06: -------------------------
10:08:06: D3D9 : Subsystem Initialising
10:08:06: D3D9RenderSystem::createRenderWindow "OGRE Render Window", 800x600 windowed miscParams: FSAA=0 FSAAQuality=0 colourDepth=32 useNVPerfHUD=true vsync=false
10:08:06: D3D9 : Created D3D9 Rendering Window 'OGRE Render Window' : 800x600, 32bpp
10:08:06: D3D9 : WARNING - disabling VSync in windowed mode can cause timing issues at lower frame rates, turn VSync on if you observe this problem.
10:08:06: Registering ResourceManager for type Texture
10:08:06: Registering ResourceManager for type GpuProgram
10:08:06: D3D9: Vertex texture format supported - PF_FLOAT32_RGB
10:08:06: D3D9: Vertex texture format supported - PF_FLOAT32_RGBA
10:08:06: D3D9: Vertex texture format supported - PF_FLOAT32_R
10:08:06: RenderSystem capabilities
10:08:06: -------------------------
10:08:06: * Hardware generation of mipmaps: yes
10:08:06: * Texture blending: yes
10:08:06: * Anisotropic texture filtering: yes
10:08:06: * Dot product texture operation: yes
10:08:06: * Cube mapping: yes
10:08:06: * Hardware stencil buffer: yes
10:08:06: - Stencil depth: 8
10:08:06: - Two sided stencil support: yes
10:08:06: - Wrap stencil values: yes
10:08:06: * Hardware vertex / index buffers: yes
10:08:06: * Vertex programs: yes
10:08:06: - Max vertex program version: vs_3_0
10:08:06: * Fragment programs: yes
10:08:06: - Max fragment program version: ps_3_0
10:08:06: * Texture Compression: yes
10:08:06: - DXT: yes
10:08:06: - VTC: no
10:08:06: * Scissor Rectangle: yes
10:08:06: * Hardware Occlusion Query: yes
10:08:06: * User clip planes: yes
10:08:06: * VET_UBYTE4 vertex element type: yes
10:08:06: * Infinite far plane projection: yes
10:08:06: * Hardware render-to-texture: yes
10:08:06: * Floating point textures: yes
10:08:06: * Non-power-of-two textures: yes
10:08:06: * Volume textures: yes
10:08:06: * Multiple Render Targets: 4
10:08:06: * Point Sprites: yes
10:08:06: * Extended point parameters: yes
10:08:06: * Max Point Size: 8192
10:08:06: * Vertex texture fetch: yes
10:08:06: - Max vertex textures: 4
10:08:06: - Vertex textures shared: no
10:08:06: ***************************************
10:08:06: *** D3D9 : Subsystem Initialised OK ***
10:08:06: ***************************************
10:08:06: ResourceBackgroundQueue - threading disabled
10:08:06: Particle Renderer Type 'billboard' registered
10:08:06: SceneManagerFactory for type 'BspSceneManager' registered.
10:08:06: Registering ResourceManager for type BspLevel
10:08:06: SceneManagerFactory for type 'OctreeSceneManager' registered.
10:08:06: SceneManagerFactory for type 'TerrainSceneManager' registered.
10:08:06: Creating viewport on target 'OGRE Render Window', rendering from camera 'PlayerCam', relative dimensions L: 0.00 T: 0.00 W: 1.00 H: 1.00 ZOrder: 0
10:08:06: Parsing scripts for resource group Autodetect
10:08:06: Finished parsing scripts for resource group Autodetect
10:08:06: Parsing scripts for resource group Bootstrap
10:08:06: Parsing script OgreCore.material
10:08:06: Parsing script OgreProfiler.material
10:08:06: Parsing script Ogre.fontdef
10:08:06: Parsing script OgreDebugPanel.overlay
10:08:06: Texture: New_Ogre_Border_Center.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
10:08:06: Texture: New_Ogre_Border.png: Loading 1 faces(PF_A8R8G8B8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
10:08:06: Texture: New_Ogre_Border_Break.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
10:08:06: Font BlueHighwayusing texture size 512x512
10:08:06: Info: Freetype returned null for character 127 in font BlueHighway
10:08:06: Info: Freetype returned null for character 128 in font BlueHighway
10:08:06: Info: Freetype returned null for character 129 in font BlueHighway
10:08:06: Info: Freetype returned null for character 130 in font BlueHighway
10:08:06: Info: Freetype returned null for character 131 in font BlueHighway
10:08:06: Info: Freetype returned null for character 132 in font BlueHighway
10:08:06: Info: Freetype returned null for character 133 in font BlueHighway
10:08:06: Info: Freetype returned null for character 134 in font BlueHighway
10:08:06: Info: Freetype returned null for character 135 in font BlueHighway
10:08:06: Info: Freetype returned null for character 136 in font BlueHighway
10:08:06: Info: Freetype returned null for character 137 in font BlueHighway
10:08:06: Info: Freetype returned null for character 138 in font BlueHighway
10:08:06: Info: Freetype returned null for character 139 in font BlueHighway
10:08:06: Info: Freetype returned null for character 140 in font BlueHighway
10:08:06: Info: Freetype returned null for character 141 in font BlueHighway
10:08:06: Info: Freetype returned null for character 142 in font BlueHighway
10:08:06: Info: Freetype returned null for character 143 in font BlueHighway
10:08:06: Info: Freetype returned null for character 144 in font BlueHighway
10:08:06: Info: Freetype returned null for character 145 in font BlueHighway
10:08:06: Info: Freetype returned null for character 146 in font BlueHighway
10:08:06: Info: Freetype returned null for character 147 in font BlueHighway
10:08:06: Info: Freetype returned null for character 148 in font BlueHighway
10:08:06: Info: Freetype returned null for character 149 in font BlueHighway
10:08:06: Info: Freetype returned null for character 150 in font BlueHighway
10:08:06: Info: Freetype returned null for character 151 in font BlueHighway
10:08:06: Info: Freetype returned null for character 152 in font BlueHighway
10:08:06: Info: Freetype returned null for character 153 in font BlueHighway
10:08:06: Info: Freetype returned null for character 154 in font BlueHighway
10:08:06: Info: Freetype returned null for character 155 in font BlueHighway
10:08:06: Info: Freetype returned null for character 156 in font BlueHighway
10:08:06: Info: Freetype returned null for character 157 in font BlueHighway
10:08:06: Info: Freetype returned null for character 158 in font BlueHighway
10:08:06: Info: Freetype returned null for character 159 in font BlueHighway
10:08:06: Info: Freetype returned null for character 160 in font BlueHighway
10:08:06: Texture: BlueHighwayTexture: Loading 1 faces(PF_BYTE_LA,512x512x1) with 0 generated mipmaps from Image. Internal format is PF_BYTE_LA,512x512x1.
10:08:07: Texture: ogretext.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
10:08:07: Parsing script OgreLoadingPanel.overlay
10:08:07: Finished parsing scripts for resource group Bootstrap
10:08:07: Parsing scripts for resource group General
10:08:07: Parsing script Examples.program
10:08:07: Parsing script StdQuad_vp.program
10:08:07: Parsing script deferred.glsl.program
10:08:07: Parsing script deferred.hlsl.program
10:08:07: Parsing script deferred_post_debug.glsl.program
10:08:07: Parsing script deferred_post_debug.hlsl.program
10:08:07: Parsing script deferred_post_minilight.glsl.program
10:08:07: Parsing script deferred_post_minilight.hlsl.program
10:08:07: OGRE EXCEPTION(2:InvalidParametersException): Parameter called lightSpecularColor does not exist. in GpuProgramParameters::_findNamedConstantDefinition at ..\src\OgreGpuProgram.cpp (line 883)
10:08:07: Error at line 29 of deferred_post_minilight.hlsl.program: Invalid param_named_auto attribute - Parameter called lightSpecularColor does not exist.
10:08:07: Parsing script deferred_post_multipass.glsl.program
10:08:07: Parsing script deferred_post_multipass.hlsl.program
10:08:07: Parsing script deferred_post_onepass.glsl.program
10:08:07: Parsing script deferred_post_onepass.hlsl.program
10:08:07: Parsing script Test.material
10:08:07: Parsing script BlackAndWhite.material
10:08:07: Parsing script Bloom.material
10:08:07: Parsing script DepthShadowmap.material
10:08:07: Parsing script DOF.material
10:08:07: Parsing script Embossed.material
10:08:07: Parsing script Example-DynTex.material
10:08:07: Parsing script Example-Water.material
10:08:07: Parsing script Example.material
10:08:07: Parsing script Examples-Advanced.material
10:08:08: Parsing script facial.material
10:08:08: Parsing script Glass.material
10:08:08: Parsing script hdr.material
10:08:08: Parsing script HeatVision.material
10:08:08: Parsing script Hurt.material
10:08:08: Parsing script instancing.material
10:08:08: Parsing script Invert.material
10:08:08: Parsing script Laplace.material
10:08:08: Parsing script MotionBlur.material
10:08:08: Parsing script Ocean.material
10:08:08: Parsing script OffsetMapping.material
10:08:08: Parsing script Ogre.material
10:08:08: Parsing script OldMovie.material
10:08:08: Parsing script OldTV.material
10:08:08: Parsing script Posterize.material
10:08:08: Parsing script RZR-002.material
10:08:08: Parsing script SharpenEdges.material
10:08:08: Parsing script smoke.material
10:08:08: Parsing script Tiling.material
10:08:08: Parsing script VarianceShadowmap.material
10:08:08: Parsing script deferred.material
10:08:08: Parsing script deferreddemo.material
10:08:08: Parsing script deferred_post_debug.material
10:08:08: Parsing script deferred_post_minilight.material
10:08:08: Parsing script deferred_post_multipass.material
10:08:08: Parsing script deferred_post_onepass.material
10:08:08: Parsing script RomanBath.material
10:08:08: Parsing script Examples.compositor
10:08:08: Parsing script sample.fontdef
10:08:08: Parsing script emitted_emitter.particle
10:08:08: Parsing script Example-Water.particle
10:08:08: Parsing script Example.particle
10:08:08: Parsing script smoke.particle
10:08:08: Parsing script Compositor.overlay
10:08:08: Parsing script DP3.overlay
10:08:08: Parsing script Example-CubeMapping.overlay
10:08:08: Parsing script Example-DynTex.overlay
10:08:08: Parsing script Example-Water.overlay
10:08:08: Parsing script Shadows.overlay
10:08:08: Finished parsing scripts for resource group General
10:08:08: Parsing scripts for resource group Internal
10:08:08: Finished parsing scripts for resource group Internal
10:08:08: Texture: cloudy_noon_fr.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
10:08:08: Texture: cloudy_noon_bk.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
10:08:08: Texture: cloudy_noon_lf.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
10:08:08: Texture: cloudy_noon_rt.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
10:08:09: Texture: cloudy_noon_up.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
10:08:09: Texture: cloudy_noon_dn.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
10:08:09: OGRE EXCEPTION(5:ItemIdentityException): Unable to derive resource group for cylinder.mesh automatically since the resource was not found. in ResourceGroupManager::findGroupContainingResource at ..\src\OgreResourceGroupManager.cpp (line 1368)
10:08:09: Unregistering ResourceManager for type BspLevel
10:08:09: *-*-* OGRE Shutdown
10:08:09: Unregistering ResourceManager for type Compositor
10:08:09: Unregistering ResourceManager for type Font
10:08:09: Unregistering ResourceManager for type Skeleton
10:08:09: Unregistering ResourceManager for type Mesh
10:08:09: Unregistering ResourceManager for type HighLevelGpuProgram
10:08:09: Uninstalling plugin: Cg Program Manager
10:08:09: Plugin successfully uninstalled
10:08:09: Unloading library .\Plugin_CgProgramManager
10:08:09: Uninstalling plugin: Octree & Terrain Scene Manager
10:08:09: Plugin successfully uninstalled
10:08:09: Unloading library .\Plugin_OctreeSceneManager
10:08:09: Uninstalling plugin: BSP Scene Manager
10:08:09: Plugin successfully uninstalled
10:08:09: Unloading library .\Plugin_BSPSceneManager
10:08:09: Uninstalling plugin: ParticleFX
10:08:09: Plugin successfully uninstalled
10:08:09: Unloading library .\Plugin_ParticleFX
10:08:09: Uninstalling plugin: GL RenderSystem
10:08:09: *** Stopping Win32GL Subsystem ***
10:08:09: Plugin successfully uninstalled
10:08:09: Unloading library .\RenderSystem_GL
10:08:09: Uninstalling plugin: D3D9 RenderSystem
10:08:09: Render Target 'OGRE Render Window' Average FPS: 0 Best FPS: 0 Worst FPS: 999
10:08:09: D3D9 : Shutting down cleanly.
10:08:09: Unregistering ResourceManager for type Texture
10:08:09: Unregistering ResourceManager for type GpuProgram
10:08:09: D3D9 : Direct3D9 Rendering Subsystem destroyed.
10:08:09: Plugin successfully uninstalled
10:08:09: Unloading library .\RenderSystem_Direct3D9
10:08:09: Unregistering ResourceManager for type Material

wilsonwing

12-07-2008 06:49:22

I also tried the OgreNewt_Tutorial1.(from here: http://www.ogre3d.org/wiki/index.php/Newton_Game_Dynamics)
I copy the code to my project.
The same problem appear.
After compiled, only black screen and after a few(about 1 ~2 sec) seconds it turn off automaticly.....
But if I compiled the original OgreNewt_Tutorial1 project.
It's totally fine. (The Demo01_TheBasics in the OgreNewt document also).
I almost can start my OgreNewton, please give me some help, really appricate. :)

walaber

12-07-2008 14:35:35

according to the log, it cannot find "cylinder.mesh".

check your resource.cfg file for your project. also make sure that you actually have cylinder.mesh!

wilsonwing

13-07-2008 04:37:58

according to the log, it cannot find "cylinder.mesh".

check your resource.cfg file for your project. also make sure that you actually have cylinder.mesh!

Thanks Walaber!
It works great now.
It's really a shame that I can't understand the log file.
You teach me a lesson.
Great Thanks ! :D