I set my environment in Ubuntu 20.04 and g++ 9.3.0, and successfully installed bullet using vcpkg by following official vcpkg instruction(https://github.com/bulletphysics/bullet ... sing-vcpkg)
And then when I tried to build helloworld example code(https://github.com/bulletphysics/bullet ... oWorld.cpp) using g++ like below, it raised the error:
Code: Select all
> g++ opengl_example.cpp
opengl_test.cpp:15:10: fatal error: btBulletDynamicsCommon.h: No such file or directory
15 | #include "btBulletDynamicsCommon.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Code: Select all
> g++ opengl_example.cpp -I/home/jinprelude/Downloads/vcpkg/installed/x64-linux/include/bullet
/usr/bin/ld: /tmp/ccqWeDL6.o: in function `main':
opengl_test.cpp:(.text+0x58): undefined reference to `btDefaultCollisionConfiguration::btDefaultCollisionConfiguration(btDefaultCollisionConstructionInfo const&)
Has anyone experienced a problem like this? Any kinds of replies are welcome!
And please let me know if there are any instances in this article that violate the rules of the forum. I'll fix it and upload it again.
Thanks for your time!
Best regards
jinprelude