Hi Bill,<br>
<br>
The problem is probably in GDAL ... the new &quot;libecwj2&quot; static build
requires a call to NCSecwInit() to be made prior to library use and a
call to NCSecwShutdown() be made following use.&nbsp; These initialize
and shutdown various resources (include those used by the mutexes)
which would explain the segfault you're seeing.<br>
<br>
I will try to coordinate with Frank on getting the necessary changes
into GDAL - he may prefer to wait for a more stable version.&nbsp; In
the meantime I am actively working on providing more documentation and
fewer hassles (and probably an autoconf-based build - this was
discussed a bit at OSG) as soon as possible.<br>
<br>
Cheers :-)<br><br><div><span class="gmail_quote">On 6/21/05, <b class="gmail_sendername">Bill Binko</b> &lt;<a href="mailto:bill@binko.net">bill@binko.net</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Armin,<br><br>Thanks: I tried the new build system to create libecwj2 and had it build<br>correctly.&nbsp;&nbsp;I update GDAL to use it.&nbsp;&nbsp;However, I get a segfault on opening<br>a ECW file with gdalinfo with this stack:<br><br>
#0&nbsp;&nbsp;0x405c1aa5 in NCSMutexBegin () from /home/bill/cvsroot/ecw32beta/lib/libecwj2.so.1<br>#1&nbsp;&nbsp;0x40587474 in NCSecwGlobalLock () from /home/bill/cvsroot/ecw32beta/lib/libecwj2.so.1<br>#2&nbsp;&nbsp;0x40503a16 in CNCSJPCGlobalLock::Lock () from /home/bill/cvsroot/ecw32beta/lib/libecwj2.so.1
<br>#3&nbsp;&nbsp;0x40503a7b in CNCSJPCGlobalLock::CNCSJPCGlobalLock () from /home/bill/cvsroot/ecw32beta/lib/libecwj2.so.1<br>#4&nbsp;&nbsp;0x40520714 in CNCSJP2FileView::CNCSJP2FileView () from /home/bill/cvsroot/ecw32beta/lib/libecwj2.so.1
<br>#5&nbsp;&nbsp;0x40587b1d in CNCSFile::CNCSFile () from /home/bill/cvsroot/ecw32beta/lib/libecwj2.so.1<br>#6&nbsp;&nbsp;0x400d0a17 in ECWDataset::Open () from /usr/lib/libgdal.so.1<br>#7&nbsp;&nbsp;0x400d1110 in ECWDataset::OpenECW () from /usr/lib/libgdal.so.1
<br>#8&nbsp;&nbsp;0x4017963f in GDALOpen () from /usr/lib/libgdal.so.1<br>#9&nbsp;&nbsp;0x08049ae7 in main ()<br><br>I am going to try the old build process and see if that is more<br>successful.<br><br>Bill<br></blockquote></div>-- <br>Tom Lynch
<br>Development, ER Mapper<br>Phone:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+61 8 93882900<br>Fax:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+61 8 93882901<br>Email:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="mailto:tom.lynch@ermapper.com">tom.lynch@ermapper.com</a><br>Web:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.ermapper.com">http://www.ermapper.com
</a><br>Forums:&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://forum.ermapper.com">http://forum.ermapper.com</a>