1

我在 Mac 上使用 QT 创建 hello world Bullet 项目时遇到问题。Bullet 库已构建,我正在使用此处找到的 Hello World 代码

这是编译输出的内容:

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'

该项目发现库很好,但它给了我这个错误。我通过终端查看了子弹库,它说 maxdot_large 是未定义的。

有人遇到过这个问题吗?有任何想法吗?

4

0 回答 0