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

Frank Warmerdam warmerdam at pobox.com
Wed Nov 2 16:30:19 EST 2005


On 11/2/05, James Browne <James.Browne at liu.edu> wrote:
> Frank,
>
>    Thanks for the tip. It worked - partially. I am running a twin Zeon Debian Linux box. I may have messed something up while trying to get this to work over the past 4 months, but can't figure out what. Mapserver compiled, but when I use it, the resulting page reads:
>
> Warning: dl(): Unable to load dynamic library '/usr/lib/php4/20020429/php_mapscript.so' - libNCSEcw.so: cannot open shared object file: No such file or directory in /var/www/envir_anal/enviro.php on line 8
>
> Fatal error: Call to undefined function: ms_newmapobj() in /var/www/envir_anal/enviro.php on line 15
>
>
>
>
>    If I create symbolic links from /usr/lib/libNCS... to /the respective /usr/local/lib/libNCS... files, I then get:
>
> Warning: dl(): Unable to load dynamic library '/usr/lib/php4/20020429/php_mapscript.so' - /usr/lib/libNCSEcw.so: undefined symbol: _ZN10CNCSThread5SpawnEPvb in /var/www/envir_anal/enviro.php on line 8
>
> Fatal error: Call to undefined function: ms_newmapobj() in /var/www/envir_anal/enviro.php on line 15
>
>
>
>    It seems Mapserver expects the files in /usr/lib but still doesn't see inside them when there. Is there, or should there be, something like a -DUSE_ECW?
>
>    These problems don't make sense to me either, if they did, it would be easy to fix.

Jim,

I'm not too sure what to make of this.  Perhaps you should
try adding /usr/local/lib to the LD_LIBRARY_PATH environment
variable, or add the .so's in question to the ld.so.config file.

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent




More information about the Gdal-dev mailing list