Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main Repositories
otb
Commits
1fed2cb0
Commit
1fed2cb0
authored
4 weeks ago
by
Thibaut ROMAIN
Browse files
Options
Downloads
Patches
Plain Diff
ENH: add install-otb one line install script
parent
34c96ef5
No related branches found
Branches containing commit
No related tags found
1 merge request
!1059
ENH: Add a one line otb installer
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Packaging/Files/install-otb.sh
+39
-0
39 additions, 0 deletions
Packaging/Files/install-otb.sh
with
39 additions
and
0 deletions
Packaging/Files/install-otb.sh
0 → 100644
+
39
−
0
View file @
1fed2cb0
#!/bin/bash
#
# Copyright (C) 2005-2025 Centre National d'Etudes Spatiales (CNES)
#
# This file is part of Orfeo Toolbox
#
# https://www.orfeo-toolbox.org/
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# This script permits to build gdal bindings with python > 3.10 which is the default version in OTB 10
#Initialize variables if no input parameters has been set
OTB_VERSION
=
"9.1.0"
INSTALL_FOLDER
=
"
$HOME
/otb-
$OTB_VERSION
"
if
[
!
-z
"
$1
"
]
:
OTB_VERSION
=
"
$1
"
fi
if
[
!
-z
"
$2
"
]
:
INSTALL_FOLDER
=
"
$2
"
fi
# Download and install
curl https://www.orfeo-toolbox.org/packages/archives/OTB/OTB-
$OTB_VERSION
-Linux
.tar.gz
-o
/tmp/OTB-
$OTB_VERSION
-Linux
.tar.gz
tar
xf /tmp/OTB-
$OTB_VERSION
-Linux
.tar.gz
--one-top-level
=
$INSTALL_FOLDER
# Source the environment
.
$INSTALL_FOLDER
/otbenv.profile
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment