[gdal-dev] how can I compile GDAL 1.7.3 with ecw 4.1 in Virsual Studio 2010

GeoJoda joseph4774 at hotmail.com
Tue Nov 23 04:18:55 EST 2010


Hi every one
I have a question, how can I compile GDAL 1.7.3 with ecw 4.1 in Virsual
Studio 2010. It's easy to compile gdal 1.7.3 alone but when I include ecw
4.1 I get an error.
. I've done the following steps:

1 - I downloaded the newest gdal (1.7.3) and downloaded
ECWJP2SDKSetup_RO_20100920.exe from ERDAS.
2 - When I build gdal 1.7.3 without ecw in VS10 (makegdal10.sln or
makegdal90.sln), I get no errors. It all runs fine.
3 - I installed ECWJP2SDKSetup_RO_20100920.exe on my machine 32bit XP.
installation went well and created a new folder with the path "C: \ Program
Files \ Erda \ Erda ECW JPEG2000 SDK Read" which includes subfolders bin,
include, lib, Redistributable and others.
4 - I made sam changes to nmake.opt file text:   
                                                 ECW_PLUGIN = YES
                                                 ECWDIR = C: \ Program Files
\ Erda \ Erda ECW JPEG2000 SDK Read
 						 ECWFLAGS =-I $ (ECWDIR) \ include-DNO_COMPRESS-DECWSDK_VERSION = 41
 						 ECWLIB = $ (ECWDIR) \ lib \ vc90 \ win32 \ NCSEcw4_RO.lib \
						 $ (ECWDIR) \ lib \ vc90 \ win32 \ NCSUtil4.lib \
						 $ (ECWDIR) \ lib \ vc90 \ win32 \ NCScnet4.lib
5 - After the changes I've made to nmake.opt, I can not build GDAL and I get
a build error.
6 - I found some useful links on the web to build gdal.. But the problem is
that I am a beginner and these links are too advanced for me.
     and links are:
     a.	http://trac.osgeo.org/gdal/wiki/BuildHints 
     b.	http://trac.osgeo.org/gdal/wiki/ECW 
     c.	http://trac.osgeo.org/gdal/ticket/3676 

Can anyone tell me what I'm missing, I would be very grateful.
-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/how-can-I-compile-GDAL-1-7-3-with-ecw-4-1-in-Virsual-Studio-2010-tp5765934p5765934.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.


More information about the gdal-dev mailing list