[gdal-dev] linking MrSID with GDAL

Frank Warmerdam warmerdam at pobox.com
Wed Jul 30 10:35:35 EDT 2008


Nidel, Mike wrote:
> Is there an option to use to statically link the MrSID GeoDSDK into the
> gdal.dll/libgdal.so? Actually this seems to happen automatically on
> Linux with libgdal.so, but not with the windows build. I'm not familiar
> enough with the Microsoft compiler/linker to know how to do this but if
> there's already an option in one of the config files that would be
> great.

Mike,

In the MrSID DSDK 6 for windows I see a lib/Release/lti_dsdk.lib file which
is presumably the static library.  You can modify the MRSID_LIB macro in
nmake.opt to use this library instead of the dll stub library.

There may be a similar choice on linux, but you would likely have to manually
edit the GDALmake.opt to use the library you want.

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    | President OSGeo, http://osgeo.org



More information about the gdal-dev mailing list