jasonmzx / cppkart

3D Racing Game Engine, Built with OpenGL, SDL & Bullet Physics
110 stars 9 forks source link

Can't build and run #8

Closed FuzzzyYeti closed 2 months ago

FuzzzyYeti commented 3 months ago

Screenshot from 2024-06-27 11-07-47

I used this command lines
sudo apt install build-essential cmak sudo apt install libsdl2-dev sudo apt install libbullet-dev sudo apt install assimp-utils libassimp-dev libassimp5

and use this command line

cmake .. make

My os is Ubuntu 22.04 LTS

How can i fix that error ?

jasonmzx commented 3 months ago

Hey sorry I forgot to update the Readme, but you need to install bullet through VCPKG instead of the 'libbullet-dev' package, I'll probably update this tomorrow in the readme... sorry for the issue

If you go on the rewrite_2 branch you should be able to build & run as its still using the libbullet apt lib, but for main you need Bullet installed via VCPKG

atharva-0123-cs commented 3 months ago

I just removed the "CONFIG"
find_package(Bullet REQUIRED) # Note: Removed CONFIG and it worked

jasonmzx commented 2 months ago

Updated readme to show you how to do it, pls uninstall libbullet-dev on apt, and follow the readme, hope this works!