[HOW-TO] Fix Post-Build event errors!

twilight17

27-11-2007 16:11:47

Here is a short tutorial to help some people fix some post-build errors. Hope you all like it!

http://thingylol.110mb.com/tut.html

:D

EDIT: oh, this will fix these kind of errors:

------ Build started: Project: NxOgre, Configuration: Debug Win32 ------
Compiling...
NxOgreStable.cpp
Compiling...
NxOgreTesting.cpp
NxOgreNxSerialiser.cpp
NxOgreWorldBlueprint.cpp
NxOgreSceneBlueprint.cpp
c:\dev\nxogre\source\nxogresceneblueprint.cpp(111) : warning C4800: 'NX_BOOL' : forcing value to bool 'true' or 'false' (performance warning)
c:\dev\nxogre\source\nxogresceneblueprint.cpp(112) : warning C4800: 'NX_BOOL' : forcing value to bool 'true' or 'false' (performance warning)
NxOgreEnumsBlueprint.cpp
NxOgreActorBlueprint.cpp
NxOgreSerialiser.cpp
NxOgreJointSet2.cpp
NxOgreJointSet1.cpp
NxOgreJoint.cpp
NxOgreSimpleShape.cpp
NxOgreMotor.cpp
NxOgreShapeWheel.cpp
NxOgreShapeTerrain.cpp
NxOgreShapePrimitives.cpp
NxOgreShapeMesh.cpp
NxOgreShapeConvex.cpp
NxOgreShape.cpp
NxOgreShapeBlueprintWheel.cpp
NxOgreShapeBlueprintTerrain.cpp
Generating Code...
Compiling...
NxOgreShapeBlueprintPrimitives.cpp
NxOgreShapeBlueprintMesh.cpp
NxOgreShapeBlueprintConvex.cpp
NxOgreShapeBlueprint.cpp
NxOgreSkeleton.cpp
NxOgreSoftBody.cpp
NxOgreMaterial.cpp
NxOgreHelper.cpp
NxOgreGroup.cpp
NxOgreForceField.cpp
NxOgreFluidMesh.cpp
NxOgreFluid.cpp
NxOgreDominanceGroup.cpp
NxOgreCloth.cpp
NxOgreCharacterHitReport.cpp
NxOgreCharacterController.cpp
NxOgreCharacter.cpp
NxOgreBody.cpp
NxOgreActor.cpp
NxOgreUserStream.cpp
Generating Code...
Compiling...
NxOgreUserAllocator.cpp
NxOgrePose.cpp
NxOgreParams.cpp
NxOgreHelpers.cpp
NxOgreCooking.cpp
NxOgreContainer.cpp
NxOgreTrigger.cpp
NxOgreSceneTriggerController.cpp
NxOgreRaycaster.cpp
NxOgreIntersection.cpp
NxOgreClothRaycaster.cpp
NxOgreSceneController.cpp
NxOgreSceneContactController.cpp
NxOgreScene.cpp
NxOgreWorld.cpp
c:\dev\nxogre\source\nxogreworld.cpp(232) : warning C4800: 'NxReal' : forcing value to bool 'true' or 'false' (performance warning)
NxOgreRemoteDebuggerConnection.cpp
NxOgrePhysXDriver.cpp
NxOgreMeshManager.cpp
NxOgreLog.cpp
NxOgreGlobalFunctions.cpp
Generating Code...
Compiling...
NxOgreError.cpp
NxOgreDebugRenderer.cpp
Generating Code...
Compiling manifest to resources...
Linking...
Creating library C:\Dev\NxOGRE\\lib\NxOgre_d.lib and object C:\Dev\NxOGRE\\lib\NxOgre_d.exp
Embedding manifest...
Performing Post-Build Event...
Copying DLL to CakeBox and Ogre Samples. Errors during copying process does not mean the library was built incorrectly.
The system cannot find the path specified.
0 file(s) copied.
The system cannot find the path specified.
0 file(s) copied.
Project : error PRJ0019: A tool returned an error code from "Performing Post-Build Event..."
Build log was saved at "file://C:\Dev\NxOGRE\compiler\Windows\Debug\BuildLog.htm"
NxOgre - 1 error(s), 3 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

betajaen

27-11-2007 17:02:43

I've been toying with the idea of doing a pre-build configuration. I've managed to whip up a clever little batch file which can get the PhysX SDK directory from the Windows Registry.

I can probably extend that post-build script to check those directories exist before copying them, so the compiler doesn't think the build failed - when it didn't.

twilight17

27-11-2007 17:05:14

I've been toying with the idea of doing a pre-build configuration. I've managed to whip up a clever little batch file which can get the PhysX SDK directory from the Windows Registry.

I can probably extend that post-build script to check those directories exist before copying them, so the compiler doesn't think the build failed - when it didn't.


That would be cool, but it would be easier just to fix the little squares once you publish to cvs lol, :D

twilight17

28-11-2007 21:37:39

doesnt anyone care? :(

denreaper

29-11-2007 05:46:40

Thanks. I find it very useful. :)

twilight17

29-11-2007 15:10:29

Thanks. I find it very useful. :)
no problem :)