make error in ogrenewt20

pexgear

17-01-2012 15:23:16

After compiling the ogrenewt correctly with cmake, when I run "make" from shell it crashes with this error:

/SDK/newton20/build$ sudo cmake ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- checking for one of the modules 'OGRE'
-- libraries : OgreMain;pthread from /usr/local/lib
-- includes : /usr/local/include;/usr/local/include/OGRE
-- Checking for Newton
-- libraries: /usr/lib/libNewton.so
-- includes: /usr/include/newtonSDK
-- version: 2.28-beta19
-- Enabled features:
OGRE (required version >= 1.6)
Newton (required version >= 2.0)

-- Configuring done
-- Generating done
-- Build files have been written to: /home/peppe/SDK/newton20/build
peppe@peppe-Lenovo-G550:~/SDK/newton20/build$ sudo make
Scanning dependencies of target OgreNewt
[ 5%] Building CXX object CMakeFiles/OgreNewt.dir/src/OgreNewt_BasicJoints.cpp.o
[ 11%] Building CXX object CMakeFiles/OgreNewt.dir/src/OgreNewt_BasicFrameListener.cpp.o
[ 16%] Building CXX object CMakeFiles/OgreNewt.dir/src/OgreNewt_Body.cpp.o
[ 22%] Building CXX object CMakeFiles/OgreNewt.dir/src/OgreNewt_BodyInAABBIterator.cpp.o
[ 27%] Building CXX object CMakeFiles/OgreNewt.dir/src/OgreNewt_Collision.cpp.o
[ 33%] Building CXX object CMakeFiles/OgreNewt.dir/src/OgreNewt_CollisionPrimitives.cpp.o
[ 38%] Building CXX object CMakeFiles/OgreNewt.dir/src/OgreNewt_CollisionSerializer.cpp.o
[ 44%] Building CXX object CMakeFiles/OgreNewt.dir/src/OgreNewt_ContactCallback.cpp.o
In file included from /home/peppe/SDK/newton20/inc/OgreNewt_ContactCallback.h:17:0,
from /home/peppe/SDK/newton20/src/OgreNewt_ContactCallback.cpp:2:
/home/peppe/SDK/newton20/inc/OgreNewt_ContactJoint.h: In member function ‘void OgreNewt::Contact::getPositionAndNormal(Ogre::Vector3&, Ogre::Vector3&, OgreNewt::Body*) const’:
/home/peppe/SDK/newton20/inc/OgreNewt_ContactJoint.h:115:193: error: cannot convert ‘NewtonBody*’ to ‘float*’ for argument ‘2’ to ‘void NewtonMaterialGetContactPositionAndNormal(const NewtonMaterial*, float*, float*)’
/home/peppe/SDK/newton20/inc/OgreNewt_ContactJoint.h: In member function ‘void OgreNewt::Contact::getTangentDirections(Ogre::Vector3&, Ogre::Vector3&, OgreNewt::Body*) const’:
/home/peppe/SDK/newton20/inc/OgreNewt_ContactJoint.h:118:195: error: cannot convert ‘NewtonBody*’ to ‘float*’ for argument ‘2’ to ‘void NewtonMaterialGetContactTangentDirections(const NewtonMaterial*, float*, float*)’
make[2]: *** [CMakeFiles/OgreNewt.dir/src/OgreNewt_ContactCallback.cpp.o] Errore 1
make[1]: *** [CMakeFiles/OgreNewt.dir/all] Errore 2
make: *** [all] Errore 2


Do you know what I'm missing?I'm trying to compile every kind of physics engine but not worked out till now