Re: [Mapserver-DE] Mapserver Linux mit Unterstützung von ECW

Mapserver mapserver at bhi-online.de
Mon Jun 27 13:25:05 CEST 2005


Hallo Benjamin,

erstmal vielen Dank für die schnelle Antwort.
Ich versuche es mit "gdal-1.2.6" und dazu die
"ecwsdk-3.1.25Jan05-linux" vom gdal-ftp.

Meine configure-Zeile:
./configure --with-ecw=/usr/src/ecwsdk-3.1.25Jan05-linux

daraufhin:
...
checking for libNCSEcw.so... found in /usr/src/ecwsdk-3.1.25Jan05-linux/lib.
checking for NCSECWClient.h in /usr/src/ecwsdk-3.1.25Jan05-linux/include...
found.
...
GDAL is now configured for i686-pc-linux-gnu

  Installation directory:    /usr/local
  C compiler:                gcc -O2
  C++ compiler:              g++ -O2

  LIBTOOL support:           yes

  LIBZ support:              external
  GRASS support:             no
  CFITSIO support:           no
  PCRaster support:          no
  NETCDF support:            no
  LIBPNG support:            external
  LIBTIFF support:           internal
  LIBGEOTIFF support:        internal
  LIBJPEG support:           external
  LIBGIF support:            internal
  OGDI support:              no
  HDF4 support:              no
  KAKADU support:            no
  JASPER support:            no
  ECW support:               yes
  MrSID support:             no
  POSTGRESQL support:        yes
  MySQL support:             no
  XERCES support:            no
  ODBC support:              no
  OCI support:               no
  DODS support:              no
  SQLite support:            no
  GEOS support:              yes

  Statically link PROJ.4:    no

  Python:                    no

  enable OGR building:       yes

sieht also noch gut aus. Danach dann "make" und nach längerem Warten ergibt
sich folgendes:

/usr/bin/ld: warning: libNCSCNet.so, needed by
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so, not found (try
using -rpath or -rpath-link)
/usr/bin/ld: warning: libNCSUtil.so, needed by
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so, not found (try
using -rpath or -rpath-link)
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSDeleteFile'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSGetTempFileName'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSUtilInit'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSRemoveDir'
../.libs/libgdal.so: undefined reference to `CNCSThread::Resume()'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSByteSwapRange64'
../.libs/libgdal.so: undefined reference to `CNCSThread::GetStats()'
../.libs/libgdal.so: undefined reference to `CNCSThread::GetPriority()'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`typeinfo for CNCSMutex'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSThreadInit'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSPoolAlloc'
../.libs/libgdal.so: undefined reference to
`CNCSThread::SetPriority(NCSThreadPriority)'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`CNCSMutex::~CNCSMutex [not-in-charge]()'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSIsLocalFile'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSFileSeekNative'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSMalloc'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCScnetSendPacket'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSLog'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSByteSwapRange16'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSThreadSuspend'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSFileReadUINT32_MSB'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSThreadFini'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSPrefSetUserString'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSMutexInit'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSQueueDestroyNode'
../.libs/libgdal.so: undefined reference to
`CNCSError::GetErrorMessage(char*, ...)'
../.libs/libgdal.so: undefined reference to
`CNCSError::CNCSError[in-charge](NCSError, char*, int, CNCSLog::NCSLogLevel,
char const*)'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSByteSwap16'
../.libs/libgdal.so: undefined reference to `CNCSThread::Terminate()'
../.libs/libgdal.so: undefined reference to `CNCSThread::IsRunning()'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSFree'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`CNCSMutex::~CNCSMutex [in-charge]()'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSGetLastErrorText'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSPoolFree'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSUtilFini'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSByteSwapRange32'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`CNCSMutex::CNCSMutex[not-in-charge]()'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSThreadTerminate'
../.libs/libgdal.so: undefined reference to `CNCSThread::Stop(bool)'
../.libs/libgdal.so: undefined reference to `CNCSThread::ThreadYield()'
../.libs/libgdal.so: undefined reference to `CNCSThread::GetCurrent()'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSMutexFini'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSQueueCreate'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSPoolDestroy'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSByteSwap32'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSByteSwap64'
../.libs/libgdal.so: undefined reference to `CNCSThread::Suspend()'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSPoolCreate'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSQueueCreateNode'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSRealloc'
../.libs/libgdal.so: undefined reference to `CNCSThread::GetSysID()'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSPrefCreateUserKey'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`CNCSThread::~CNCSThread [not-in-charge]()'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSGlobalLock'
../.libs/libgdal.so: undefined reference to `CNCSThread::Spawn(void*, bool)'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSThreadYield'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSFileReadUINT16_MSB'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSPrefDeleteValueUser'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSFileClose'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSFileWriteUINT8_MSB'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSFileWriteIEEE8_LSB'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`typeinfo for CNCSThread'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSFileTellNative'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSFileReadUINT8_MSB'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCScnetDestroy'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSPhysicalMemorySize'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSFormatErrorText'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSPrefGetUserDouble'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`CNCSMutex::Lock()'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSFileReadIEEE8_LSB'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSPrefGetUserString'
../.libs/libgdal.so: undefined reference to `CNCSError::operator=(CNCSError
const&)'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`CNCSMutex::UnLock()'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCScnetShutdown'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSGetTimeStampMs'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSMutexEnd'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSQueueDestroy'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCScnetCreateEx'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSSleep'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`CNCSError::CNCSError[not-in-charge](NCSError, char*, int,
CNCSLog::NCSLogLevel, char const*)'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCScnetSetIISDLLName'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSThreadSpawn'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSQueueRemoveNode'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSFileSizeBytes'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCScnetSetSentCB'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSFileWriteUINT16_MSB'
../.libs/libgdal.so: undefined reference to `CNCSThread::IsSuspended()'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSThreadIsRunning'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSMakeDir'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSFileOpen'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSMutexBegin'
../.libs/libgdal.so: undefined reference to `CNCSThread::DisableStats()'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSUnmapSHM'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSFileWriteUINT32_MSB'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`CNCSError::~CNCSError [not-in-charge]()'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSThreadResume'
../.libs/libgdal.so: undefined reference to `CNCSThread::Run()'
../.libs/libgdal.so: undefined reference to `CNCSError::~CNCSError
[in-charge]()'
../.libs/libgdal.so: undefined reference to `NCSGetErrorText'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`CNCSThread::CNCSThread[not-in-charge]()'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCScnetSetRecvCB'
../.libs/libgdal.so: undefined reference to `CNCSThread::Exit(int)'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSStrDup'
../.libs/libgdal.so: undefined reference to `CNCSThread::GetID()'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSFileWrite'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSQueueAppendNode'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`CNCSMutex::CNCSMutex[in-charge]()'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSGlobalUnlock'
/usr/src/ecwsdk-3.1.25Jan05-linux/lib/libNCSEcw.so: undefined reference to
`NCSFileRead'
../.libs/libgdal.so: undefined reference to `CNCSThread::EnableStats()'
../.libs/libgdal.so: undefined reference to
`CNCSError::CNCSError[in-charge](CNCSError const&)'
collect2: ld returned 1 exit status
make[1]: *** [ogrinfo] Error 1
make[1]: Leaving directory `/usr/src/gdal-1.2.6/ogr'
make: *** [ogr-apps] Error 2

