[gdal-dev] Makefile problem in GDAL?
Dr Rainer Woitok
rainer.woitok at gmail.com
Mon Mar 6 06:14:59 PST 2017
Greetings,
having checked out the bookmark "remote/tags/2.1.3" (2017-01-20 08:19:14
+0000 even.rouault at mines-paris.org), I configured GDAL and the ran "make
install" just to produce the following error:
libtool: compile: g++ -I/home/Rainer/repo/gdal/gdal/port -I/home/Rainer/repo/gdal/gdal/gcore -I/home/Rainer/repo/gdal/gdal/alg -I/home/Rainer/repo/gdal/gdal/ogr -I/home/Rainer/repo/gdal/gdal/ogr/ogrsf_frmts -I/home/Rainer/repo/gdal/gdal/gnm -I/home/Rainer/repo/gdal/gdal/apps -g -O2 -Wall -Wextra -Winit-self -Wunused-parameter -Wformat -Werror=format-security -Wno-format-nonliteral -Wlogical-op -Wshadow -Werror=vla -Wmissing-declarations -Wnon-virtual-dtor -Woverloaded-virtual -fno-operator-names -DJPEG_DUAL_MODE_8_12 -Ilibjpeg -DDEFAULT_MAX_MEM=500000000L -DGNM_ENABLED -DOGR_ENABLED -I/home/Rainer/repo/gdal/gdal/port -I/home/Rainer/include -DGDAL_COMPILATION -I../mem -DENABLE_LIBJPEG_NO_RETURN -c jpgdataset.cpp -DDLL_EXPORT -DPIC -o ../o/.libs/jpgdataset.o
In file included from jpgdataset.cpp:40:0:
/home/Rainer/include/memdataset.h:78:42: error: expected ';' at end of member declaration
virtual const char *GetProjectionRef() CPL_OVERRIDE;
^
The already existing header file "/home/Rainer/include/memdataset.h" is
a relict from former GDAL compilations with other versions checked out
and obviously didn't fit GDAL version 2.1.3. But the real problem seems
to be that this file was read at all. The correct header file was in
directory "../mem/", but directive "-I../mem" was overridden by preced-
ing directive "-I/home/Rainer/include" (derived from configuration opt-
ion "--includedir=..."). Shouldn't therefore this option together with
the directory derived from option "--oldincludedir=..." be always spec-
ified as the very last "-I" options?
To work around the problem I simply removed any GDAL header files from
directory "/home/Rainer/include/" and successfully compiled GDAL.
Sincerely,
Rainer
More information about the gdal-dev
mailing list