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 *)" 
(?o...@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 *)" 
(?o...@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)" 
(?o...@jp2_family_src@@uaexpb...@z)
jp2kakdataset.obj : error LNK2001: unresolved external symbol "public: virtual 
void __thiscall jp2_family_src::close(void)" 
(?cl...@jp2_family_src@@UAEXXZ)jp2kakdataset.obj : error LNK2019: unresolved 
external symbol "public: void __thiscall jp2_family_tgt::close(void)" 
(?cl...@jp2_family_tgt@@QAEXXZ) referenced in function "public: virtual 
__thiscall jp2_family_tgt::~jp2_family_tgt(void)" (??1jp2_family_tgt@@u...@xz)


thanks,

Shawn


_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to