Leider sagt mir das nicht viel. Ich hoffe Du kannst vielleicht mehr damit
anfangen bzw. vielleicht sogar evtl. Tips geben. Meine bisherigen
Überlegungen
waren, dass vielleicht bestimmte Bibliotheken fehlen.

Viele Grüße

Andreas Zapke


==================================
     BHI Bernhard Holfter Informationssysteme
- Visualisierung, GIS, Web Mapping, e-Learning -

                  Heidelberg, Leipzig
                  www.bhi-online.de
----- Original Message -----
From: Benjamin Thelen <bt at ccgis.de>
To: Mapserver <mapserver at bhi-online.de>
Cc: <mapserver-de at freegis.org>
Sent: Monday, June 27, 2005 11:37 AM
Subject: Re: [Mapserver-DE] Mapserver Linux mit Unterstützung von ECW


> Mapserver wrote:
> > Hallo,
> >
> > ich habe einen Mapserver unter Linux (Debian), der auch soweit
> > wunderbar funktioniert. Nun möchte ich aber auch ECW-komprimierte
> > Daten (ER Mapper Format) integrieren. Dabei ist allerdings das
> > Problem, dass GDAL, welches für die Formatunterstützung
> > verantwortlich ist, standardmäßig kein ecw unterstützt.
> > In einigen Foren habe ich gelesen, dass man GDAL mit ecw einfach selbst
> > kompilieren kann wenn die ECW SDK vorliegt.
> > Dies habe ich auch versucht, leider liefert aber make einen Fehler bei
> > der Kompilierung mit ECW.
> >
> > Hat eventuell schon jemand Erfahrungen damit oder vielleicht eine
> > Kompilierung von GDAL mit ECW erfolgreich durchgeführt?
> > Ich bin über jeden Erfahrungsbericht dankbar!
> >
> > Vielen Dank im Voraus und viele Grüße
> >
> > Andreas Zapke
> >
> >
> > ==================================
> >      BHI Bernhard Holfter Informationssysteme
> > - Visualisierung, GIS, Web Mapping, e-Learning -
> >
> >                   Heidelberg, Leipzig
> >                   www.bhi-online.de
> >
> > _______________________________________________
> > Mapserver-DE mailing list
> > Mapserver-DE at freegis.org
> > https://freegis.org/mailman/listinfo/mapserver-de
>
>
> Hallo Andreas,
>
> ich habe keine Erfahrung mit ecw & gdal, habe aber mr.sid Unterstützung
> unter Windows und Linux mit Hilfe des mr.sid-sdk in die gdal
> einkompiliert, was problemfrei funktionierte.
>
>
> Um Dir weiter helfen zu können ist die Ausgabe des
> Kompilierungsvorganges erforderlich und am besten noch die Optionen, die
> Du zum "./configure" hinzufügst.
>
> Gruß,
> Benjamin
>
> _______________________________________________
> Mapserver-DE mailing list
> Mapserver-DE at freegis.org
> https://freegis.org/mailman/listinfo/mapserver-de
>




This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)