哎,所以我剛剛下載的子彈2.78,並採取了以下措施:子彈物理引擎靜態庫的安裝問題
解壓的,發現這個tutorial
嚴格遵循了C進行的步驟,除了我發現教程中的圖片像INSTALL LIBS那樣檢查了一些東西,並且我沒有這樣做,所以我最終檢查了所有可能的東西。
剛一進新生成的BULLET_PHYSICS.vcxproj並且把它建立在調試和發佈
看出我有一堆的新庫在msvn lib文件夾/ BulletBuild/lib下,但他們什麼也沒做
遵循本教程中的其餘步驟正是爲了建立實際的項目
試圖建立的代碼的最後一行:FAIL
想知道做我需要的DLL,因爲只有和的.libs PDBS lib文件夾中出現了,和教程沒有提到EM
我唯一的經驗,在重建庫是通過SFML通過建設它的msvn文件包含在下載中,並使用生成的動態lib和dll文件。然而,教程中的說明卻非常不同。 (如果有人可以向我解釋這是如何工作,這將是偉大的)
我按照指示完全,多次,但我不知道我失蹤。如果我註釋掉的主代碼行,但保留包括建築工作,但是當我把它我得到這個:
1>BulletTestApp.obj : error LNK2001: unresolved external symbol "void * __cdecl btAlignedAllocInternal(unsigned int,int)" ([email protected]@[email protected])
1>BulletTestApp.obj : error LNK2001: unresolved external symbol "void __cdecl btAlignedFreeInternal(void *)" ([email protected]@[email protected])
1>BulletTestApp.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall btConvexInternalShape::getAabbSlow(class btTransform const &,class btVector3 &,class btVector3 &)const " ([email protected]@@[email protected]@[email protected]@[email protected])
1>BulletTestApp.obj : error LNK2001: unresolved external symbol "public: virtual char const * __thiscall btCollisionShape::serialize(void *,class btSerializer *)const " ([email protected]@@[email protected]@@Z)
1>BulletTestApp.obj : error LNK2001: unresolved external symbol "public: __thiscall btPolyhedralConvexShape::btPolyhedralConvexShape(void)" ([email protected]@[email protected])
1>BulletTestApp.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall btPolyhedralConvexShape::~btPolyhedralConvexShape(void)" ([email protected]@[email protected])
1>BulletTestApp.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall btConvexInternalShape::setLocalScaling(class btVector3 const &)" ([email protected]@@[email protected]@@Z)
1>BulletTestApp.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall btCollisionShape::getBoundingSphere(class btVector3 &,float &)const " ([email protected]@@[email protected]@[email protected])
1>BulletTestApp.obj : error LNK2001: unresolved external symbol "public: virtual float __thiscall btCollisionShape::getAngularMotionDisc(void)const " ([email protected]@@UBEMXZ)
1>BulletTestApp.obj : error LNK2001: unresolved external symbol "public: virtual float __thiscall btCollisionShape::getContactBreakingThreshold(float)const " ([email protected]@@[email protected])
1>BulletTestApp.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall btCollisionShape::serializeSingleShape(class btSerializer *)const " ([email protected]@@[email protected]@@Z)
1>BulletTestApp.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall btBoxShape::getAabb(class btTransform const &,class btVector3 &,class btVector3 &)const " ([email protected]@@[email protected]@[email protected]@[email protected])
1>BulletTestApp.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall btBoxShape::calculateLocalInertia(float,class btVector3 &)const " ([email protected]@@[email protected]@@Z)
1>BulletTestApp.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall btPolyhedralConvexShape::initializePolyhedralFeatures(void)" ([email protected]@@UAE_NXZ)
1>C:\Libraries and Headers\Bullet\bullet-2.78\msvc\BulletTestApp\Release\BulletTestApp.exe : fatal error LNK1120: 14 unresolved externals
我知道某處有一個鏈接的問題,但我也跟着指示操作,所以就不會不知道如何解決它。當看到添加的項目的屬性時,我沒有看到任何額外的依賴關係,如果這不是它本應該如此的話...... 但我想我不明白這種首先使用庫的方法,儘管如此知識會有所幫助。