4
4
# How to compile on windows:
5
5
#
6
6
# win32-msvc (Microsoft Visual C)
7
- # - install GDAL (32 or 64 bit) from OSGeo4W https://trac.osgeo.org/osgeo4w/
8
- # - add GDAL_PATH to the system variables - example: GDAL_PATH = C:\OSGeo4W64
9
- # - add GDAL_DATA to the system variables - example: GDAL_DATA = C:\OSGeo4W64 \share\epsg_csv
10
- # - add PROJ_LIB to the system variables - example: PROJ_LIB = C:\OSGeo4W64 \share\proj
7
+ # - install GDAL from OSGeo4W https://trac.osgeo.org/osgeo4w/
8
+ # - add GDAL_PATH to the system variables - example: GDAL_PATH = C:\OSGeo4W
9
+ # - add GDAL_DATA to the system variables - example: GDAL_DATA = C:\OSGeo4W \share\epsg_csv
10
+ # - add PROJ_LIB to the system variables - example: PROJ_LIB = C:\OSGeo4W \share\proj
11
11
# - add OSGeo4W\bin to the system path
12
12
#
13
- # win32-g++ (MinGW)
14
- # Unfortunately it doesn't seem to work at the moment
15
- # - install and update MSYS2 from https://www.msys2.org/
16
- # - run MSYS2 shell and install GDAL package - example: pacman -S mingw-w64-x86_64-gdal
17
- # - add MSYS_PATH to system variables - example: MSYS_PATH = C:\msys64\mingw64
18
- # - add msys\mingw\bin to the system path
19
- #
20
13
# ------------------------------------------------------------------------------------------
21
14
22
15
unix :!macx {
@@ -28,21 +21,19 @@ unix:!macx {
28
21
}
29
22
30
23
win32 -msvc {
31
- LIBS += -L $$(GDAL_PATH) /lib/ -lgdal_i -lgeos_c
24
+ LIBS += -L $$(GDAL_PATH) /lib/ -lgdal_i
32
25
33
26
INCLUDEPATH += $$(GDAL_PATH) /include
34
27
DEPENDPATH += $$(GDAL_PATH) /include
35
28
}
36
29
37
30
win32 -g++ {
38
- LIBS += -L $$(MSYS_PATH ) /lib/ -lgdal -lgeos -lgeos_c
31
+ LIBS += -L $$(GDAL_PATH ) /lib/ -lgdal
39
32
40
- INCLUDEPATH += $$(MSYS_PATH ) /include
41
- DEPENDPATH += $$(MSYS_PATH ) /include
33
+ INCLUDEPATH += $$(GDAL_PATH ) /include
34
+ DEPENDPATH += $$(GDAL_PATH ) /include
42
35
43
36
PRE_TARGETDEPS += $$(MSYS_PATH) /lib/libgdal.a
44
- PRE_TARGETDEPS += $$(MSYS_PATH) /lib/libgeos.dll.a
45
- PRE_TARGETDEPS += $$(MSYS_PATH) /lib/libgeos_c.dll.a
46
37
}
47
38
48
39
mac {
0 commit comments