Weird compile error

sebcologne
Posts: 2
Joined: Wed Dec 25, 2013 7:33 pm

Weird compile error

Post by sebcologne »

Hello ladies and gentlemen,
i managed to run bullet on my android mobile - i can add rigid bodies and so - but then I wanted to add a rayCastVehicle.
A weird error appeared when adding this line:

Code: Select all

btVehicleRaycaster* raycaster = new btDefaultVehicleRaycaster(static_cast <btDynamicsWorld *> (dynamicsWorld));
And this error raises:

Code: Select all

in function Java_com_impress_bullettest_BulletLib_addCarConstraint:jni/bullet.cpp:168: error: undefined reference to 'vtable for btDefaultVehicleRaycaster'
I searched for like 2 hours on google and the vehicle demo, but couldn´t find anything helpful.

So my newbie question is, what am I doing wrong?
I only included btBulletDynamicsCommon.h and tried to include "BulletDynamics/Vehicle/btRaycastVehicle.h", but nothing!

Any ideas ? :D
sebcologne
Posts: 2
Joined: Wed Dec 25, 2013 7:33 pm

Re: Weird compile error

Post by sebcologne »

After hours of searching I solved it :D

I don´t know why, but a line in the Android.mk file was missing!

Code: Select all

LOCAL_SRC_FILES := \
...
$(wildcard $(LOCAL_PATH)/src/BulletDynamics/Dynamics/*.cpp) \

Now I hate myself for making such an mistake :D