Hexagon Geospatial
MENU

Support ECW / JP2

The ECW (Enhanced Compressed Wavelet) and JP2 formats are standard compressing processes in many Hexagon Geospatial products. This discussion board focuses on the production and use of the ECW/JP2.
Showing results for 
Search instead for 
Do you mean 
Reply
Highlighted
Flo
New Contributor
Posts: 4
Registered: ‎09-21-2016
Accepted Solution

ECW SDK 5.3 Linux GCC 5 ABI CXX11 compatibility

Hello,

 

I'm facing problems with ECW SDK 5.3 fr Linux under Ubuntu 16.04 LTS, GCC 5.4 and GDAL.

 

Segmentation faults because of the mix use of OLD CXX ABI and new CXX ABI of GCC >= 5.3.

 

Here are GDB reports :

0  0x00007fffffffba18 in ?? ()
#1  0x00007fffffffba18 in ?? ()
#2  0x00000000021658b0 in ?? ()
#3  0x0000007600000072 in ?? ()
#4  0x0000000000000010 in ?? ()
#5  0x00007fffffffbb70 in ?? ()
#6  0x0000000002bbb320 in ?? ()
#7  0x0000000000000001 in ?? ()
#8  0x00007fffffffbb70 in ?? ()
#9  0x00007fffffffbb70 in ?? ()
#10 0x00007fffbbc3da13 in NCS::CPrefsXML::OpenKey(NCS::CString const&, bool, bool) () from /usr/lib/libNCSEcw.so.5.3.0
#11 0x00007fffbbc3dbfd in NCS::CPrefsXML::CPrefsXML(NCS::CString const&) () from /usr/lib/libNCSEcw.so.5.3.0
#12 0x00007fffbbc3e020 in NCS::CPrefsXML::Init() () from /usr/lib/libNCSEcw.so.5.3.0
#13 0x00007fffbbc5baf7 in NCSInit () from /usr/lib/libNCSEcw.so.5.3.0
#14 0x00007fffbc5496e3 in ECWInitialize() () from /usr/lib/gdalplugins/2.1/gdal_ECW_JP2ECW.so
#15 0x00007fffbc54647b in ECWDataset::Open(GDALOpenInfo*, int) () from /usr/lib/gdalplugins/2.1/gdal_ECW_JP2ECW.so
#16 0x00007fffbc545f09 in ECWDataset::OpenECW(GDALOpenInfo*) () from /usr/lib/gdalplugins/2.1/gdal_ECW_JP2ECW.so
#17 0x00007fffec5cf0f0 in GDALOpenEx () from /usr/lib/libgdal.so.20
#0  _int_malloc (av=av@entry=0x7ffff43dfb20 <main_arena>, bytes=bytes@entry=164) at malloc.c:3517
#1  0x00007ffff409f5a4 in __GI___libc_malloc (bytes=164) at malloc.c:2914
#2  0x00007ffff4688e78 in operator new(unsigned long) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3  0x00007ffff46cce6f in std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_Rep::_S_create(unsigned long, unsigned long, std::allocator<wchar_t> const&) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4  0x00007ffff46cd159 in std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_mutate(unsigned long, unsigned long, unsigned long) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5  0x00007ffff46cd7be in std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_replace_safe(unsigned long, unsigned long, wchar_t const*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#6  0x00007fffbbc3f5d2 in NCS::CString::operator=(NCS::CString const&) () from /usr/lib/libNCSEcw.so.5.3.0
#7  0x00007fffbbc3dad2 in NCS::CPrefsXML::CPrefsXML(NCS::CString const&) () from /usr/lib/libNCSEcw.so.5.3.0
#8  0x00007fffbbc3e020 in NCS::CPrefsXML::Init() () from /usr/lib/libNCSEcw.so.5.3.0
#9  0x00007fffbbc5baf7 in NCSInit () from /usr/lib/libNCSEcw.so.5.3.0
#10 0x00007fffbc5496e3 in ECWInitialize() () from /usr/lib/gdalplugins/2.1/gdal_ECW_JP2ECW.so
#11 0x00007fffbc54647b in ECWDataset::Open(GDALOpenInfo*, int) () from /usr/lib/gdalplugins/2.1/gdal_ECW_JP2ECW.so
#12 0x00007fffbc545f09 in ECWDataset::OpenECW(GDALOpenInfo*) () from /usr/lib/gdalplugins/2.1/gdal_ECW_JP2ECW.so
#13 0x00007fffec5cf0f0 in GDALOpenEx () from /usr/lib/libgdal.so.20

Any help is appreciated. Do you plans to migrate to the new GCC CXX11 ABI ? Currently I can't use the ECW SDK into my applications.

Community Manager
Posts: 35
Registered: ‎09-11-2015

Re: ECW SDK 5.3 Linux GCC 5 ABI CXX11 compatibility

Hi Flo,

 

The 5.3 SDK only supports GCC 5 with the old (4.x compatible) ABI. In 5.4 we are supplying new libs built with the new C++ 11 ABI which should solve the problem. This will be available later in the year with the normal product release.

 

Regards,
Christoph

Christoph Rosenberger
Community Moderator
Christoph.Rosenberger@hexagongeospatial.com
Flo
New Contributor
Posts: 4
Registered: ‎09-21-2016

Re: ECW SDK 5.3 Linux GCC 5 ABI CXX11 compatibility

This is a great news.

 

Do you have a target release date for the 5.4 SDK version ? Mid year or end of the year ?

 

Thanks

 

Regards

Community Manager
Posts: 35
Registered: ‎09-11-2015

Re: ECW SDK 5.3 Linux GCC 5 ABI CXX11 compatibility

v5.4 will be released end of this year.

 

Regards,
Christoph

Christoph Rosenberger
Community Moderator
Christoph.Rosenberger@hexagongeospatial.com
Flo
New Contributor
Posts: 4
Registered: ‎09-21-2016

Re: ECW SDK 5.3 Linux GCC 5 ABI CXX11 compatibility

Hello,

 

happy new year !!

 

Is the new release with GCC 5 ABI CXX11 is released ?

 

Thanks

Staff
Posts: 468
Registered: ‎02-02-2016

Re: ECW SDK 5.3 Linux GCC 5 ABI CXX11 compatibility

Our Power Portfolio 2018 products will be released in March of this year. Power Portfolio 2018 will include version 5.4 of the ERDAS ECW/JP2 SDK.

 

Regards,

 

Stephen Bent

Hexagon Geospatial Support

Do you need immediate support?
If you encounter a critical issue and need immediate assistance please submit a Service Request through our Support Portal.