[gdal-dev] [External] : Re: GDAL build on windows failed for FILEGDB driver

Even Rouault even.rouault at spatialys.com
Sat Mar 2 12:48:46 PST 2024


Le 02/03/2024 à 21:14, Fengting Chen a écrit :
>
> Thanks, that is clear now.
>
> One more question, anywhere to get proj_9_3.lib and sqlite3 .lib, most 
> downloadable package only has .dll.
>
conda or vcpkg. cf https://gdal.org/download.html#windows
>
> *From: *Even Rouault <even.rouault at spatialys.com>
> *Date: *Saturday, March 2, 2024 at 1:50 PM
> *To: *Fengting Chen <fengting.chen at oracle.com>, 
> gdal-dev at lists.osgeo.org <gdal-dev at lists.osgeo.org>
> *Subject: *Re: [External] : Re: [gdal-dev] GDAL build on windows 
> failed for FILEGDB driver
>
> Le 02/03/2024 à 19:36, Fengting Chen a écrit :
>
>     That is what I guessed. But the documentation says:
>
>     CURL_LIBRARY_RELEASEÁ
>     <https://urldefense.com/v3/__https:/gdal.org/development/building_from_source.html*cmdoption-arg-CURL_LIBRARY_RELEASE__;Iw!!ACWV5N9M2RV99hQ!NL4-GXTlZwB0Rdq69N2ze_aa3cG4M6vhEC97pm9UK8Z4svrhYWwpPuQCNPHu5W_Hlg5OKvssXsXDmBSjEJTiAlZbxGK0$>
>
>     Path to a shared or static library file, such as libcurl.dll,
>     libcurl.so, libcurl.lib, or other name.
>
> Ah that was misleading indeed. Correction queued in 
> https://github.com/OSGeo/gdal/pull/9371 
> <https://urldefense.com/v3/__https:/github.com/OSGeo/gdal/pull/9371__;!!ACWV5N9M2RV99hQ!NL4-GXTlZwB0Rdq69N2ze_aa3cG4M6vhEC97pm9UK8Z4svrhYWwpPuQCNPHu5W_Hlg5OKvssXsXDmBSjEJTiAng9m6OA$>
>
>     If I use .lib here, will GDAL link with the dynamic library by
>     default
>
> You need to point to the appropriate .lib: a static .lib if you want 
> static linking, or an import .lib for dynamic linking. Cf 
> https://stackoverflow.com/questions/8019464/a-static-library-vs-an-import-library-on-the-windows-platform 
> <https://urldefense.com/v3/__https:/stackoverflow.com/questions/8019464/a-static-library-vs-an-import-library-on-the-windows-platform__;!!ACWV5N9M2RV99hQ!NL4-GXTlZwB0Rdq69N2ze_aa3cG4M6vhEC97pm9UK8Z4svrhYWwpPuQCNPHu5W_Hlg5OKvssXsXDmBSjEJTiAtL66jH4$> 
> for example
>
> | or I need to set CURL_USE_STATIC_LIBS=OFF explicitly?
>
> No, this setting is only effective when set to ON (it adds a 
> -DCURL_STATICLIB define when including curl, and links to a few system 
> Windows .lib).  You need to point CURL_LIBRARY_RELEASE to the 
> appropriate kind of .lib given the type of linking you wish. The exact 
> naming will depend on how curl has been built.
>
>
>
> -- 
> http://www.spatialys.com  <https://urldefense.com/v3/__http:/www.spatialys.com__;!!ACWV5N9M2RV99hQ!NL4-GXTlZwB0Rdq69N2ze_aa3cG4M6vhEC97pm9UK8Z4svrhYWwpPuQCNPHu5W_Hlg5OKvssXsXDmBSjEJTiAvgpGpx2$>
> My software is free, but my time generally not.

-- 
http://www.spatialys.com
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240302/f132290b/attachment-0001.htm>


More information about the gdal-dev mailing list