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.roua...@spatialys.com>
*Date: *Saturday, March 2, 2024 at 1:50 PM
*To: *Fengting Chen <fengting.c...@oracle.com>,
gdal-dev@lists.osgeo.org <gdal-dev@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.
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev