我在使用Mac上的QT创建一个hello world Bullet项目时遇到问题。 Bullet库已经构建,我正在使用Hello World代码found here
这是编译输出的内容:
Undefined symbols:
"_maxdot_large(float const*, float const*, unsigned long, float*)", referenced from:
__ZL17convexHullSupportRK9btVector3PS0_iS1_ in libBulletCollision.a(btConvexShape.o)
btPolyhedralConvexShape::batchedUnitVectorGetSupportingVertexWithoutMargin(btVector3 const*, btVector3*, int) constin libBulletCollision.a(btPolyhedralConvexShape.o)
btPolyhedralConvexShape::localGetSupportingVertexWithoutMargin(btVector3 const&) constin libBulletCollision.a(btPolyhedralConvexShape.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [helloWorldBullet.app/Contents/MacOS/helloWorldBullet] Error 1
12:45:12: The process "/usr/bin/make" exited with code 2.
Error while building project helloWorldBullet (target: Desktop)
When executing build step 'Make'
该项目找到了库,但它给了我这个错误。我通过终端查看Bullet Libraries,它说maxdot_large未定义。
有人有这个问题吗?有什么想法吗?