error C2514: 'nxOgre::character' : class has no constructors

jauja

28-06-2007 17:50:37

Igot the followings errors while building NxOgre:

Error 1 error C2514: 'nxOgre::structure' : class has no constructors C:\programing\NxOgre.0.4.RC3\NxOgre\include\nxOgre_structure.h 75

Error 2 error C2514: 'nxOgre::character' : class has no constructors C:\programing\NxOgre.0.4.RC3\NxOgre\include\nxOgre_character.h 62

Error 3 error C2514: 'nxOgre::character' : class has no constructors C:\programing\NxOgre.0.4.RC3\NxOgre\include\nxOgre_character.h 62


Sounds like i had to disable some compiling errors...
help please!!

betajaen

28-06-2007 17:53:06

I think there is something in the 0.4RC3 thread about it.

You should use 0.6 at least though. Or even 0.9 it's miles better.

jauja

28-06-2007 18:09:25

ok i will try 0.9

jauja

28-06-2007 18:19:59

betajaen
I have downloaded the head version, but it seems to have lot of errors

Should i check out from concrete date?

betajaen

28-06-2007 18:36:30

What are the errors? Also what versions are you using; Compiler, Ogre and PhysX?

jauja

28-06-2007 21:26:06

Lot of error like those:

Error 1 error C2039: 'contactPosition' : is not a member of 'NxWheelContactData' c:\programing\NxOgre\NxOgre\source\NxOgreShapeWheel.cpp 248
Error 2 error C2039: 'fromFluidResponseCoefficient' : is not a member of 'NxClothDesc' c:\programing\NxOgre\NxOgre\source\NxOgreCloth.cpp 189
Error 3 error C2039: 'toFluidResponseCoefficient' : is not a member of 'NxClothDesc' c:\programing\NxOgre\NxOgre\source\NxOgreCloth.cpp 197
Error 4 error C2660: 'NxCloth::getShapePointers' : function does not take 2 arguments c:\programing\NxOgre\NxOgre\source\NxOgreCloth.cpp 1235

...



Im using Microsoft Visual Studio 2005 VC++8.0
Ogre 1.4.2
And Ageia Physics 2.7 i downloaded this file: PhysX_2.7.0_SDK_Core.exe
I used this url for svn NxOgre: http://latest.nxogre.org/nxogre3/

I think some one have commite some code with compilation errors... could it be?

i have seen that u talk in varios post about versions of the code like this:


0.9-16
- Fixed problem with dynamic shapes not being rendered or simulated in classes that inherit actor.
<Betajaen> 15-Apr-2007

0.9-15
- Fixed changes.txt.
....

0.9-14
Dynamic shapes system added. Inital wheelShape and wheel code
...
0.9-13
Initial Joints added. Revolute Joint added.
...
0.9-12


Should I asumme tha thous numbers (0.9-16,0.9-15,0.9-15 ...) are the revision name in svn??? Perhaps i should try to download a revision...
thanks a lot

betajaen

28-06-2007 21:43:27

Your version information looks fine, and you should be using NxOgre 0.9'27 which is the latest SVN revision.

Those errors posted look like, PhysX 2.6.2 used with NxOgre. So make sure that you have '27 downloaded.

jauja

28-06-2007 22:26:54

new error arrive...

Error 1 error PRJ0019: A tool returned an error code from "Performing Post-Build Event..." NxOgre


The others ones have dissapear...

Im very offuscated...

Thank for your help

betajaen

28-06-2007 22:49:56

Ignore that error. It's been compiled.

jauja

02-07-2007 17:53:37

What is the next step that i should make

I got the following files under ...\NxOgre\lib

02/07/2007 18:49 348.160 NxOgre.dll
02/07/2007 18:48 239.517 NxOgre.exp
02/07/2007 18:48 392.574 NxOgre.lib
02/07/2007 18:49 8.055.808 NxOgre.pdb

Is this correct?? Wichs ones do i need to set up a sample project?

And where reference them??

I promise to make a small guide when finish!!!

thanks all

betajaen

02-07-2007 18:01:31

.lib and .dll.

We don't need a guide, we have a book, 45 tutorials and an entire wiki telling us how to do it.

jauja

02-07-2007 19:03:29

Where should i copy those files ?? and how should i link them in a sample project , i have been searching on the wiki but i couldnt see it...

Igot the following error:

Error 1 fatal error C1083: Cannot open include file: 'Nx.h': No such file or directory d:\ogre\nxogre\nxogre\include\nxogrestable.h 109

This last one error has been solved. Only need to add the include dir from Ageia PhysX... Im very.... :oops:

Sorry for the lost time

betajaen

02-07-2007 19:36:17

You only need to copy the dll to the executable directory.

You need to add the NxOgre include and PhysX directories to the list of headers (Just like you do it with Ogre).

These are:
$(PHYSX_DIR)\SDKs\PhysXLoader\include
$(PHYSX_DIR)\SDKs\Physics\include
$(PHYSX_DIR)\SDKs\Foundation\include
$(PHYSX_DIR)\SDKs\Cooking\include
$(PHYSX_DIR)\SDKs\NxCharacter\include
NxOgre-Directory\include


And include the NxOgre.lib and PhysX.lib in the linker settings.

You add these directories to the linker settings:

$(PHYSX_DIR)\SDKs\lib\win32\
$(PHYSX_DIR)\SDKs\Physics\lib\win32\Release
$(PHYSX_DIR)\SDKs\Cooking\lib\win32\Release
$(PHYSX_DIR)\SDKs\NxCharacter\lib\win32\Release
NxOgre-Directory\lib


And include these libraries:

PhysXLoader.lib
NxCooking.lib
NxCharacter.lib
NxOgre_d.lib



This is all basic stuff with C++, which you should know already.

jauja

02-07-2007 19:47:35

mmmm
i think that the error posted in:

http://www.ogre3d.org/phpBB2addons/viewtopic.php?p=27161#27161

could be solved by adding the lib directory... i will try it latter

thanku very much betajaen

Im ver nob in c++ its very confusing for me since i come from the "beautifull" java world where all it runs magically good