Skip to content

Commit 454b958

Browse files
committed
Refactor Homebrew installation script to remove Boost and add symlink creation for urdfdom libraries
1 parent 4dd1bf4 commit 454b958

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/scripts/cibw_before_all_macos.sh

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,25 @@ fi
1919

2020
# Install Base System Dependencies via Homebrew
2121
echo "Installing base system dependencies..."
22-
brew install cmake wget git boost
22+
brew install cmake wget git
2323

2424
# Install SDFormat via Homebrew
2525
brew tap osrf/simulation
26+
brew install urdfdom # Install dependency explicitly first
27+
brew upgrade urdfdom # Force it to the latest version (5.1+)
2628
brew install sdformat15
2729
brew --prefix urdfdom
2830

31+
# Create symlinks for urdfdom 5.1
32+
URDF_ROOT=$(brew --prefix urdfdom)
33+
for lib in sensor model world; do
34+
if [ ! -f "$URDF_ROOT/lib/liburdfdom_${lib}.5.1.dylib" ]; then
35+
echo "Creating safety symlink for liburdfdom_${lib}.5.1.dylib"
36+
ln -s "$URDF_ROOT/lib/liburdfdom_${lib}.dylib" "$URDF_ROOT/lib/liburdfdom_${lib}.5.1.dylib" || true
37+
fi
38+
done
39+
40+
2941
# Clone GTSAM (don't build yet, depends on Python)
3042
# GTDynamics requires gtsam-develop (not the 4.2 release tag)
3143
echo "Cloning GTSAM source (develop branch)..."
@@ -34,10 +46,6 @@ git clone --depth 1 https://github.com/borglab/gtsam.git ${INSTALL_PREFIX}/gtsam
3446
cat > ${INSTALL_PREFIX}/env.sh << EOF
3547
export INSTALL_PREFIX="${INSTALL_PREFIX}"
3648
export MACOSX_DEPLOYMENT_TARGET="${MACOSX_DEPLOYMENT_TARGET}"
37-
export CMAKE_PREFIX_PATH="${BOOST_PREFIX}:\${CMAKE_PREFIX_PATH}"
38-
export LD_LIBRARY_PATH="${BOOST_PREFIX}/lib:\${LD_LIBRARY_PATH}"
39-
export DYLD_LIBRARY_PATH="${BOOST_PREFIX}/lib:\${DYLD_LIBRARY_PATH}"
40-
export REPAIR_LIBRARY_PATH="${BOOST_PREFIX}/lib:\${REPAIR_LIBRARY_PATH}"
4149
EOF
4250

4351
echo "before-all completed successfully!"

0 commit comments

Comments
 (0)