<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>JP2KAK parameters on Gdal windows build</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>hi list,<BR>
<BR>
I need help to set JP2KAK parameters in Gdal 1.6.2 nmake.opt on Windows.<BR>
<BR>
I have unzipped Kakadu 6.21 (non-commercial license) on C:\build2\kakadu\v6_2_1.&nbsp; I ran MS VisualStudio 2008 using coresys_2008.sln and kdu_managed_2008.sln. *.dll are generated in bin_x86\ and *.lib are in lib_x86\, *.obj are in v6_generated_x86\<BR>
<BR>
I am using the followings for JP2KAK<BR>
Compiler: MS VS 9.0 (2008)<BR>
Gdal: gdal-svn-stable-2009.08.03 or 1.6.2<BR>
<BR>
In nmake.opt, there is only one parameter for JP2KAK:<BR>
# Uncommment if you have Kakadu 4.0 or newer<BR>
#KAKDIR =&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; D:\warmerda\jp2\kakadu<BR>
<BR>
On the contrary, <A HREF="http://trac.osgeo.org/gdal/wiki/JP2KAK">http://trac.osgeo.org/gdal/wiki/JP2KAK</A> states:<BR>
&nbsp; In GDAL/OGR trunk (1.7dev) I have substantially updated the makefile.vc and<BR>
&nbsp; nmake.opt entries for Kakadu support. Now it should be sufficient to update the<BR>
&nbsp; nmake.opt entries appropriately for your local tree:<BR>
&nbsp; # Uncommment if you have Kakadu 6.0 or newer<BR>
&nbsp; KAKDIR = &nbsp;&nbsp;&nbsp;&nbsp; \warmerda\pkg\kakadu-6.2.1<BR>
&nbsp; KAKLIB =&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $(KAKDIR)\lib_x86\kdu_v62R.lib<BR>
&nbsp; KAKSRC =&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $(KAKDIR)\v6_2_1-00256N<BR>
<BR>
My problem is that I have newer Kakadu 6.2.1. How should I set KAKDIR and KAKLIB in Gdal 1.6.2 or recent overnight stable version?<BR>
<BR>
I have tried to use the above KAKDIR and KAKLIB. Here are errors:<BR>
1) jp2kakdataset.cpp couldn&#146;t find kdu_*.h files. I copied the *.h files onto gdal\frmts\jp2kak\ and it is good now.<BR>
<BR>
2) nmake failed to copy Kakadu *.obj to gdal\frmts\o\. I copied C:\build2\kakadu\v6_generated_x86\coresys\release\*.obj to gdal\frmts\o<BR>
I got:<BR>
&nbsp;&nbsp; Creating library gdal_i.lib and object gdal_i.exp<BR>
jp2kakdataset.obj : error LNK2001: unresolved external symbol &quot;public: virtual void __thiscall jp2_family_src::open(class kdu_cache *)&quot; (?open@jp2_family_src@@UAEXPAVkdu_cache@@@Z)<BR>
jp2kakdataset.obj : error LNK2001: unresolved external symbol &quot;public: virtual void __thiscall jp2_family_src::open(class kdu_compressed_source *)&quot; (?open@jp2_family_src@@UAEXPAVkdu_compressed_source@@@Z)<BR>
jp2kakdataset.obj : error LNK2001: unresolved external symbol &quot;public: virtual void __thiscall jp2_family_src::open(char const *,bool)&quot; (?open@jp2_family_src@@UAEXPBD_N@Z)<BR>
jp2kakdataset.obj : error LNK2001: unresolved external symbol &quot;public: virtual void __thiscall jp2_family_src::close(void)&quot; (?close@jp2_family_src@@UAEXXZ)jp2kakdataset.obj : error LNK2019: unresolved external symbol &quot;public: void __thiscall jp2_family_tgt::close(void)&quot; (?close@jp2_family_tgt@@QAEXXZ) referenced in function &quot;public: virtual __thiscall jp2_family_tgt::~jp2_family_tgt(void)&quot; (??1jp2_family_tgt@@UAE@XZ)<BR>
<BR>
<BR>
thanks,<BR>
<BR>
Shawn<BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>