[Gdal-dev] Compiling ECW JPEG 2000 SDK 3.2 beta

Tom Lynch tflynch at gmail.com
Tue Jun 21 03:02:31 EDT 2005


That's a peculiar situation - the makefile for libNCSEcwC (see 'makefile' in 
$INSTALL/Source/C/NCSEcw/NCSEcwC_SDK/) explicitly requires linkage to 
libNCSEcw, libNCScnet and libNCSUtil, so you shouldn't be able to build it 
without those libraries present on your system.

What are the contents of <install directory>/bin/<platform> after you run 
the build script?

Also, what edits have you made to NCSNightlyBuildUnix.ksh? It is usually 
necessary to edit the shebang line and the value of $NCSTOP - the shebang 
line should point to your shell of choice, and $NCSTOP should be the dir in 
which you unzipped the SDK archive.

Maybe the files are being created somewhere you don't expect them to be.

Tom.



On 6/21/05, Armin Burger <armin.burger at gmx.net> wrote:
> 
> Tom,
> 
> if you try the 'old build' method then only libNCSEcwC.so is created, but
> not libNCSEcw.so, even if the documentation says it should so.
> 
> Armin
> 
> > --- Ursprüngliche Nachricht ---
> > Von: Tom Lynch <tflynch at gmail.com>
> > An: Bill Binko <bill at binko.net>
> > Kopie: gdal-dev at remotesensing.org
> > Betreff: Re: [Gdal-dev] Compiling ECW JPEG 2000 SDK 3.2 beta
> > Datum: Tue, 21 Jun 2005 13:04:40 +0800
> >
> > Hi Bill,
> >
> > The problem is probably in GDAL ... the new "libecwj2" static build
> > requires
> > a call to NCSecwInit() to be made prior to library use and a call to
> > NCSecwShutdown() be made following use. These initialize and shutdown
> > various resources (include those used by the mutexes) which would 
> explain
> > the segfault you're seeing.
> >
> > I will try to coordinate with Frank on getting the necessary changes 
> into
> > GDAL - he may prefer to wait for a more stable version. 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.
> >
> > Cheers :-)
> >
> > On 6/21/05, Bill Binko <bill at binko.net> wrote:
> > >
> > >
> > > Armin,
> > >
> > > Thanks: I tried the new build system to create libecwj2 and had it 
> build
> > > correctly. I update GDAL to use it. However, I get a segfault on 
> opening
> > > a ECW file with gdalinfo with this stack:
> > >
> > > #0 0x405c1aa5 in NCSMutexBegin () from
> > > /home/bill/cvsroot/ecw32beta/lib/libecwj2.so.1
> > > #1 0x40587474 in NCSecwGlobalLock () from
> > > /home/bill/cvsroot/ecw32beta/lib/libecwj2.so.1
> > > #2 0x40503a16 in CNCSJPCGlobalLock::Lock () from
> > > /home/bill/cvsroot/ecw32beta/lib/libecwj2.so.1
> > > #3 0x40503a7b in CNCSJPCGlobalLock::CNCSJPCGlobalLock () from
> > > /home/bill/cvsroot/ecw32beta/lib/libecwj2.so.1
> > > #4 0x40520714 in CNCSJP2FileView::CNCSJP2FileView () from
> > > /home/bill/cvsroot/ecw32beta/lib/libecwj2.so.1
> > > #5 0x40587b1d in CNCSFile::CNCSFile () from
> > > /home/bill/cvsroot/ecw32beta/lib/libecwj2.so.1
> > > #6 0x400d0a17 in ECWDataset::Open () from /usr/lib/libgdal.so.1
> > > #7 0x400d1110 in ECWDataset::OpenECW () from /usr/lib/libgdal.so.1
> > > #8 0x4017963f in GDALOpen () from /usr/lib/libgdal.so.1
> > > #9 0x08049ae7 in main ()
> > >
> > > I am going to try the old build process and see if that is more
> > > successful.
> > >
> > > Bill
> > >
> > --
> > Tom Lynch
> > Development, ER Mapper
> > Phone: +61 8 93882900
> > Fax: +61 8 93882901
> > Email: tom.lynch at ermapper.com
> > Web: http://www.ermapper.com
> > Forums: http://forum.ermapper.com
> >
> 
> --
> Geschenkt: 3 Monate GMX ProMail gratis + 3 Ausgaben stern gratis
> ++ Jetzt anmelden & testen ++ http://www.gmx.net/de/go/promail ++
> 



-- 
Tom Lynch
Development, ER Mapper
Phone: +61 8 93882900
Fax: +61 8 93882901
Email: tom.lynch at ermapper.com
Web: http://www.ermapper.com
Forums: http://forum.ermapper.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20050621/ed3d62c1/attachment.html


More information about the Gdal-dev mailing list