Skip to content

Commit

Permalink
Merge pull request #8 from CPRT/better-builds
Browse files Browse the repository at this point in the history
Fix missing dependencies and build errors
  • Loading branch information
ConnorNeed authored Jan 7, 2025
2 parents e0b7fe4 + eacdbca commit a28626f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
5 changes: 5 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

rosdep install --from-paths src -i -r -y

colcon build --symlink-install --continue-on-error --cmake-args=-DCMAKE_BUILD_TYPE=Release --parallel-workers $(nproc)
23 changes: 22 additions & 1 deletion firstTimeInstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,25 @@ echo "export GST_PLUGIN_PATH=$GST_PLUGIN_PATH" >> $GSTREAMER_DIR/setupGstreamer.

echo "Finished building GStreamer"

source ~/.bashrc
source ~/.bashrc

echo "Downloading ZED SDK ..."
cd /tmp
if [ "$(uname -m)" == "aarch64" ]; then
curl -L https://stereolabs.sfo2.cdn.digitaloceanspaces.com/zedsdk/4.2/ZED_SDK_Tegra_L4T36.4_v4.2.2.zstd.run -o zed_sdk_installer.run
else
curl -L https://download.stereolabs.com/zedsdk/4.2/cu12/ubuntu22 -o zed_sdk_installer.run
fi
chmod +x zed_sdk_installer.run
./zed_sdk_installer.run -- silent
echo "Finished downloading ZED SDK ..."

echo "Building Kindr ..."
cd /tmp
git clone https://github.com/ANYbotics/kindr.git
cd kindr/
mkdir build
cd build
cmake .. -DUSE_CMAKE=true
sudo make install
echo "Finished building Kindr ..."

0 comments on commit a28626f

Please sign in to comment.