Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Main Repositories
otb
Commits
3911e557
Commit
3911e557
authored
Jan 19, 2017
by
Rashad Kanavath
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XDK: provide a readme && xdkenv.profile
parent
4af760f9
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
101 additions
and
3 deletions
+101
-3
Documentation/Cookbook/rst/Installation_Linux_xdk.txt
Documentation/Cookbook/rst/Installation_Linux_xdk.txt
+54
-0
Documentation/Cookbook/rst/Installation_Macx_xdk.txt
Documentation/Cookbook/rst/Installation_Macx_xdk.txt
+2
-0
Documentation/Cookbook/rst/Installation_Windows_xdk.txt
Documentation/Cookbook/rst/Installation_Windows_xdk.txt
+1
-0
SuperBuild/Packaging/CreateCMakeProjects.cmake
SuperBuild/Packaging/CreateCMakeProjects.cmake
+7
-3
SuperBuild/Packaging/Files/linux_pkgsetup.in
SuperBuild/Packaging/Files/linux_pkgsetup.in
+37
-0
No files found.
Documentation/Cookbook/rst/Installation_Linux_xdk.txt
0 → 100644
View file @
3911e557
Prerequisites
-------------
- cmake (>= 3.2)
- gcc (>= 4.9)
- git
Extract XDK
-----------
::
cd /opt (You can use another a directory of your own choice)
chmod +x OTB-|release|-xdk-Linux64.run
./OTB-|release|-xdk-Linux64.run
**You now will have a directory named **OTB-|release|-xdk-Linux64** in **/opt**
Setup environment
-----------------
There is a helper script in package called **xdkenv.profile**. This script export
required environments to configure and build OTB.
::
cd /opt/OTB-|release|-xdk-Linux64
. ./xdkenv.profile
Test environment setup by checking value of CMAKE_PREFIX_PATH
::
echo $CMAKE_PREFIX_PATH
The above command will output:
/opt/OTB-|release|-xdk-Linux64
Download, Configure and build OTB
---------------------------------
::
mkdir -p /opt/OTB/build && cd /opt/OTB
git clone --depth=1 --branch=develop https://git@git.orfeo-toolbox.org/git/otb.git source
cd build && cmake ../source
make -j2
Notes
~~~~~
By default, all OTB\_USE\_\* variables in OTB are set to FALSE except for 6S and SiftFast. You can check/activate them in your cmake-gui/ccmake.
Documentation/Cookbook/rst/Installation_Macx_xdk.txt
0 → 100644
View file @
3911e557
README.md
Documentation/Cookbook/rst/Installation_Windows_xdk.txt
0 → 100644
View file @
3911e557
README.md
SuperBuild/Packaging/CreateCMakeProjects.cmake
View file @
3911e557
...
...
@@ -58,12 +58,16 @@ macro(macro_setup_cmake_project pkg)
macro_super_package(STAGE_DIR
\"
${
archive_name
}
\"
)"
)
set
(
README_FILE_SUFFIX
)
if
(
PKG_GENERATE_XDK
)
set
(
README_FILE_SUFFIX
"_xdk"
)
endif
()
if
(
APPLE
)
set
(
README_FILE
${
PACKAGE_OTB_SRC_DIR
}
/Documentation/Cookbook/rst/Installation_Macx.txt
)
set
(
README_FILE
${
PACKAGE_OTB_SRC_DIR
}
/Documentation/Cookbook/rst/Installation_Macx
${
README_FILE_SUFFIX
}
.txt
)
elseif
(
LINUX
)
#not osx
set
(
README_FILE
${
PACKAGE_OTB_SRC_DIR
}
/Documentation/Cookbook/rst/Installation_Linux.txt
)
set
(
README_FILE
${
PACKAGE_OTB_SRC_DIR
}
/Documentation/Cookbook/rst/Installation_Linux
${
README_FILE_SUFFIX
}
.txt
)
elseif
(
WIN32
)
#windows
set
(
README_FILE
${
PACKAGE_OTB_SRC_DIR
}
/Documentation/Cookbook/rst/Installation_Windows.txt
)
set
(
README_FILE
${
PACKAGE_OTB_SRC_DIR
}
/Documentation/Cookbook/rst/Installation_Windows
${
README_FILE_SUFFIX
}
.txt
)
endif
()
configure_file
(
...
...
SuperBuild/Packaging/Files/linux_pkgsetup.in
View file @
3911e557
...
...
@@ -121,6 +121,43 @@ EOF
chmod
+x
"
$OUT_DIR
/otbenv.profile"
else
cat
>
"
$OUT_DIR
/xdkenv.profile"
<<
EOF
#!/bin/sh
# The below environment variables only affect current shell
# So if you run again from a terminal. you need to run the script again
# unset any existing LD_LIBRARY_PATH
unset LD_LIBRARY_PATH
# Add bin direcotory to system PATH
PATH=
$OUT_DIR
/bin:
\$
PATH
# set numeric locale to C
LC_NUMERIC=C
# set GDAL_DATA variable used by otb application
GDAL_DATA=
$OUT_DIR
/share/gdal
# set GEOTIFF_CSV variable used by otb application
GEOTIFF_CSV=
$OUT_DIR
/share/epsg_csv
CMAKE_PREFIX_PATH=
$OUT_DIR
# export variables
export LC_NUMERIC
export GDAL_DATA
export GEOTIFF_CSV
export CMAKE_PREFIX_PATH
export PATH
EOF
chmod
+x
"
$OUT_DIR
/xdkenv.profile"
fi
#echo "Creating symbolic links..."
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment