Abel,
In Cmakefile.txt of the project I’ve configured this (below #
Developer may want to specify some variable to find proper version.):
set(EXPAT_INCLUDE_DIR "D:/GitHub-repository/libexpat/expat/lib")
set(EXPAT_LIBRARY
"D:/GitHub-repository/libexpat/expat/build/Debug/libexpatd.lib")
Is this .lib a static library, or an import library of the .dll ? My
assumption (I may be wrong) is that it is an import lib of the .dll. In
which case you must not set EXPAT_USE_STATIC_LIBS
set(EXPAT_LIBRARY
"D:/GitHub-repository/libexpat/expat/build/Debug/libexpatd.dll")
That won't work. This needs to be a .lib
You'd better run cmake again on expat with a
-DCMAKE_INSTALL_PREFIX=d:/install-prefix and run "cmake --build .
--target install", and then when building GDAL, use "cmake ..
-DCMAKE_PREFIX_PATH=d:/install-prefix", so it automatically configures
things from what is found in d:/install-prefix
You could also potentially use vcpkg or conda to install GDAL
dependencies instead of building them from scratch:
https://gdal.org/download.html
Even
--
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