g++ can't find bullet in ubuntu + vckpg install
Posted: Mon Aug 23, 2021 3:38 am
Hi! I'm the beginner who's trying to use bullet in c++ environment.
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:
I also tried adding absolute path of the bullet by following command but it also failed:
Same erorr was also raised in Ubuntu 18.04, and the second trial which I mentioned was executed today right after the ubuntu 20.04 finished the installation.
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
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