[gdal-dev] jp2kak include error on Windows

Gong, Shawn (Contractor) Shawn.Gong at drdc-rddc.gc.ca
Mon Oct 19 16:09:53 EDT 2009


hi list,

I have Kakadu 6.21 (non-commercial license) on C:\build2\kakadu\v6_2_1\
Kakadu libraries are generated using coresys_2008.sln and
kdu_managed_2008.sln

I am using the followings for jp2kak 
Compiler: MS VS 9.0 (2008)
Gdal: gdal-svn-stable-2009.08.03

http://trac.osgeo.org/gdal/wiki/JP2KAK states:
	In GDAL/OGR trunk (1.7dev) I have substantially updated the
makefile.vc and nmake.opt entries for Kakadu support. Now it should be
sufficient to update the nmake.opt entries appropriately for your local
tree: 
	# Uncommment if you have Kakadu 6.0 or newer
	KAKDIR = 	\warmerda\pkg\kakadu-6.2.1
	KAKLIB =	$(KAKDIR)\lib_x86\kdu_v62R.lib
	KAKSRC =	$(KAKDIR)\v6_2_1-00256N

I have checked nmake.opt from the latest Gdal 1.6.2 and overnight stable
release, none of them has the above 3 lines. They all have 
"# Uncommment if you have Kakadu 4.0 or newer" and one more line: 
"#KAKDIR =	D:\warmerda\jp2\kakadu"

I tried to imitate by adding:
KAKDIR =	C:\build2\kakadu\v6_2_1
KAKLIB =	C:\build2\kakadu\lib_x86\kdu_v62R.lib
KAKSRC =	C:\build2\kakadu\v6_2_1
but getting error at 
C:\build2\gdal\frmts>cd jp2kak   && nmake /nologo /f makefile.vc   && cd
..
        cl /nologo /MD /EHsc /Ox /W3 /D_CRT_SECURE_NO_DEPRECATE
/D_CRT_NONSTDC_NO_DEPRECATE /DNDEBUG -I..\..\port -I..\..\ogr
-I..\..\gcore  -I..\..\alg -I..\..\ogr\ogrsf_frmts
-IC:\build2\kakadu\v6_2_1\managed\all_includes /DKDU_PENTIUM_MS
VC /GX -DOGR_ENABLED  /c jp2kakdataset.cpp
cl : Command line warning D9035 : option 'GX' has been deprecated and
will be removed in a future release
cl : Command line warning D9036 : use 'EHsc' instead of 'GX'
jp2kakdataset.cpp
jp2kakdataset.cpp(34) : fatal error C1083: Cannot open include file:
'jp2_local.h': No such file or directory
NMAKE : fatal error U1077: '"c:\Program Files\Microsoft Visual Studio
9.0\VC\BIN\cl.EXE"' : return code '0x2'
Stop.

The compiler cannot find the 'jp2_local.h' which is in
C:\build2\kakadu\v6_2_1\managed\all_includes.
I then changed KAKDIR =	C:\build2\kakadu\v6_2_1\managed\all_includes,
and still got the same error

What are the correct Gdal jp2kak settings on Windows?  Is there an
KAK_INCLUDE?


thanks,
Shawn


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20091019/90c8b78e/attachment-0001.html


More information about the gdal-dev mailing list