Hi all,
This may seem like a small problem, but I haven’t been able to figure out how to successfully include the Bullet library into the .pyd module I’m generating. I’m using the module builder (that makes it a breeze to use interrogate) to generate these modules and it already seems to have a CMakeLists.txt that should automatically do all the linking for me. Is there something I need to manually do? Here is the error I’m getting:
c:\panda3d-1.10.14-x64\include\bullet_includes.h(19): fatal error C1083: Cannot open include file: 'btBulletDynamicsCommon.h': No such file or directory (compiling source file C:\Panda3D-1.10.14-x64\P3DModuleBuilder-master\P3DModuleBuilder-master\source\interrogate_wrapper.cpp) [C:\Panda3D-1.10.14-x64\P3DModuleBuilder-master\P3DModuleBuilder-master\win_amd64_panda1.10.14_py37_vc140\genModule.vcxproj]
Traceback (most recent call last):
File "build.py", line 52, in <module>
run_cmake_build(config, args)
File "C:\Panda3D-1.10.14-x64\P3DModuleBuilder-master\P3DModuleBuilder-master\scripts\setup.py", line 174, in run_cmake_build
try_execute("cmake", "--build", ".", "--config", configuration, "--", core_option)
File "C:\Panda3D-1.10.14-x64\P3DModuleBuilder-master\P3DModuleBuilder-master\scripts\common.py", line 271, in try_execute
raise Exception("Process had non-zero returncode:", process.returncode)
Exception: ('Process had non-zero returncode:', 1)
So what would the step-by-step process be to ensure that one can generate modules that use Bullet without encountering such errors? (And yes, I did download the thirdparty tools, I’m just not sure how to install bullet from them manually).
UPDATE
So I manually moved a bunch of files and folders to this directory: c:\panda3d-1.10.14-x64\include
and it did clear the prior error. I moved these files and folders from the third-party package bullet folder: BulletCollision,BulletDynamics,BulletSoftBody,LinerMath and btBulletCollisionCommon.h and btBulletDynamicsCommon.h. However new errors emerge:
Creating library C:/Panda3D-1.10.14-x64/P3DModuleBuilder-master/P3DModuleBuilder-master/win_amd64_panda1.10.14_py37_vc140/RelWithDebInfo/genModule.lib and object C:/Panda3D-1.10.14-x64/P3DModuleBuilder-master/P3DModuleBuilder-master/win_amd64_panda1.10.14_py37_vc140/RelWithDebInfo/genModule.exp
interrogate_wrapper.obj : error LNK2001: unresolved external symbol "public: virtual class TypeHandle __cdecl BulletTriangleMesh::get_type(void)const " (?get_type@BulletTriangleMesh@@UEBA?AVTypeHandle@@XZ) [C:\Panda3D-1.10.14-x64\P3DModuleBuilder-master\P3DModuleBuilder-master\win_amd64_panda1.10.14_py37_vc140\genModule.vcxproj]
interrogate_wrapper.obj : error LNK2001: unresolved external symbol "public: virtual class TypeHandle __cdecl BulletTriangleMesh::force_init_type(void)" (?force_init_type@BulletTriangleMesh@@UEAA?AVTypeHandle@@XZ) [C:\Panda3D-1.10.14-x64\P3DModuleBuilder-master\P3DModuleBuilder-master\win_amd64_panda1.10.14_py37_vc140\genModule.vcxproj]
interrogate_wrapper.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl BulletTriangleMesh::output(class std::basic_ostream<char,struct std::char_traits<char> > &)const " (?output@BulletTriangleMesh@@UEBAXAEAV?$basic_ostream@DU?$char_traits@D@std@@@std@@@Z) [C:\Panda3D-1.10.14-x64\P3DModuleBuilder-master\P3DModuleBuilder-master\win_amd64_panda1.10.14_py37_vc140\genModule.vcxproj]
interrogate_wrapper.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl BulletTriangleMesh::write(class std::basic_ostream<char,struct std::char_traits<char> > &,int)const " (?write@BulletTriangleMesh@@UEBAXAEAV?$basic_ostream@DU?$char_traits@D@std@@@std@@H@Z) [C:\Panda3D-1.10.14-x64\P3DModuleBuilder-master\P3DModuleBuilder-master\win_amd64_panda1.10.14_py37_vc140\genModule.vcxproj]
How would I resolve these?
Thanks in advance.