Skip to content

Commit

Permalink
adjustments for osgeo4w: - build with iconv - adjust ogdi paths - bui…
Browse files Browse the repository at this point in the history
…ld swig bindings for python 2.7
  • Loading branch information
jef-n committed Oct 13, 2012
1 parent b997c01 commit b351343
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
3 changes: 2 additions & 1 deletion gdal/frmts/ogdi/makefile.vc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ OBJ = ogdidataset.obj
GDAL_ROOT = ..\..

EXTRAFLAGS = -I$(OGDIDIR)/ogdi/include -I$(OGDIDIR)/include/win32 \
-I$(OGDIDIR)/proj -DWIN32 -D_WINDOWS
-I$(OGDIDIR)/include/ogdi \
-I$(OGDIDIR)/include -DWIN32 -D_WINDOWS

!INCLUDE $(GDAL_ROOT)\nmake.opt

Expand Down
8 changes: 4 additions & 4 deletions gdal/nmake.opt
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,10 @@ INCLUDE_OGR_FRMTS = YES
# const or leave it empty. Take a look on your iconv() declaration in iconv.h.
# If the second parameter declared as const char** then you need to define
# ICONV_CONST=const otherwise leave it empty.
#LIBICONV_DIR = "C:\Program Files\GnuWin32"
#LIBICONV_INCLUDE = -I$(LIBICONV_DIR)\include
#LIBICONV_LIBRARY = $(LIBICONV_DIR)\lib\libiconv.lib
#LIBICONV_CFLAGS = -DICONV_CONST=const
LIBICONV_DIR = "C:\OSGeo4W"
LIBICONV_INCLUDE = -I$(LIBICONV_DIR)\include
LIBICONV_LIBRARY = $(LIBICONV_DIR)\lib\iconv.lib
LIBICONV_CFLAGS = -DICONV_CONST=const

# Comment out the following to disable BSB support.
BSB_SUPPORTED = 1
Expand Down
4 changes: 2 additions & 2 deletions gdal/ogr/ogrsf_frmts/ogdi/makefile.vc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
OBJ = ogrogdidriver.obj ogrogdidatasource.obj ogrogdilayer.obj

EXTRAFLAGS = -I.. -I..\.. \
-I$(OGDIDIR)/ogdi/include -I$(OGDIDIR)/include/win32 \
-I$(OGDIDIR)/proj -DWIN32 -D_WINDOWS
-I$(OGDIDIR)/include/ogdi -I$(OGDIDIR)/include/win32 \
-I$(OGDIDIR)/proj -I(OGDIDIR)/include -DWIN32 -D_WINDOWS

GDAL_ROOT = ..\..\..

Expand Down
4 changes: 2 additions & 2 deletions gdal/swig/python/fallback_build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ rem that "python setup.py build" has already created the build/lib... directory
rem and copied in the appropriate .py files.
rem

set PYTHONHOME=C:\OSGeo4W\apps\Python25
set OUTDIR=build\lib.win32-2.5\osgeo
set PYTHONHOME=C:\OSGeo4W\apps\Python27
set OUTDIR=build\lib.win32-2.7\osgeo

set CLARGS=/c /nologo /Ox /MD /EHsc /DNDEBUG -I../../port -I../../gcore -I../../alg -I../../ogr/ -I%PYTHONHOME%\include -I%PYTHONHOME%\PC -I%PYTHONHOME%\lib\site-packages\numpy\core\include

Expand Down

0 comments on commit b351343

Please sign in to comment.