[gdal-dev] gdal 2.3 ecw 5.4

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

[gdal-dev] gdal 2.3 ecw 5.4

Jachym Cepicky
Hi,

I try to build gdal (`git checkout release 2.3`, but the same result I've got on master) with ECW support.

I followed the tutorial on https://trac.osgeo.org/gdal/wiki/ECW


Installed to /opt/hexagon dir

configured with

$ ./configure --with-ecw=/opt/hexagon/ERDAS-ECW_JPEG_2000_SDK-5.4.0/Desktop_Read-Only/

made copy of libNCSEcw.so to /usr/local/lib

$ sudo cp /opt/hexagon/ERDAS-ECW_JPEG_2000_SDK-5.4.0/Desktop_Read-Only/lib/x64/release/libNCSEcw.so.5.4.0 /usr/local/lib/
$ sudo ldconfig

And after running `make`, I've got

```
make[1]: Entering directory '/home/jachym/src/gdal/gdal/apps'
/bin/bash /home/jachym/src/gdal/gdal/libtool --mode=link --silent g++  gdalinfo_bin.lo  /home/jachym/src/gdal/gdal/libgdal.la  -o gdalinfo
/home/jachym/src/gdal/gdal/.libs/libgdal.so: undefined reference to `NCS::CString::utf8_str(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) const'
/home/jachym/src/gdal/gdal/.libs/libgdal.so: undefined reference to `NCS::CString::Utf8Encode(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)'
/home/jachym/src/gdal/gdal/.libs/libgdal.so: undefined reference to `NCS::CView::SetTransformList(int, std::__cxx11::list<NCS::API::ITransform*, std::allocator<NCS::API::ITransform*> >&)'
/home/jachym/src/gdal/gdal/.libs/libgdal.so: undefined reference to `NCS::CString::Utf8Decode(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2: error: ld returned 1 exit status
GNUmakefile:82: recipe for target 'gdalinfo' failed
make[1]: *** [gdalinfo] Error 1
make[1]: Leaving directory '/home/jachym/src/gdal/gdal/apps'
GNUmakefile:105: recipe for target 'apps-target' failed
make: *** [apps-target] Error 2
```

Any hint, what to try?

Thank you

Jachym

--
Jachym Cepicky
e-mail: jachym.cepicky gmail com
URL: http://les-ejk.cz
GPG: http://les-ejk.cz/pgp/JachymCepicky.pgp

_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: gdal 2.3 ecw 5.4

Even Rouault-2

On mercredi 2 mai 2018 22:04:24 CEST Jachym Cepicky wrote:

> Hi,

>

> I try to build gdal (`git checkout release 2.3`, but the same result I've

> got on master) with ECW support.

>

> I followed the tutorial on https://trac.osgeo.org/gdal/wiki/ECW

>

> Downloaded sdk 5.4 for Linux from

> https://download.hexagongeospatial.com/downloads/ecw/erdas-ecw-jp2-sdk-v5-4-

> linux

>

> Installed to /opt/hexagon dir

>

> configured with

>

> $ ./configure

> --with-ecw=/opt/hexagon/ERDAS-ECW_JPEG_2000_SDK-5.4.0/Desktop_Read-Only/

>

> made copy of libNCSEcw.so to /usr/local/lib

>

> $ sudo cp

> /opt/hexagon/ERDAS-ECW_JPEG_2000_SDK-5.4.0/Desktop_Read-Only/lib/x64/release

> /libNCSEcw.so.5.4.0 /usr/local/lib/

 

Jachym,

 

That .so uses the 'old' C++ ABI

If you use gcc 5.1 or later, you need to use

ERDAS-ECW_JPEG_2000_SDK-5.4.0/Desktop_Read-Only/lib/newabi/x64/release/libNCSEcw.so

 

(note the additional newabi/ subdirectory in the path)

 

Even

 

--

Spatialys - Geospatial professional services

http://www.spatialys.com


_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: gdal 2.3 ecw 5.4

Jorge Samuel Mendes de Jesus
In reply to this post by Jachym Cepicky
Hi
Can confirm that there is a problem, I made a docker for the developers to test the problem

https://github.com/jorgejesus/gdal-ecw


Jorge

On Thu, May 3, 2018 at 12:04 AM, Jachym Cepicky <[hidden email]> wrote:
Hi,

I try to build gdal (`git checkout release 2.3`, but the same result I've got on master) with ECW support.

I followed the tutorial on https://trac.osgeo.org/gdal/wiki/ECW


Installed to /opt/hexagon dir

configured with

$ ./configure --with-ecw=/opt/hexagon/ERDAS-ECW_JPEG_2000_SDK-5.4.0/Desktop_Read-Only/

made copy of libNCSEcw.so to /usr/local/lib

$ sudo cp /opt/hexagon/ERDAS-ECW_JPEG_2000_SDK-5.4.0/Desktop_Read-Only/lib/x64/release/libNCSEcw.so.5.4.0 /usr/local/lib/
$ sudo ldconfig

And after running `make`, I've got

```
make[1]: Entering directory '/home/jachym/src/gdal/gdal/apps'
/bin/bash /home/jachym/src/gdal/gdal/libtool --mode=link --silent g++  gdalinfo_bin.lo  /home/jachym/src/gdal/gdal/libgdal.la  -o gdalinfo
/home/jachym/src/gdal/gdal/.libs/libgdal.so: undefined reference to `NCS::CString::utf8_str(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) const'
/home/jachym/src/gdal/gdal/.libs/libgdal.so: undefined reference to `NCS::CString::Utf8Encode(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)'
/home/jachym/src/gdal/gdal/.libs/libgdal.so: undefined reference to `NCS::CView::SetTransformList(int, std::__cxx11::list<NCS::API::ITransform*, std::allocator<NCS::API::ITransform*> >&)'
/home/jachym/src/gdal/gdal/.libs/libgdal.so: undefined reference to `NCS::CString::Utf8Decode(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2: error: ld returned 1 exit status
GNUmakefile:82: recipe for target 'gdalinfo' failed
make[1]: *** [gdalinfo] Error 1
make[1]: Leaving directory '/home/jachym/src/gdal/gdal/apps'
GNUmakefile:105: recipe for target 'apps-target' failed
make: *** [apps-target] Error 2
```

Any hint, what to try?

Thank you

Jachym

--
Jachym Cepicky
e-mail: jachym.cepicky gmail com
URL: http://les-ejk.cz
GPG: http://les-ejk.cz/pgp/JachymCepicky.pgp

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


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