Problems compiling bloody mess 1.5.5

Skyria

15-09-2009 10:20:58

Hi,

I'm having some problems compiling bloody mess, I've got PhysXSDK and OgreSDK installed and environment variables set up like this
OGRE_HOME c:\OgreSDK
PHYSX_DIR c:\PhysXSDK
While trying to compile I get some post-build event errors like this
1>C:\BloodyMess\build\msvc\..\..\dependencies\bml\bml.h
1>C:\BloodyMess\build\msvc\..\..\dependencies\bml\bounds.h
1>C:\BloodyMess\build\msvc\..\..\dependencies\bml\constants.h
1>C:\BloodyMess\build\msvc\..\..\dependencies\bml\math.h
1>C:\BloodyMess\build\msvc\..\..\dependencies\bml\matrix.h
1>C:\BloodyMess\build\msvc\..\..\dependencies\bml\prototypes.h
1>C:\BloodyMess\build\msvc\..\..\dependencies\bml\quaternion.h
1>C:\BloodyMess\build\msvc\..\..\dependencies\bml\vector.h
1> 8 file(s) copied.
1>The system cannot find the path specified.
1> 0 file(s) copied.
1>The system cannot find the path specified.
1> 0 file(s) copied.
1>Project : error PRJ0019: A tool returned an error code from "Performing Post-Build Event..."
1>Build log was saved at "file://c:\BloodyMess\build\msvc\Debug\BuildLog.htm"
1>NxOgre - 1 error(s), 0 warning(s)
2>------ Skipped Build: Project: GLUTRenderSystem, Configuration: Debug Win32 ------
2>Project not selected to build for this solution configuration
3>------ Build started: Project: OGRE3DRenderSystem, Configuration: Debug Win32 ------
3>Compiling...
3>cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future release
3>OGRE3DKinematicBody.cpp
3>c:\bloodymess\rendersystems\ogre\ogre3dcommon.h(33) : fatal error C1083: Cannot open include file: 'Ogre.h': No such file or directory


and after that I get the following error

2>Compiling...
2>OGRE3DKinematicBody.cpp
2>OGRE3DPointRenderable.cpp
2>OGRE3DRenderable.cpp
2>OGRE3DRenderSystem.cpp
2>OGRE3DRigidBodyPrototype.cpp
2>OGRE3DBody.cpp
2>Generating Code...
2>Creating library...
2>LINK : fatal error LNK1181: cannot open input file 'OgreMain_d.lib'


So I'm quite stuck here and don't really know how to solve this, any suggestiones? :)

betajaen

15-09-2009 12:20:35

Hmm. I don't know why the first part isn't working to well. As long as you have all the headers and libs in the SDK directory it should be fine.


For your second problem. The Ogre one, your Environmental variable is incorrect. it should point to the "OgreMain" directory.

For example; my OGRE_HOME variable is N:\libraries\ogre\OgreMain, so yours would be c:\OgreSDK\OgreMain

Skyria

15-09-2009 14:05:05

Hmm that's weird, I don't have a directory called OgreMain in my OgreSDK-folder, I installed Ogre with the install-file for visual studio 2008.
Ogre itself is working just fine for my normal applications but it just wont let me compile bloody mess :?

betajaen

15-09-2009 15:15:53

Oh, your using the SDK version.

The paths may be different, so you'll have to change them in the OGRE3DRendersystem project settings. It's just the Ogre Include and Linker directories.

Skyria

15-09-2009 15:37:15

Oh I see, figured it might have something to do with that!
Well I'm going to give the source-release a try and if that doesn't work for me I'll try again with the SDK and change the directories :)
Maybe you could add some instructions though for use with the SDK-version to your tutorial just in case someone tries again like me :D

betajaen

15-09-2009 15:58:46

Really there is no need to change your entire system for one silly thing. It's just the paths are different, which it'll take 20 seconds to do fix.

Skyria

15-09-2009 16:28:17

Yeah it was just some silly thinking of me that it could possibly make a difference ;)
Anyways, made a clean install of the ogre sdk, added the proper directories so now the second error is gone, I'm still however stuck on the first one,

to be on the safe side I made a fresh install of the PhysXSDK just in case, the PHYSX_DIR path is set up like it should be, this time to C:\dev\PhysXSDK


1>C:\dev\BloodyMess\build\msvc\..\..\dependencies\bml\bml.h
1>C:\dev\BloodyMess\build\msvc\..\..\dependencies\bml\bounds.h
1>C:\dev\BloodyMess\build\msvc\..\..\dependencies\bml\constants.h
1>C:\dev\BloodyMess\build\msvc\..\..\dependencies\bml\math.h
1>C:\dev\BloodyMess\build\msvc\..\..\dependencies\bml\matrix.h
1>C:\dev\BloodyMess\build\msvc\..\..\dependencies\bml\prototypes.h
1>C:\dev\BloodyMess\build\msvc\..\..\dependencies\bml\quaternion.h
1>C:\dev\BloodyMess\build\msvc\..\..\dependencies\bml\vector.h
1> 8 file(s) copied.
1>The system cannot find the path specified.
1> 0 file(s) copied.
1>The system cannot find the path specified.
1> 0 file(s) copied.
1>Project : error PRJ0019: A tool returned an error code from "Performing Post-Build Event..."
1>Build log was saved at "file://c:\dev\BloodyMess\build\msvc\Debug\BuildLog.htm"
1>NxOgre - 1 error(s), 0 warning(s)


Any thoughts?

betajaen

15-09-2009 16:41:53

Don't worry about it. It's just moaning that it can't copy the dlls into the Cake directory for you (you don't have Cake there).

Everything is correctly compiled and ready to go.

Skyria

15-09-2009 16:55:32

Ah sweet 8)
Thank you for the fast responses!