如何使用子弹物理游戏和ndk在Android设备上开发3D游戏
我的作业是做一个3d游戏,需要物理引擎支持。我选择了子弹,但它是用C++编写的,我建议用ndk构建我的项目。但是,要运行子弹程序,您需要四个静态库文件:
- BulletCollision_debug.lib
- BulletDynamics_debug.lib
- BulletSoftBody_debug.lib
- LinearMath_debug.lib
我不知道如何在 ndk-build 下处理这些库。除此之外,我想知道.lib和.a之间的区别。前者是c++静态库,后者是ndk静态库。你能帮我解开这个谜题吗?
My homework is to do a 3d game which needs a physics engine support. I chose a bullet, but it was written in C++, and I proposed to build my project with ndk. However, to run a bullet program, you need four static library files:
- BulletCollision_debug.lib
- BulletDynamics_debug.lib
- BulletSoftBody_debug.lib
- LinearMath_debug.lib
I don't know how to deal with these libraries under ndk-build. Besides that, I want to know the difference between .lib and .a. The former is a c++ static library, and the latter is an ndk static library. Could you help me clarify the puzzle?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信这些是不同的库格式,.lib 适用于 Windows。您可能想考虑使用适用于 Android 的 NDK。
Those are different library formats the .lib is for windows I believe. You probably want to look into using the NDK for android.