hi Frank and list, I copied all the Kakadu *.h files that jp2kakdataset.cpp refers to its local directory. Now the "cannot find jp2_local.h" error is gone and I got the error: 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_N O_DEPRECATE /DNDEBUG -I..\..\port -I..\..\ogr -I..\..\gcore -I..\..\alg -I..\.. \ogr\ogrsf_frmts -IC:\build2\kakadu KAKLIB = C:\build2\kakadu\lib_x86\kdu_v62 R.lib /DKDU_PENTIUM_MSVC /GX -DOGR_ENABLED /c jp2kakdataset.cpp ... ... copy C:\build2\kakadu KAKLIB = C:\build2\kakadu\lib_x86\kdu_v62R.lib\*.obj ..\o The syntax of the command is incorrect. NMAKE : fatal error U1077: 'copy' : return code '0x1'
My Kakadu parameters in gdal nmake.opt is wrong. Would someone help? thanks, Shawn PS The posts that I sent out don't show on my Gdal mails. Would someone please confirm that you can see this? _____________________________________________ From: Gong, Shawn (Contractor) Sent: Monday, October 19, 2009 4:10 PM To: gdal-dev@lists.osgeo.org Subject: jp2kak include error on Windows 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
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev