Skip to content
Snippets Groups Projects
Commit 164dc73e authored by Thibaut ROMAIN's avatar Thibaut ROMAIN
Browse files

COMP: fix merge typos

parent ed4bf820
No related branches found
No related tags found
1 merge request!528Support of ITK 5.x in OTB
Pipeline #16212 failed
...@@ -149,8 +149,7 @@ CommandLineParser::ParseResultType CommandLineParser::GetPaths(std::vector<std:: ...@@ -149,8 +149,7 @@ CommandLineParser::ParseResultType CommandLineParser::GetPaths(std::vector<std::
if (tempModPath.size() > 0) if (tempModPath.size() > 0)
{ {
std::vector<std::string> pathAttribut = itksys::SystemTools::SplitString(tempModPath, ' ', false); std::vector<std::string> pathAttribute = itksys::SystemTools::SplitString(tempModPath, ' ', false);
// Remove " " string element // Remove " " string element
for (unsigned int i = 0; i < pathAttribute.size(); i++) for (unsigned int i = 0; i < pathAttribute.size(); i++)
......
...@@ -35,18 +35,17 @@ sed -i "s/\/builds\/otb\/xdk/\$OTB_INSTALL_DIR/g" "$OTB_INSTALL_DIR"/bin/gdal-co ...@@ -35,18 +35,17 @@ sed -i "s/\/builds\/otb\/xdk/\$OTB_INSTALL_DIR/g" "$OTB_INSTALL_DIR"/bin/gdal-co
sed -i "s/\/builds\/otb\/xdk/\$OTB_INSTALL_DIR/g" "$OTB_INSTALL_DIR"/bin/curl-config sed -i "s/\/builds\/otb\/xdk/\$OTB_INSTALL_DIR/g" "$OTB_INSTALL_DIR"/bin/curl-config
sh "$OTB_INSTALL_DIR"/tools/sanitize_rpath.sh sh "$OTB_INSTALL_DIR"/tools/sanitize_rpath.sh
# Check python version, if python 3.10 (ubuntu 22 and debian 12) download and extract the gdal bindings for python 3.10 # Check python version, if python 3.12 (ubuntu 24 and debian > 12) download and extract the gdal bindings for python 3.12
pyversion="$(python3 -V 2>&1 | sed 's/.* \([0-9]\).\([0-9]*\).*/\1\2/')" pyversion="$(python3 -V 2>&1 | sed 's/.* \([0-9]\).\([0-9]*\).*/\1\2/')"
if [ "$pyversion" = "312" ]; then if [ "$pyversion" = "312" ]; then
echo "***** Python 3.12 detected, downloading gdal bindings compiled for python 3.12 *****" echo "***** Python 3.12 detected, downloading gdal bindings compiled for python 3.12 *****"
PACKAGE_OTB_VERSION="$OTB_SHORT_VERSION.@OTB_VERSION_PATCH@"
HTTP_STATUS=$(curl -s -o "$OTB_INSTALL_DIR"/tools/py312.tar.gz -w "%{response_code}\n" https://www.orfeo-toolbox.org/packages/archives/OTB/OTB-$OTB_SHORT_VERSION-GDAL-bindings-py$pyversion.tar.gz) HTTP_STATUS=$(curl -s -o "$OTB_INSTALL_DIR"/tools/py312.tar.gz -w "%{response_code}\n" https://www.orfeo-toolbox.org/packages/archives/OTB/OTB-$OTB_SHORT_VERSION-GDAL-bindings-py$pyversion.tar.gz)
if [ $HTTP_STATUS -eq 200 ]; then if [ $HTTP_STATUS -eq 200 ]; then
tar -xf "$OTB_INSTALL_DIR"/tools/gdal-py312.tar.gz -C "$OTB_INSTALL_DIR"/lib/python3/dist-packages/osgeo/ tar -xf "$OTB_INSTALL_DIR"/tools/gdal-py312.tar.gz -C "$OTB_INSTALL_DIR"/lib/python3/dist-packages/osgeo/
rm "$OTB_INSTALL_DIR"/tools/gdal-py312.tar.gz rm "$OTB_INSTALL_DIR"/tools/gdal-py312.tar.gz
echo "*** GDAL bindings for python 3.12 successfully installed ***" echo "*** GDAL bindings for python 3.12 successfully installed ***"
else else
echo "Can not find GDAL bindings at https://www.orfeo-toolbox.org/packages/archives/OTB/OTB-9.1-GDAL-bindings-py$pyversion.tar.gz" echo "Can not find GDAL bindings at https://www.orfeo-toolbox.org/packages/archives/OTB/OTB-$OTB_SHORT_VERSION-GDAL-bindings-py$pyversion.tar.gz"
return -1 return -1
fi fi
sh "$OTB_INSTALL_DIR"/recompile_bindings.sh sh "$OTB_INSTALL_DIR"/recompile_bindings.sh
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment