Opened 14 years ago
Closed 14 years ago
#1160 closed defect (wontfix)
WinGrass: compiling against osgeo4w's gdal17 fails
Reported by: | hellik | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 7.0.0 |
Component: | Compiling | Version: | unspecified |
Keywords: | wingrass, gdal, osgeo4w | Cc: | |
CPU: | All | Platform: | MSWindows Vista |
Description
tested with grass7 (r43479) in the osgeo4w-stack (WinVista32)
in package.sh
[...] --with-libs="$OSGEO4W_ROOT_MSYS/apps/gdal-17/lib $OSGEO4W_ROOT_MSYS/lib" \ --with-includes="$OSGEO4W_ROOT_MSYS/apps/gdal-17/include $OSGEO4W_ROOT_MSYS/include" \ [...] --with-gdal=$OSGEO4W_ROOT_MSYS/bin/gdal-config
libs and includes points to osgeo4w's gdal17, but --with-gdal points to the gdal-config of osgeo4w's gdal15
[...] checking for additional include dirs... /c/OSGeo4W/apps/gdal-17/include /c/OSGeo4W/include checking for additional library dirs... /c/OSGeo4W/apps/gdal-17/lib /c/OSGeo4W/lib [...]
GRASS is now configured for: i686-pc-mingw32 Source directory: /c/osgeo4w/usr/src/grass_trunk Build directory: /c/osgeo4w/usr/src/grass_trunk Installation directory: ${prefix}/grass-7.0.svn Startup script in directory: ${exec_prefix}/bin C compiler: gcc -g -O2 C++ compiler: c++ -g -O2 Building shared libraries: yes 64bit support: OpenGL platform: Windows MacOSX application: no MacOSX architectures: MacOSX SDK: NVIZ: yes BLAS support: no C++ support: yes Cairo support: no DWG support: no FFMPEG support: no FFTW support: yes FreeType support: yes GDAL support: yes GEOS support: no JPEG support: yes LAPACK support: no Large File support (LFS): yes MySQL support: no NLS support: yes ODBC support: yes OGR support: yes OpenGL support: yes PNG support: yes PostgreSQL support: yes Python support: no Readline support: no SQLite support: yes Tcl/Tk support: yes wxWidgets support: no TIFF support: yes X11 support: no Regex support: yes POSIX thread support: no
in error log:
GRASS GIS compilation log ------------------------- Started compilation: Fri Sep 17 12:29:20 GMT 2010 -- Errors in: /c/osgeo4w/usr/src/grass_trunk/lib/raster /c/osgeo4w/usr/src/grass_trunk/lib/display [...]
changing to /lib/raster:
syringia@NADA /c/osgeo4w/usr/src/grass_trunk/lib/raster $ make gcc -I/c/OSGeo4W/apps/gdal-17/include -I/c/OSGeo4W/include -g -O2 -I/c/OSGeo4 W/apps/gdal-17/include -I/c/OSGeo4W/include -I/c/osgeo4w/usr/src/grass_trunk/di st.i686-pc-mingw32/include -I/c/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw3 2/include -D_FILE_OFFSET_BITS=64 -DGDAL_LINK=1 -DGDAL_DYNAMIC=1 -DPACKAGE=\""g rasslibs"\" -I/c/OSGeo4W/include -I/c/OSGeo4W/include -I/c/osgeo4w/usr/src/gr ass_trunk/dist.i686-pc-mingw32/include -I/c/osgeo4w/usr/src/grass_trunk/dist.i6 86-pc-mingw32/include -o OBJ.i686-pc-mingw32/auto_mask.o -c auto_mask.c In file included from R.h:3, from auto_mask.c:23: c:/OSGeo4W/include/rpc/types.h:49:1: warning: "FALSE" redefined In file included from auto_mask.c:19: c:/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/include/grass/gis.h:53:1: w arning: this is the location of the previous definition In file included from R.h:3, from auto_mask.c:23: c:/OSGeo4W/include/rpc/types.h:50:1: warning: "TRUE" redefined In file included from auto_mask.c:19: c:/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/include/grass/gis.h:49:1: w arning: this is the location of the previous definition In file included from R.h:3, from auto_mask.c:23: c:/OSGeo4W/include/rpc/types.h:62:21: warning: extra tokens at end of #ifdef di rective In file included from c:/OSGeo4W/include/direct.h:22, from c:/OSGeo4W/apps/gdal-17/include/cpl_port.h:133, from c:/OSGeo4W/apps/gdal-17/include/gdal.h:41, from R.h:6, from auto_mask.c:23: c:/OSGeo4W/include/io.h:41: error: redefinition of typedef 'intptr_t' c:/OSGeo4W/apps/gdal-17/include/cpl_config.h:113: error: previous declaration o f 'intptr_t' was here make: *** [OBJ.i686-pc-mingw32/auto_mask.o] Error 1
in C:\OSGeo4W\apps\gdal-17\bin there is gdal-config.tmpl with some content.
so maybe this would be also ticket for osgeo4w to deliver a gdal-config for gdal17?
Helmut
Note:
See TracTickets
for help on using tickets.
Replying to hellik:
gdal18 is now default in osgeo4w. look also at http://trac.osgeo.org/grass/ticket/1271
I'm closing the ticket.
Helmut