[Gdal-dev] Problem compiling Mapserver against GDAL with ECW sdk undefined references - Corrected

James Browne James.Browne at liu.edu
Tue Nov 1 18:55:41 EST 2005


Hi all,

   Sorry to post this again, but I just discovered that the last attempt was altered before you saw it.

   Usually an undefined reference  is from a library path problem or version problem with header files. I think that I have double checked for these mistakes. GDAL command line utilities find the new ECW libraries and they seem to find each other. Trying gdal-config --libs returns the expected value, dalinfo reads ECW files, gdalwarp converts from ECW, and gdal-translate doesn't crash.

   But when I compile Mapserver 4.6.1 against GDAL 1.3.1 library that uses the latest source for ECW SDK 3.3, making sure to use the path to gdal-config, and even try adjusting mapserver's --prefix --libdir configure options, I still get the following errors (abbreviated from a long series)


/usr/bin/../lib/libNCSEcw.so: undefined reference to `NCSDeleteFile'
/usr/bin/../lib/libNCSEcw.so: undefined reference to `NCSGetTempFileName'
/usr/bin/../lib/libNCSEcw.so: undefined reference to `NCSUtilInit'
/usr/bin/../lib/libNCSEcw.so: undefined reference to `NCSRemoveDir'
/usr/bin/../lib/libNCSEcw.so: undefined reference to `CNCSEvent::Set()'
/usr/lib/libgdal.so: undefined reference to `CNCSThread::Resume()'
/usr/bin/../lib/libNCSEcw.so: undefined reference to `NCSByteSwapRange64'
/usr/lib/libgdal.so: undefined reference to `CNCSThread::GetStats()'
/usr/lib/libgdal.so: undefined reference to `CNCSThread::GetPriority()'
...
etc.

   Does anyone have any ideas?

   Thanks again  
          Jim  

 




More information about the Gdal-dev mailing list