微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

子弹物理引擎静态库安装问题

嘿所以我刚刚下载了子弹2.78,并采取了以下步骤:

unziped,并find这个教程

紧跟Cmake的步骤,除了我发现教程中的图片有一些东西像INSTALL LIBS检查,我没有,所以我最终检查了一切可能。

进入新生成的BULLET_PHYSICS.vcxproj并在debugging和释放下构build它

如何安装非零退出状态的tar.gz R包

Emacs 23.1.50.1在Windows XP上以6-8秒的速度挂起

在Windows Vista命令提示符下运行“导入挂架”时,如何识别挂架?

将perl应用程序和支持模块一起安装到没有编译器的Windows PC上

从Windows服务安装/更新驱动程序

看到我在msvn / BulletBuild / lib的lib文件夹中有一堆新的库,但没有做任何事情

遵循本教程中其余的步骤准确设置实际项目

试图build立最后一行代码:失败

想知道我是否需要dll,因为只有.libs和pdbs出现在lib文件夹中,并且教程没有提及em

我唯一的重build库的经验是通过SFML构build其下载的msvn文件并使用生成的dynamiclib和dll文件。 然而,教程中的说明却非常不同。 (如果有人可以向我解释这是如何工作,这将是伟大的)

我严格按照指示,多次,但我不知道我错过了什么。 构build工程,如果我注释掉主线代码行,但保持包括,但是当我保持它,我得到这个:

1>BulletTestApp.obj : error LNK2001: unresolved external symbol "void * __cdecl btAlignedAlLocinternal(unsigned int,int)" (?btAlignedAlLocinternal@@YApaxIH@Z) 1>BulletTestApp.obj : error LNK2001: unresolved external symbol "void __cdecl btAlignedFreeInternal(void *)" (?btAlignedFreeInternal@@YAXpax@Z) 1>BulletTestApp.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall btConvexInternalShape::getAabbSlow(class btTransform const &,class btVector3 &,class btVector3 &)const " (?getAabbSlow@btConvexInternalShape@@UBEXABVbtTransform@@AAVbtVector3@@1@Z) 1>BulletTestApp.obj : error LNK2001: unresolved external symbol "public: virtual char const * __thiscall btCollisionShape::serialize(void *,class btSerializer *)const " (?serialize@btCollisionShape@@UBEPBDpaxPAVbtSerializer@@@Z) 1>BulletTestApp.obj : error LNK2001: unresolved external symbol "public: __thiscall btpolyhedralConvexShape::btpolyhedralConvexShape(void)" (??0btpolyhedralConvexShape@@QAE@XZ) 1>BulletTestApp.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall btpolyhedralConvexShape::~btpolyhedralConvexShape(void)" (??1btpolyhedralConvexShape@@UAE@XZ) 1>BulletTestApp.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall btConvexInternalShape::setLocalScaling(class btVector3 const &)" (?setLocalScaling@btConvexInternalShape@@UAEXABVbtVector3@@@Z) 1>BulletTestApp.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall btCollisionShape::getBoundingSphere(class btVector3 &,float &)const " (?getBoundingSphere@btCollisionShape@@UBEXAAVbtVector3@@AAM@Z) 1>BulletTestApp.obj : error LNK2001: unresolved external symbol "public: virtual float __thiscall btCollisionShape::getAngularMotiondisc(void)const " (?getAngularMotiondisc@btCollisionShape@@UBEMXZ) 1>BulletTestApp.obj : error LNK2001: unresolved external symbol "public: virtual float __thiscall btCollisionShape::getContactBreakingThreshold(float)const " (?getContactBreakingThreshold@btCollisionShape@@UBemm@Z) 1>BulletTestApp.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall btCollisionShape::serializeSingleShape(class btSerializer *)const " (?serializeSingleShape@btCollisionShape@@UBEXPAVbtSerializer@@@Z) 1>BulletTestApp.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall btBoxShape::getAabb(class btTransform const &,class btVector3 &)const " (?getAabb@btBoxShape@@UBEXABVbtTransform@@AAVbtVector3@@1@Z) 1>BulletTestApp.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall btBoxShape::calculateLocalInertia(float,class btVector3 &)const " (?calculateLocalInertia@btBoxShape@@UBEXMAAVbtVector3@@@Z) 1>BulletTestApp.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall btpolyhedralConvexShape::initializepolyhedralFeatures(void)" (?initializepolyhedralFeatures@btpolyhedralConvexShape@@UAE_NXZ) 1>C:Libraries and HeadersBulletbullet-2.78msvcBulletTestAppReleaseBulletTestApp.exe : Fatal error LNK1120: 14 unresolved externals

我知道有一个链接问题的地方,但我完全按照指示,所以我不知道如何解决它。 当看到添加的项目的属性时,我不会看到任何额外的依赖关系,如果这不是它应该如何… 但是我想我不明白这种使用库的方法,尽pipe这样,知识有助于。

如何创build将安装可执行Jar的安装文件

如何安装AccessControl NSIS插件? 并授予完全访问子文件夹?

运行MSI文件中的Wine问题

在linux下安装jdk 1.7时出错

如何在Windows中安装InfluxDB

好吧,所以显然右键点击我的TestBulletApp项目,然后点击“Project Dependencies”是我出错的地方。 msVS ++ 2010由于某种原因在那里留下了选项,即使它

不这样做的工作 。

相反,要使项目依赖于解决方案中的其他项目,你必须右键点击你的项目,像我的“TestBulletApp”,并转到属性 – >通用属性 – >框架和参考 – >添加新的参考“,添加依赖已添加到“bulletCollision”之类的静态库项目中;还要检查右侧的“Link Library Dependencies”为“True”。

所以,谢谢你的头……“咳嗽”“咳嗽”=)

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