From 3ccc20ac2afd1b4937d675ba44c1123a042cc065 Mon Sep 17 00:00:00 2001 From: luc Date: Mon, 20 Nov 2023 18:42:30 +0100 Subject: [PATCH] fix build install --- .github/workflows/build-dep-g2o.yml | 2 +- externals/prebuild_scripts/build_g2o_for_linux.sh | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-dep-g2o.yml b/.github/workflows/build-dep-g2o.yml index e7fa7d81..a423c1c8 100644 --- a/.github/workflows/build-dep-g2o.yml +++ b/.github/workflows/build-dep-g2o.yml @@ -36,6 +36,6 @@ jobs: uses: actions/upload-artifact@v3 with: name: prebuilt-g2o - path: ${{ github.workspace }}/externals/prebuild_scripts/g2o + path: ${{ github.workspace }}/externals/prebuild_scripts/g2o/INSTALL-vs diff --git a/externals/prebuild_scripts/build_g2o_for_linux.sh b/externals/prebuild_scripts/build_g2o_for_linux.sh index 8a4d584f..b1a92b21 100755 --- a/externals/prebuild_scripts/build_g2o_for_linux.sh +++ b/externals/prebuild_scripts/build_g2o_for_linux.sh @@ -9,7 +9,7 @@ ZIPFILE="$ARCH"_g2o ZIPFOLDER="build/$ZIPFILE" BUILD_D=build/"$ARCH"_debug BUILD_R=build/"$ARCH"_release - +VERSION="20170730_git" clear echo "Building g2o using the sources in the thirdparty directory" if [ ! -d ../g2o ] @@ -20,12 +20,15 @@ fi cd ../g2o +git checkout $VERSION + # Make build folder for debug version mkdir build rm -rf $BUILD_D mkdir "$BUILD_D" cd "$BUILD_D" + # Run cmake to configure and generate the make files cmake \ -DCMAKE_INSTALL_PREFIX=install \