Error during compile
Forum » User forums / Getting started » Error during compile
Started by: dArchitectdArchitect
On: 1242779029|%e %b %Y, %H:%M %Z|agohover
Number of posts: 3
rss icon RSS: New posts
Error during compile
dArchitectdArchitect 1242779029|%e %b %Y, %H:%M %Z|agohover

Getting

1>c:\develop\ngene\ngene proj\shapeterrain.cpp(19) : fatal error C1083: Cannot open include file: 'NxHeightFieldDesc.h': No such file or directory
1>ShapeSphere.cpp
1>c:\develop\ngene\ngene proj\shapesphere.cpp(20) : fatal error C1083: Cannot open include file: 'NxSphereShapeDesc.h': No such file or directory
1>ShapePlane.cpp
1>c:\develop\ngene\ngene proj\shapeplane.cpp(19) : fatal error C1083: Cannot open include file: 'NxPlaneShapeDesc.h': No such file or directory
1>ShapeMesh.cpp
1>c:\develop\ngene\ngene proj\physxstream.h(22) : fatal error C1083: Cannot open include file: 'NxStream.h': No such file or directory
1>ShapeEnumerator.cpp
1>ShapeCapsule.cpp
1>c:\develop\ngene\ngene proj\shapecapsule.cpp(21) : fatal error C1083: Cannot open include file: 'NxCapsuleShapeDesc.h': No such file or directory
1>ShapeBox.cpp
1>c:\develop\ngene\ngene proj\shapebox.cpp(21) : fatal error C1083: Cannot open include file: 'NxBoxShapeDesc.h': No such file or directory
1>Shape.cpp
1>RigidBody.cpp
1>c:\develop\ngene\ngene proj\rigidbody.cpp(21) : fatal error C1083: Cannot open include file: 'NxActor.h': No such file or directory
1>PhysXStream.cpp
1>c:\develop\ngene\ngene proj\physxstream.cpp(15) : fatal error C1083: Cannot open include file: 'NxPhysics.h': No such file or directory
1>PhysXMapping.cpp
1>c:\develop\ngene\ngene proj\physxmapping.cpp(19) : fatal error C1083: Cannot open include file: 'NxExtended.h': No such file or directory
1>PhysXAllocator.cpp
1>c:\develop\ngene\ngene proj\physxallocator.cpp(28) : fatal error C1083: Cannot open include file: 'NxPhysics.h': No such file or directory
1>PhysicsWorld.cpp
1>c:\develop\ngene\ngene proj\physicsworld.cpp(26) : fatal error C1083: Cannot open include file: 'NxScene.h': No such file or directory
1>PhysicsMaterial.cpp
1>c:\develop\ngene\ngene proj\physicsmaterial.cpp(18) : fatal error C1083: Cannot open include file: 'NxMaterial.h': No such file or directory
1>Physics.cpp
1>c:\develop\ngene\ngene proj\physxallocator.h(20) : fatal error C1083: Cannot open include file: 'NxUserAllocator.h': No such file or directory
1>ForceFieldShapeSphere.cpp
1>c:\develop\ngene\ngene proj\forcefieldshapesphere.cpp(19) : fatal error C1083: Cannot open include file: 'NxSphereForceFieldShapeDesc.h': No such file or directory
1>ForceFieldShapesGroup.cpp
1>c:\develop\ngene\ngene proj\forcefieldshapesgroup.cpp(18) : fatal error C1083: Cannot open include file: 'NxPhysics.h': No such file or directory
1>ForceFieldShapeEnumerator.cpp
1>ForceFieldShapeCapsule.cpp
1>c:\develop\ngene\ngene proj\forcefieldshapecapsule.cpp(21) : fatal error C1083: Cannot open include file: 'NxForceFieldShapeDesc.h': No such file or directory
1>ForceFieldShapeBox.cpp
1>c:\develop\ngene\ngene proj\forcefieldshapebox.cpp(21) : fatal error C1083: Cannot open include file: 'NxForceFieldShapeDesc.h': No such file or directory
1>ForceFieldShape.cpp
1>ForceField.cpp
1>c:\develop\ngene\ngene proj\forcefield.cpp(21) : fatal error C1083: Cannot open include file: 'NxForceField.h': No such file or directory
1>CharacterController.cpp
1>c:\develop\ngene\ngene proj\charactercontroller.cpp(21) : fatal error C1083: Cannot open include file: 'NxActor.h': No such file or directory

