[gdal-dev] JP2KAK parameters on Gdal windows build

Shawn GONG SGONG at mdacorporation.com
Tue Oct 20 17:09:46 EDT 2009


hi list,

I need help to set JP2KAK parameters in Gdal 1.6.2 nmake.opt on Windows.

I have unzipped Kakadu 6.21 (non-commercial license) on C:\build2\kakadu\v6_2_1.  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\

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

In nmake.opt, there is only one parameter for JP2KAK:
# Uncommment if you have Kakadu 4.0 or newer
#KAKDIR =	D:\warmerda\jp2\kakadu

On the contrary, 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

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? 

I have tried to use the above KAKDIR and KAKLIB. Here are errors:
1) jp2kakdataset.cpp couldn’t find kdu_*.h files. I copied the *.h files onto gdal\frmts\jp2kak\ and it is good now.

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 
I got:
   Creating library gdal_i.lib and object gdal_i.exp
jp2kakdataset.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall jp2_family_src::open(class kdu_cache *)" (?open at jp2_family_src@@UAEXPAVkdu_cache@@@Z)
jp2kakdataset.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall jp2_family_src::open(class kdu_compressed_source *)" (?open at jp2_family_src@@UAEXPAVkdu_compressed_source@@@Z)
jp2kakdataset.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall jp2_family_src::open(char const *,bool)" (?open at jp2_family_src@@UAEXPBD_N at Z)
jp2kakdataset.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall jp2_family_src::close(void)" (?close at jp2_family_src@@UAEXXZ)jp2kakdataset.obj : error LNK2019: unresolved external symbol "public: void __thiscall jp2_family_tgt::close(void)" (?close at jp2_family_tgt@@QAEXXZ) referenced in function "public: virtual __thiscall jp2_family_tgt::~jp2_family_tgt(void)" (??1jp2_family_tgt@@UAE at XZ)


thanks,

Shawn


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20091020/ea852cef/attachment.html


More information about the gdal-dev mailing list