A tech demo world for Carob.
git clone --recurse-submodules https://github.com/carobim/carob-testing.git
cd carob-testingFrom the root directory:
# macOS
brew install yt-dlp
brew install ffmpegcd data/music
yt-dlp -x -f 22 -o Autumn_Forest.mp4 'https://www.youtube.com/watch?v=v2qOllkxwiw'
ffmpeg -i Autumn_Forest.m4a -c:a libvorbis Autumn_Forest.oga
cd ../..# macOS
cd data/music
curl -O https://pdm.me/Autumn_Forest.oga
cd ../..# Ubuntu
cd data/music
wget https://pdm.me/Autumn_Forest.oga
cd ../..# macOS
brew install sdl2 sdl2_image sdl2_mixer# Ubuntu
sudo apt-get install cmake g++ make pkg-config libsdl2-dev libsdl2-image-dev libsdl2-mixer-devFrom the root directory:
Compile:
# macOS
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug -DAV_SDL2=On
make
cd ..# Ubuntu
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug -DAV_SDL2=On
make
cd ..Build the resources:
carob/scripts/build-config.sh
carob/scripts/build-world.shBuild the application bundle/install to bin:
# macOS
carob/scripts/build-bundle-debug.sh# Ubuntu
cp build-debug/carob bin/On macOS, open Carob.app in Finder.
On Ubuntu, open bin/carob in Files.
# macOS
Carob.app/Contents/MacOS/Carob# Ubuntu
cd bin
./carobFrom the root directory:
# macOS
lldb Carob.app/Contents/MacOS/Carob# Ubuntu
cd bin
gdb ./carob- Windows instructions