-
Notifications
You must be signed in to change notification settings - Fork 205
/
Install_Instructions.txt
executable file
·87 lines (63 loc) · 3.89 KB
/
Install_Instructions.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
NOTICE 1. Windows users: Only use Notepad++ or an equivalent decent editor
to read or modify Ortho4XP related files. Notepad doesn't understand linux
line-ends and will create a mess.
------------------------------------------------------------------------
------------------------------------------------------------------------
NOTICE 2 : Windows users: You do not need to read further than this
notice if you have installed the binary windows version !
In your case, the executable file is Binary/Ortho4XP_v130.exe, and the
only advisable action is to make a short-cut to it somewhere, e.g. in the
main Ortho4XP directory (but the executable needs to stay where it is).
If you end-up installing the python modules some day (to get more frequent
updates or bugs fixed), the Binary directory won't be necessary anymore.
------------------------------------------------------------------------
The following instructions are for the script install :
Linux
-----
Debian/Ubuntu-based distributions
sudo apt-get install python3 python3-pip python3-requests python3-numpy python3-pyproj python3-gdal python3-shapely python3-rtree python3-pil python3-pil.imagetk p7zip-full libnvtt-bin freeglut3 gdal-bin
Arch-based distributions
(You must have the AUR enabled and yay installed)
yay nvidia-texture-tools
(this will download, build and install the Nvidia Texture Tools package which includes some necessary modules for Ortho4XP)
sudo pacman -S python python-pip python-requests python-numpy python-pyproj python-gdal python-shapely python-rtree python-pillow python-pmw p7zip freeglut
(if some of them were not packaged for your distro you can use pip instead, like say, pip install pyproj)
Python module names may be different on other distributions.
Windows
-------
1) Download and install Python 3 from www.python.org
Just select one for your Windows OS, there is no benefit in our case to
download the pretty lastest version of Python, since you might get difficulties
further down to find modules already built for it. As of 10/2018, I would
recommend using 3.7.
Make sure during the process that "pip" (package management system for Python)
is installed along and made accessible from your PATH [there is a checkbox
for this during the Python install process wich by default ISN'T checked].
2) Download the following packages from https://www.lfd.uci.edu/~gohlke/pythonlibs/
Pyproj, Numpy, Gdal, Shapely, Rtree, Pillow (or alternatively Pillow-SIMD)
Pay attention to take the ones that correspond to the Python version which you picked
at Step 1) and to your OS nbr of bits (32 or 64, I guess 64 in all but a few cases).
As an example, if Python 3.7.* was selected at Step 1) above and you
have a 64bit windows, then you would choose these files that have -cp37- and _amd64
within their filename.
In order to use the build geotiff feature of the custom_zl map, you will need to
add the directory containing gdal_translate and gdalwarp (***/python**/lib/site-packages/osgeo/)
into your PATH variable.
Finally, if you do not already have them : download and install the build tools for visual studio (2017):
https://visualstudio.microsoft.com/fr/downloads/
3) From a command window launch successively
pip install --upgrade pip [if this goes wrong you probably missed the last point in 1)]
pip install requests
pip install *******.whl [replacing ******** successively by each of the files downloaded at Step 2]
You should be done. Open a command window in the Ortho4XP directory (freshly downloaded from Github)
and launch "python Ortho4XP_v130.py".
OS X
----
1) In a Terminal window, install Homebrew (brew.sh), a package manager
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2) Go to the Ortho4XP folder
cd /path/to/Ortho4XP
3) Execute the install script (you may have to run "chmod +x ./install_mac.sh" first)
./install_mac.sh
4) Launch Ortho4XP
python3 Ortho4XP_v130.py