And.

1>c:\develop\microsoft directx sdk (march 2009)\include\dinput.h: DIRECTINPUT_VERSION undefined. Defaulting to version 0x0800
1>InputSystem.cpp
1>InputListener.cpp
1>InputDeviceEnumerator.cpp
1>c:\develop\microsoft directx sdk (march 2009)\include\dinput.h: DIRECTINPUT_VERSION undefined. Defaulting to version 0x0800
1>InputDevice.cpp
1>DeviceMouseDX9.cpp
1>c:\develop\microsoft directx sdk (march 2009)\include\dinput.h: DIRECTINPUT_VERSION undefined. Defaulting to version 0x0800
1>DeviceMouse.cpp
1>c:\develop\microsoft directx sdk (march 2009)\include\dinput.h: DIRECTINPUT_VERSION undefined. Defaulting to version 0x0800
1>DeviceKeyboardDX9.cpp
1>c:\develop\microsoft directx sdk (march 2009)\include\dinput.h: DIRECTINPUT_VERSION undefined. Defaulting to version 0x0800

And.

1>c:\develop\ngene\ngene proj\shaderdx10.cpp(256) : error C3861: 'D3DX10ReflectShader': identifier not found

And.

1>c:\develop\ngene\ngene proj\guifont.h(130) : warning C4512: 'nGENE::GUIFont' : assignment operator could not be generated
1> c:\develop\ngene\ngene proj\guifont.h(53) : see declaration of 'nGENE::GUIFont'
1>c:\develop\ngene\ngene proj\guifont.h(130) : warning C4512: 'nGENE::GUIFont' : assignment operator could not be generated
1> c:\develop\ngene\ngene proj\guifont.h(53) : see declaration of 'nGENE::GUIFont'
1>c:\develop\microsoft directx sdk (march 2009)\include\dinput.h: DIRECTINPUT_VERSION undefined. Defaulting to version 0x0800
1>c:\develop\microsoft directx sdk (march 2009)\include\dinput.h: DIRECTINPUT_VERSION undefined. Defaulting to version 0x0800
1>c:\develop\ngene\ngene proj\guitextfield.cpp(118) : warning C4018: '<' : signed/unsigned mismatch
1>c:\develop\ngene\ngene proj\guitextfield.cpp(179) : warning C4018: '<' : signed/unsigned mismatch
1>c:\develop\ngene\ngene proj\guiwindow.cpp(129) : warning C4018: '<' : signed/unsigned mismatch
1>c:\develop\ngene\ngene proj\guiwindow.cpp(142) : warning C4389: '==' : signed/unsigned mismatch
1>GUIStatic.cpp
1>c:\develop\ngene\ngene proj\guifont.h(130) : warning C4512: 'nGENE::GUIFont' : assignment operator could not be generated
1> c:\develop\ngene\ngene proj\guifont.h(53) : see declaration of 'nGENE::GUIFont'
1>c:\develop\microsoft directx sdk (march 2009)\include\dinput.h: DIRECTINPUT_VERSION undefined. Defaulting to version 0x0800
1>GUIStage.cpp
1>c:\develop\microsoft directx sdk (march 2009)\include\dinput.h: DIRECTINPUT_VERSION undefined. Defaulting to version 0x0800
1>GUISlider.cpp
1>GUIScrollbar.cpp
1>c:\develop\ngene\ngene proj\guifont.h(130) : warning C4512: 'nGENE::GUIFont' : assignment operator could not be generated
1> c:\develop\ngene\ngene proj\guifont.h(53) : see declaration of 'nGENE::GUIFont'
1>c:\develop\microsoft directx sdk (march 2009)\include\dinput.h: DIRECTINPUT_VERSION undefined. Defaulting to version 0x0800
1>c:\develop\ngene\ngene proj\guifont.h(130) : warning C4512: 'nGENE::GUIFont' : assignment operator could not be generated
1> c:\develop\ngene\ngene proj\guifont.h(53) : see declaration of 'nGENE::GUIFont'
1>c:\develop\microsoft directx sdk (march 2009)\include\dinput.h: DIRECTINPUT_VERSION undefined. Defaulting to version 0x0800
1>GUIRadioButton.cpp
1>GUIManager.cpp
1>c:\develop\microsoft directx sdk (march 2009)\include\dinput.h: DIRECTINPUT_VERSION undefined. Defaulting to version 0x0800
1>c:\develop\ngene\ngene proj\guifont.h(130) : warning C4512: 'nGENE::GUIFont' : assignment operator could not be generated
1> c:\develop\ngene\ngene proj\guifont.h(53) : see declaration of 'nGENE::GUIFont'
1>GUIListBox.cpp
1>c:\develop\ngene\ngene proj\guifont.h(130) : warning C4512: 'nGENE::GUIFont' : assignment operator could not be generated
1> c:\develop\ngene\ngene proj\guifont.h(53) : see declaration of 'nGENE::GUIFont'
1>c:\develop\microsoft directx sdk (march 2009)\include\dinput.h: DIRECTINPUT_VERSION undefined. Defaulting to version 0x0800
1>GUIImage.cpp
1>c:\develop\microsoft directx sdk (march 2009)\include\dinput.h: DIRECTINPUT_VERSION undefined. Defaulting to version 0x0800
1>GUIGroupBox.cpp
1>GUIFont.cpp
1>c:\develop\ngene\ngene proj\guifont.h(130) : warning C4512: 'nGENE::GUIFont' : assignment operator could not be generated
1> c:\develop\ngene\ngene proj\guifont.h(53) : see declaration of 'nGENE::GUIFont'
1>GUIControlContainer.cpp
1>GUIControl.cpp
1>c:\develop\microsoft directx sdk (march 2009)\include\dinput.h: DIRECTINPUT_VERSION undefined. Defaulting to version 0x0800
1>GUIComboBox.cpp
1>c:\develop\ngene\ngene proj\guifont.cpp(213) : warning C4189: 'size' : local variable is initialized but not referenced
1>c:\develop\ngene\ngene proj\guifont.h(130) : warning C4512: 'nGENE::GUIFont' : assignment operator could not be generated
1> c:\develop\ngene\ngene proj\guifont.h(53) : see declaration of 'nGENE::GUIFont'
1>c:\develop\microsoft directx sdk (march 2009)\include\dinput.h: DIRECTINPUT_VERSION undefined. Defaulting to version 0x0800
1>GUICheckBox.cpp
1>GUIButton.cpp
1>c:\develop\ngene\ngene proj\guifont.h(130) : warning C4512: 'nGENE::GUIFont' : assignment operator could not be generated
1> c:\develop\ngene\ngene proj\guifont.h(53) : see declaration of 'nGENE::GUIFont'
1>c:\develop\microsoft directx sdk (march 2009)\include\dinput.h: DIRECTINPUT_VERSION undefined. Defaulting to version 0x0800

And.

1>c:\develop\microsoft visual studio 9.0\vc\include\utility(49) : warning C4244: 'initializing' : conversion from 'const double' to 'float', possible loss of data
1> c:\develop\ngene\ngene proj\nodeterrain.cpp(76) : see reference to function template instantiation 'std::pair<_Ty1,_Ty2>::pair<int,double>(const std::pair<int,double> &)' being compiled
1> with
1> [
1> _Ty1=nGENE::uint,
1> _Ty2=float
1> ]

And.

1>c:\develop\ngene\ngene proj\texturedx10.cpp(35) : warning C4608: 'nGENE::TextureDX10::m_p2DTexture' has already been initialized by another union member in the initializer list, 'nGENE::TextureDX10::<unnamed-tag>::nGENE::TextureDX10::m_p1DTexture'
1>c:\develop\ngene\ngene proj\texturedx10.cpp(35) : warning C4608: 'nGENE::TextureDX10::m_p3DTexture' has already been initialized by another union member in the initializer list, 'nGENE::TextureDX10::<unnamed-tag>::nGENE::TextureDX10::m_p2DTexture'
1>c:\develop\ngene\ngene proj\texturedx10.cpp(95) : warning C4189: 'pDevice' : local variable is initialized but not referenced
1>c:\develop\ngene\ngene proj\texturedx10.cpp(92) : warning C4189: 'format' : local variable is initialized but not referenced
1>c:\develop\ngene\ngene proj\texturedx10.cpp(144) : warning C4189: 'format' : local variable is initialized but not referenced
1>c:\develop\ngene\ngene proj\texturedx10.cpp(283) : warning C4189: 'pDevice' : local variable is initialized but not referenced
1>c:\develop\ngene\ngene proj\texturedx10.cpp(315) : warning C4101: 'b' : unreferenced local variable
1>c:\develop\ngene\ngene proj\texturedx10.cpp(315) : warning C4101: 'g' : unreferenced local variable
1>c:\develop\ngene\ngene proj\texturedx10.cpp(315) : warning C4101: 'r' : unreferenced local variable
1>c:\develop\ngene\ngene proj\texturedx10.cpp(324) : warning C4700: uninitialized local variable 'rect' used

And.

1>c:\develop\ngene\ngene proj\rendererdx9.cpp(917) : warning C4389: '!=' : signed/unsigned mismatch

And.

1>c:\develop\microsoft directx sdk (march 2009)\include\dinput.h: DIRECTINPUT_VERSION undefined. Defaulting to version 0x0800

I'll keep working to answer these but any help would be good. :)

unfold Error during compile by dArchitectdArchitect, 1242779029|%e %b %Y, %H:%M %Z|agohover
Re: Error during compile
dArchitectdArchitect 1242785341|%e %b %Y, %H:%M %Z|agohover

After I installed PhysX and pointed VStudio to each of the SDK/include directories many of my errors went away. However I now get this error

c:\develop\ngene\ngene proj\shaderdx10.cpp(256) : error C3861: 'D3DX10ReflectShader': identifier not found

which I can't figure out. I am still getting the warnings listed above. I am compiling this in WindowsXP which I know does not use DirectX10.

unfold Re: Error during compile by dArchitectdArchitect, 1242785341|%e %b %Y, %H:%M %Z|agohover
Re: Error during compile
dArchitectdArchitect 1242787630|%e %b %Y, %H:%M %Z|agohover

It could be that I still do not have PhysX setup properly but I don't quite understand this set of instructions.

***
Special care must be taken when installing PhysX. After you finish setup, copy all libs and includes (found in SDKs folder in your PhysX installation) to nGENE/Dependencies/PhysX directory. Make sure .lib files are put at the top of it. Includes folders, however should follow a structure provided by NVidia with exception that there are no "include" subdirectiories.

For instance you should put contents of SDKs/Foundation/include in nGENE/Dependencies/Foundation.
***

I also noticed that FastDelegate, Xerces, Lua, etc., headers/cpp/hpp are included with the SVN. Do I still need to download and install the source for each of these applications? If so, it would be nice if these "necessary" files were already included with the SVN download. :)

unfold Re: Error during compile by dArchitectdArchitect, 1242787630|%e %b %Y, %H:%M %Z|agohover
New post
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License