<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.59">
<TITLE>jp2kak include error on Windows</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">hi list,</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">I have Kakadu 6.21 (non-commercial license) on C:\build2\kakadu\v6_2_1\</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">Kakadu libraries are generated using coresys_2008.sln and kdu_managed_2008.sln</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">I am using the followings for jp2kak </FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">Compiler: MS VS 9.</FONT><FONT SIZE=2 FACE="Courier New">0 (2008)</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">Gdal: gdal-svn-stable-2009.08.03</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New"><A HREF="http://trac.osgeo.org/gdal/wiki/JP2KAK">http://trac.osgeo.org/gdal/wiki/JP2KAK</A></FONT></SPAN><SPAN LANG="en-ca"> <FONT SIZE=2 FACE="Courier New">states:</FONT></SPAN><SPAN LANG="en-ca"></SPAN></P>
<UL DIR=LTR>
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">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: </FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New"># Uncommment if you have Kakadu 6.0 or newer</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">K</FONT><FONT SIZE=2 FACE="Courier New">AKDIR = \warmerda\pkg\kakadu-6.2.1</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">KAKLIB = $(KAKDIR)\lib_x86\kdu_v62R.lib</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">KAKSRC = $(KAKDIR)\v6_2_1-00256N</FONT></SPAN></P>
</UL>
<P DIR=LTR><SPAN LANG="en-ca"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">I have checked</FONT></SPAN><SPAN LANG="en-ca"> <FONT SIZE=2 FACE="Courier New">nmake.opt</FONT></SPAN><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New"> from the</FONT></SPAN><SPAN LANG="en-ca"> <FONT SIZE=2 FACE="Courier New">latest</FONT></SPAN><SPAN LANG="en-ca"> <FONT SIZE=2 FACE="Courier New">Gdal</FONT></SPAN><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New"></FONT></SPAN><SPAN LANG="en-ca"> <FONT SIZE=2 FACE="Courier New">1.6.2</FONT></SPAN><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New"></FONT> <FONT SIZE=2 FACE="Courier New">and overnight stable release,</FONT> <FONT SIZE=2 FACE="Courier New">none of them has the above</FONT></SPAN><SPAN LANG="en-ca"> <FONT SIZE=2 FACE="Courier New">3</FONT></SPAN><SPAN LANG="en-ca"> <FONT SIZE=2 FACE="Courier New">lines. They all</FONT></SPAN><SPAN LANG="en-ca"> <FONT SIZE=2 FACE="Courier New">have</FONT><FONT SIZE=2 FACE="Courier New"></FONT></SPAN><SPAN LANG="en-ca"> </SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">"</FONT></SPAN><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New"># Uncommment if you have Kakadu 4.0 or newer</FONT></SPAN><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">" and</FONT> <FONT SIZE=2 FACE="Courier New">one</FONT></SPAN><SPAN LANG="en-ca"> <FONT SIZE=2 FACE="Courier New">more</FONT></SPAN><SPAN LANG="en-ca"> <FONT SIZE=2 FACE="Courier New">line</FONT></SPAN><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">:</FONT></SPAN><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New"></FONT></SPAN><SPAN LANG="en-ca"> </SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">"</FONT></SPAN><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">#KAKDIR = D:\warmerda\jp2\kakadu</FONT></SPAN><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">"</FONT></SPAN><SPAN LANG="en-ca"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">I tried to imitate by</FONT></SPAN><SPAN LANG="en-ca"> <FONT SIZE=2 FACE="Courier New">adding:</FONT></SPAN><SPAN LANG="en-ca"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">KAKDIR = C:\build2\kakadu\v6_2_1</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">KAKLIB = C:\build2\kakadu\lib_x86\kdu_v62R.lib</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">KAKSRC = C:\build2\ka</FONT><FONT SIZE=2 FACE="Courier New">kadu\v6_2_1</FONT></SPAN><SPAN LANG="en-ca"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">but getting error at</FONT></SPAN><SPAN LANG="en-ca"> </SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">C:\build2\gdal\frmts>cd jp2kak && nmake /nologo /f makefile.vc && cd ..</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New"> cl /nologo /MD /EHsc /Ox /W3 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_N</FONT><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">O_DEPRECATE /DNDEBUG -I..\..\port -I..\..\ogr -</FONT><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">I..\..\gcore -I..\..\alg -I..\..\</FONT><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">ogr\ogrsf_frmts -IC:\build2\kakadu\v6_2_1\managed\all_includes /DKDU_PENTIUM_MS</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">VC /GX -DOGR_ENABLED /c jp2kakdataset.cpp</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">cl : Command line warning D9035 : option 'GX' has been deprecated and will be re</FONT><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">moved in a future release</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">cl : Command line warning D9036 : use 'EHsc' instead of 'GX'</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">jp2kakdataset.cpp</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">jp2kakdataset.cpp(34) : fatal error C1083: Cannot open include file: 'jp2_local.</FONT><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">h': No such file or directory</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">NMAKE : fatal error U1077: '"c:\Program</FONT> <FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">Files\Microsoft Visual Studio 9.0\VC\BIN\</FONT><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">cl.EXE"' : return code '0x2'</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">Stop.</FONT></SPAN><SPAN LANG="en-ca"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">The compiler cannot</FONT></SPAN><SPAN LANG="en-ca"> <FONT SIZE=2 FACE="Courier New">find the</FONT></SPAN><SPAN LANG="en-ca"> <FONT SIZE=2 FACE="Courier New">'jp2_local.</FONT><FONT SIZE=2 FACE="Courier New">h</FONT><FONT SIZE=2 FACE="Courier New">'</FONT></SPAN><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New"> which is</FONT> <FONT SIZE=2 FACE="Courier New">in</FONT></SPAN><SPAN LANG="en-ca"></SPAN><SPAN LANG="en-us"> <FONT SIZE=2 FACE="Courier New">C:\build2\kakadu\v6_2_1\managed\all_includes</FONT></SPAN><SPAN LANG="en-ca"></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">.</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">I then changed</FONT></SPAN><SPAN LANG="en-ca"> <FONT SIZE=2 FACE="Courier New">KAKDIR = C:\build2\kakadu\v6_2_1</FONT></SPAN><SPAN LANG="en-ca"></SPAN><SPAN LANG="en-us"><FONT SIZE=2>\</FONT></SPAN><SPAN LANG="en-ca"></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">managed\all_includes</FONT></SPAN><SPAN LANG="en-ca"></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">, and still got the same error</FONT></SPAN><SPAN LANG="en-ca"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">What are the</FONT> <FONT SIZE=2 FACE="Courier New">correct</FONT><FONT SIZE=2 FACE="Courier New"></FONT> <FONT SIZE=2 FACE="Courier New">Gdal jp2kak</FONT> <FONT SIZE=2 FACE="Courier New">s</FONT><FONT SIZE=2 FACE="Courier New">etting</FONT><FONT SIZE=2 FACE="Courier New">s</FONT><FONT SIZE=2 FACE="Courier New"> on W</FONT><FONT SIZE=2 FACE="Courier New">i</FONT><FONT SIZE=2 FACE="Courier New">ndows?</FONT></SPAN><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New"> Is there an KAK</FONT><FONT SIZE=2 FACE="Courier New">_INCLUDE?</FONT></SPAN><SPAN LANG="en-ca"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"></SPAN><A NAME=""><SPAN LANG="en-ca"><FONT FACE="Courier New">thanks,</FONT></SPAN></A></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT FACE="Courier New">Shawn</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"></SPAN></P>
</BODY>
</HTML>