Compile Errors!

PvtVenom

20-11-2007 21:37:32

Aight so ive got the PhysX SDK OgreSDK and NxOgre all in one folder (C:\Dev) and ive got the systemsoftware installed and PHYSX_DIR setup but when i go to compile it i get this

------ 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 ==========

denreaper

21-11-2007 02:08:18

I get it too, but since it's a post build event I ignore it because the library has compiled correctly.

PvtVenom

21-11-2007 17:47:30

well for me its obvisously not compiling correctly i did what u said and went ahead and tried to use NxOgre in a sample but when i go to compile the sample it says

c:\dev\nxogre\include\nxogrestable.h(94) : fatal error C1083: Cannot open include file: 'NxVersionNumber.h': No such file or directory

PvtVenom

21-11-2007 18:06:23

Master Beta i could really use your all knowing knowledge here followed your installation and compiling guides to the point but cant figure out whats wrong

betajaen

21-11-2007 18:08:28

Did you link to the PhysX include/linker directories?

PvtVenom

21-11-2007 18:35:38

if you mean PHYSX_DIR environmental variable then yes i have
ive also got the SDK/lib directory set in the lib directories in VC8

i believe i might see the errors of my ways i might have forgot to link the SDK/.../include directories

edit: nope including those directories didnt do anything so i might just be misunderstanding what nclude diectories

PvtVenom

21-11-2007 20:13:10

alright so ive got $(PHYSX_DIR)SDK\...\include linked for every include directory in the physXsdk folder ive got but it still cant find the NxVersionNumber.h which is in the Foundation folder

PvtVenom

21-11-2007 22:44:19


------ Rebuild All started: Project: ShadowOPS, Configuration: Debug Win32 ------
Deleting intermediate and output files for project 'ShadowOPS', configuration 'Debug|Win32'
Compiling...
ShadowOPS.cpp
c:\dev\nxogre\include\nxogrestable.h(94) : fatal error C1083: Cannot open include file: 'NxVersionNumber.h': No such file or directory
Build log was saved at "file://c:\Dev\ShadowOPS\obj\Debug\BuildLog.htm"
ShadowOPS - 1 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========


i get that error everytime with or with out the PhysX\SDK\...\Include folders included i just cant figure out why it cant find the NxVersionNumber.h i mean its in the foundation\include folder and i got that linked

betajaen

22-11-2007 09:15:47

No bumping.

- Does your include and linker bits exactly match everything on this page?

- Does PHYSX_DIR mean have a slash at the end? "C:/Dev/PhysX/"

- Did you try it with an absolute path? "C:/Dev/PhysX/SDKs/PhysXLoader/include"

twilight17

27-11-2007 15:33:00

Ill post a tutorial on how to fix this problem shortly.

twilight17

27-11-2007 16:12:44

Ok its done, here is the link to the thread.

http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=5834

hope that helps :D