On 27/06/2019 11:06, FRANCOIS GODIN wrote:
Hi,
I am having issues when compiling Xalan 1.11 along with Xerces 3.2.0.
I’m using cmake on Windows 64 with Visual Studio 15 2017
Here is the entire log :
---------------------------------------------------------------------------------------------------------------
>cmake -G "Visual Studio 15 2017 Win64"
CMake Warning:
No source or binary directory provided.Both will be assumed to be the
same as the current working directory, but note that this warning will
become a fatal error in future CMake releases.
-- Configuring Apache Xalan-C++ version 1.11.0
-- Selecting Windows SDK version 10.0.17763.0 to target Windows
10.0.17134.
-- Found the following ICU libraries:
--uc (required)
--i18n (required)
-- The following ICU libraries were not found:
--data (required)
-- Failed to find all ICU components (missing: ICU_INCLUDE_DIR
_ICU_REQUIRED_LIBS_FOUND)
CMake Error at C:/Program
Files/CMake/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:137
(message):
Failed to find XercesC (missing: XercesC_LIBRARY XercesC_INCLUDE_DIR
XercesC_VERSION) (Required is at least version "3.1")
Call Stack (most recent call first):
C:/Program
Files/CMake/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:378
(_FPHSA_FAILURE_MESSAGE)
C:/Program Files/CMake/share/cmake-3.15/Modules/FindXercesC.cmake:99
(FIND_PACKAGE_HANDLE_STANDARD_ARGS)
cmake/XalanXerces.cmake:22 (find_package)
CMakeLists.txt:70 (include)
I tried to use CMAKE PREFIX PATH along with cmake but I get the same
result
Can you help me in making the tool work?
One (allowed) failure is due to the missing "icudata" library. I would
double-check why that library is not being found. Should be "icudt" on
Windows. I would suggest deleting "cmake/FindICU.cmake" and using the
one that comes with the latest CMake release (it was provided to allow
older CMake versions to work which didn't provide it, but it might be
out of date).
The critical failure is to not find Xerces-C++. Where is it located on
your system? Setting "-DCMAKE_PREFIX_PATH:PATH=..." to the root of that
location should be sufficient.
If it's not already installed, you can install it with vcpkg.
Kind regards,
Roger