JuanCarlosAragon / jmonkeyengine

Automatically exported from code.google.com/p/jmonkeyengine
0 stars 0 forks source link

native bullet does not compile #362

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Executing "ant build-bullet-natives" fails with the following error:
[cc] jme3/engine/src/bullet/native/com_jme3_bullet_objects_PhysicsVehicle.cpp: 
In function 'void 
Java_com_jme3_bullet_objects_PhysicsVehicle_getForwardVector(JNIEnv*, jobject, 
jlong, jobject)':
       [cc] jme3/engine/src/bullet/native/com_jme3_bullet_objects_PhysicsVehicle.cpp:233:64: error: taking address of temporary [-fpermissive]
       [cc] jme3/engine/src/bullet/native/com_jme3_bullet_util_DebugShapeFactory.cpp: In function 'void Java_com_jme3_bullet_util_DebugShapeFactory_getVertices(JNIEnv*, jclass, jlong, jobject)':
       [cc] jme3/engine/src/bullet/native/com_jme3_bullet_util_DebugShapeFactory.cpp:108:61: error: taking address of temporary [-fpermissive]

gcc 4.6.0 on Arch Linux x86_64

Original issue reported on code.google.com by marius.d...@gmail.com on 22 Jun 2011 at 2:57

GoogleCodeExporter commented 8 years ago

Original comment by ShadowIs...@gmail.com on 11 Feb 2012 at 8:04

GoogleCodeExporter commented 8 years ago
change your compiler settings, it works fine on our server
these are the lines:

        btVector3 forwardVector = vehicle->getForwardVector();
        jmeBulletUtil::convert(env, &forwardVector, out);

Original comment by normen667 on 11 Feb 2012 at 9:27