After the Cygwin installer completes, it’s very important to keep the installer around. The installer is an executable named either
setup-x86_64.exe, and you’ll need it to add or remove Cygwin packages in the future. I suggest moving the installer to the same folder where you installed Cygwin itself; typically
Using Cygwin installer make sure that the CMake package is selected. Now let's install the GDAL source code.
wget “link to gdal source code”
./configurecommand to check some details about the machine on which the software is going to be installed and create a
Makefile. When you run the configure script you would see a lot of output on the screen , each being some sort of question and a respective yes/no as the reply. If any of the major requirements are missing on your system, the configure script would exit and you cannot proceed with the installation, until you get those required things. Here is an example of config.status report.
./configure --prefix=$HOME --with-libz=internal --with-python=no --with-jasper=no --with-threads=yes''
makemake. Basically the
makeutility compiles all your program code and creates the executables.
I have came accroos the error below error message when creating the executables by the make utility.
/home/apg1e14/GDAL/gdal-1.11.2/frmts/o/.libs/dgif_lib.o: In function `DGifOpenFileHandle': /home/apg1e14/GDAL/gdal-1.11.2/frmts/gif/giflib/dgif_lib.c:111: undefined reference to `setmode' /home/apg1e14/GDAL/gdal-1.11.2/frmts/gif/giflib/dgif_lib.c:111:(.text+0x8e1): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `setmode' /home/apg1e14/GDAL/gdal-1.11.2/frmts/o/.libs/egif_lib.o: In function `EGifOpenFileHandle': /home/apg1e14/GDAL/gdal-1.11.2/frmts/gif/giflib/egif_lib.c:137: undefined reference to `setmode' /home/apg1e14/GDAL/gdal-1.11.2/frmts/gif/giflib/egif_lib.c:137:(.text+0x4c7): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `setmode' collect2: error: ld returned 1 exit status GNUmakefile:41: recipe for target 'libgdal.la' failed make: *** [libgdal.la] Error 1 make: Leaving directory '/home/apg1e14/GDAL/gdal-1.11.2' GNUmakefile:50: recipe for target 'check-lib' failed make: *** [check-lib] Error 2
If this happen to you, it is recommended that you run
make clean which deletes all the already compiled object files. Running
make clean before trying again is a good idea.
this is solved…