Re: Compiling ECW 3.3 on MacOSX

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: Compiling ECW 3.3 on MacOSX

Jeremy Palmer-3
Hi All

On Sat, Jan 6, 2018 at 11:21 AM, Even Rouault <[hidden email]> wrote:

> Also do you think

> https://trac.osgeo.org/gdal/browser/branches/2.2/autotest/gdrivers/ecw.py

> is setup to test the 3.3 SDK nicely? If so I can verify the patch on LINUX

> and MacOSX with that.

 

The tests pass fine (*) for me on Linux with ECW SDK 3.3 + libecwj2-3.3.patch. No idea on Mac

 


I finally got around to doing testing on MacOSX. Using the MacOSX patches from John and the libecwj2-3.3.patch I was able to compile and successfully test the ECW driver with GDAL 2.2.3 on MacOSX 10.13.2. Test results below:

python ecw.py
  TEST: ecw_init ... success
  TEST: ecw_1 ... success
  TEST: ecw_2 ... success
  TEST: ecw_3 ... success
  TEST: ecw_4 ... success
  TEST: ecw_5 ... success
  TEST: ecw_6 ... success
  TEST: ecw_7 ... Warning 6: NITF only supports WGS84 geographic and UTM projections.

success
  TEST: ecw_8 ... success
  TEST: ecw_9 ... success
  TEST: ecw_10 ... success
  TEST: ecw_11 ... success
  TEST: ecw_12 ... success
  TEST: ecw_13 ... success
  TEST: ecw_14 ... success
  TEST: ecw_15 ... success
  TEST: ecw_16 ... success
  TEST: ecw_17 ... Diff at pixel (0, 0) : -5.000000
Diff at pixel (1, 0) : 1.000000
Diff at pixel (2, 0) : -2.000000
Diff at pixel (3, 0) : -1.000000
Diff at pixel (4, 0) : -3.000000
Diff at pixel (5, 0) : -3.000000
Diff at pixel (6, 0) : -1.000000
Diff at pixel (9, 0) : 2.000000
Diff at pixel (10, 0) : -3.000000
Diff at pixel (13, 7) : -6.000000
Max diff : 6
Number of diffs : 302
success
  TEST: ecw_18 ... success
  TEST: ecw_19 ... success
  TEST: ecw_20 ... success
  TEST: ecw_21 ... success
  TEST: ecw_22 ... success
  TEST: ecw_23 ... success
  TEST: ecw_24 ... success
  TEST: ecw_25 ... success
  TEST: ecw_26 ... success
  TEST: ecw_27 ... success
  TEST: ecw_28 ... success
  TEST: ecw_29 ... success
  TEST: ecw_30 ... success
  TEST: ecw_31 ... skip
  TEST: ecw_32 ... success
  TEST: ecw_33 ... success
  TEST: ecw_33_bis ... success
  TEST: ecw_34 ... skip
  TEST: ecw_35 ... success
  TEST: ecw_36 ... skip
  TEST: ecw_37 ... skip
  TEST: ecw_38 ... skip
  TEST: ecw_39 ... skip
  TEST: ecw_40 ... ERROR 1: An error has occurred: Error 86 "File is invalid or corrupt"  file "" line 0
ERROR 1: Cannot open data/stefan_full_rgba_ecwv3_meta.ecw which looks like a ECW format v3 file, that requires ECW SDK 5.0 or later
skip
  TEST: ecw_41 ... skip
  TEST: ecw_42 ... skip
  TEST: ecw_43 ... success
  TEST: ecw_44 ... skip
  TEST: ecw_45 ... success
  TEST: ecw_46 ... success
  TEST: ecw_47 ... skip
  TEST: ecw_48 ... success
  TEST: ecw_49 ... success
  TEST: ecw_online_1 ... As GDAL_DOWNLOAD_TEST_DATA environment variable is not defined, some tests relying on data to downloaded from the Web will be skipped
skip
  TEST: ecw_online_2 ... skip
  TEST: ecw_online_4 ... skip
  TEST: ecw_online_5 ... skip
  TEST: ecw_online_6 ... success
  TEST: ecw_online_7 ... skip
  TEST: ecw_cleanup ... success

Test Script: ecw
Succeeded: 42
Failed:    0 (0 blew exceptions)
Skipped:   16
Expected fail:0
Duration:  12.09s
As GDAL_DOWNLOAD_TEST_DATA environment variable is not defined, 5 tests relying on data to downloaded from the Web have been skipped


Note I've also successfully built and tested the combined patch on Ubuntu 14.04 and 16.06 with GDAL 1.11 and GDAL 2.2.3 :)

Cheers
Jeremy 

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