Compiling MogreNewt with Newton 2.33

KobayashiK

03-11-2011 10:07:04

Hi,
I tried to compile/build head revision of MogreNewt using Newton 2.33 ( also tried with current head version of Newton library). But I am getting few compiler errors as listed below.

  1. error C2660: 'NewtonCreateBody' : function does not take 2 arguments c:\MogreNewt-Src\MogreNewt_Main\src\OgreNewt_Body.cpp
    error C2660: 'NewtonMaterialGetContactForce' : function does not take 2 arguments c:\MogreNewt-Src\MogreNewt_Main\src\Material.cpp
    error C2660: 'NewtonMaterialGetContactPositionAndNormal' : function does not take 3 arguments c:\MogreNewt-Src\MogreNewt_Main\src\Material.cpp
    error C2660: 'NewtonMaterialGetContactTangentDirections' : function does not take 3 arguments c:\MogreNewt-Src\MogreNewt_Main\src\Material.cpp
    error C2660: 'NewtonMaterialGetContactForce' : function does not take 2 arguments c:\MogreNewt-Src\MogreNewt_Main\src\ContactMaterial.cpp
    error C2660: 'NewtonMaterialGetContactPositionAndNormal' : function does not take 3 arguments c:\MogreNewt-Src\MogreNewt_Main\src\ContactMaterial.cpp
    error C2660: 'NewtonMaterialGetContactTangentDirections' : function does not take 3 arguments c:\MogreNewt-Src\MogreNewt_Main\src\ContactMaterial.cpp[/list:u]

    Has anybody updated MogreNewt which is compatible with recent versions of Newton library (version 2.33 or later)?? Or is any workaround to solve this compiler errors?

Beauty

09-11-2011 11:24:48

It seems so that the Newton API was changed.
In this case it's needed to update the wrapper code.
I suppose it's published somewhere in the (long) main discussion topic for MogreNewt:
viewtopic.php?f=8&t=9193

Currently I don't know where the current sources are available, but I know there is still a version which was compiled successfully with Newton 2.33.

Maybe for your project it's sufficient to use the Mogre binary bundle of user Cygon. It also contains binaries for MogreNewt / Newton 2.33
viewtopic.php?f=8&t=14645

KobayashiK

11-11-2011 09:28:46

Hi,
Thanks for the reply.
I applied the patches updated by Cygon and able to build with latest Newton code without any error.
But my current MogreNewt dll is not compatible with my application :( , seems problem with dll versioning, Since MogreNewt depends on Mogre/OgreMain/Newton, somewhere something went wrong, trying to fix this.

Beauty

11-11-2011 11:17:04

Don't forget the file newton.dll in your binary directory.
In the past this file was inside of MogreNewt.dll.
The "Cygon build" does not contain the file.
Maybe this solves your problem.