tools: add RPM prepare and external-install helper scripts (ArcGIS, GeographicLib, RTI)
This commit is contained in:
1 parent
0a9284ca91
commit
89f048a312
4 files changed
+141
No files matched your search
Executable
+35
@@ -0,0 +1,35 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
# install_arcgis.sh
|
||||
# Unpacks ArcGIS Maps SDK for Qt and installs into /opt/ArcGIS
|
||||
# Expects the zip at ../ArcGIS_Maps_SDK_Qt_linux_300.0.0.zip relative to repo root
|
||||
|
||||
ZIP_PATH="${1:-../ArcGIS_Maps_SDK_Qt_linux_300.0.0.zip}"
|
||||
TARGET_DIR="/opt/ArcGIS/MapsSDK_Qt_300.0.0"
|
||||
|
||||
if [[ ! -f "$ZIP_PATH" ]]; then
|
||||
echo "ArcGIS zip not found at $ZIP_PATH"
|
||||
echo "Please place ArcGIS_Maps_SDK_Qt_linux_300.0.0.zip at that path before running this script."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
sudo mkdir -p "$TARGET_DIR"
|
||||
sudo chown $(id -u):$(id -g) "$TARGET_DIR"
|
||||
|
||||
echo "Extracting $ZIP_PATH to $TARGET_DIR..."
|
||||
unzip -q "$ZIP_PATH" -d "$TARGET_DIR"
|
||||
|
||||
# Typical SDK layout contains lib/cmake packages and Qt plugins. Ensure CMAKE_PREFIX_PATH contains it.
|
||||
echo "ArcGIS SDK extracted. Add $TARGET_DIR to CMAKE_PREFIX_PATH when building:"
|
||||
echo " -DCMAKE_PREFIX_PATH=\"$TARGET_DIR:$CMAKE_PREFIX_PATH\""
|
||||
|
||||
# Optionally perform install actions if package contains an install script
|
||||
if [[ -x "$TARGET_DIR/install.sh" ]]; then
|
||||
echo "Running provided install.sh inside SDK"
|
||||
pushd "$TARGET_DIR" >/dev/null
|
||||
sudo ./install.sh || true
|
||||
popd >/dev/null
|
||||
fi
|
||||
|
||||
echo "ArcGIS SDK unpack complete. Files are at $TARGET_DIR"
|
||||
Reference in new issue
Block a user