microsoft / DirectXShaderCompiler

This repo hosts the source for the DirectX Shader Compiler which is based on LLVM/Clang.
Other
3.07k stars 685 forks source link

LIBXML2 not found #669

Closed ghost closed 6 years ago

ghost commented 7 years ago

I solved Python detection, but I cannot solve problem with libxml2

marcelolr commented 7 years ago

Can you provide more information on the libxml2 problem? What steps are you taking and what errors are you seeing?

ghost commented 7 years ago

I tried install clear Windows, Visual Studio 2017, cmake, python, and build by hctbuild. Sorry, forgot to give log. Before been given another (with not founded python).

Default architecture - set BUILD_ARCH=x64
HLSL source directory set to HLSL_SRC_DIR=C:\dev\DirectXShaderCompiler
HLSL source directory set to HLSL_BLD_DIR=C:\dev\hlsl.bin

You can recreate the environment with this command.
C:\dev\DirectXShaderCompiler\utils\hct\hctstart.cmd C:\dev\DirectXShaderCompiler C:\dev\hlsl.bin

Setting up macros for this console - run hcthelp for a reference.

Found Windows SDK 10.0.15063.0
CMake 3.4.3 or 3.7.2 are the currently supported versions for VS 2015 and VS 2017 - your installed cmake is not supported.
See README.md at the root for an explanation of dependencies.
WARNING: cmake version is not supported. Your build may fail.
Path adjusted to include TAEF te.exe.

C:\dev\DirectXShaderCompiler>hctbuild
Visual Studio 2015 not available, setting up build for Visual Studio 2017.
Creating solution files for x64, logging to C:\dev\hlsl.bin\cmake-log.txt
Failed to configure cmake projects.
===== begin cmake-log.txt =====
Running cmake  -DCLANG_ENABLE_ARCMT:BOOL=OFF -DCLANG_ENABLE_STATIC_ANALYZER:BOOL=OFF -DCLANG_INCLUDE_TESTS:BOOL=OFF -DLLVM_INCLUDE_TESTS:BOOL=OFF -DHLSL_INCLUDE_TESTS:BOOL=ON -DLLVM_TARGETS_TO_BUILD:STRING=None -DLLVM_INCLUDE_DOCS:BOOL=OFF -DLLVM_INCLUDE_EXAMPLES:BOOL=OFF -DLIBCLANG_BUILD_STATIC:BOOL=ON -DLLVM_OPTIMIZED_TABLEGEN:BOOL=OFF -DLLVM_REQUIRES_EH:BOOL=ON -DLLVM_APPEND_VC_REV:BOOL=ON -DLLVM_ENABLE_RTTI:BOOL=ON -DLLVM_ENABLE_EH:BOOL=ON -DLLVM_DEFAULT_TARGET_TRIPLE:STRING=dxil-ms-dx -DCLANG_BUILD_EXAMPLES:BOOL=OFF -DLLVM_REQUIRES_RTTI:BOOL=ON -DCLANG_CL:BOOL=OFF -DCMAKE_SYSTEM_VERSION=10.0.14393.0 -DDXC_BUILD_ARCH=x64 -G "Visual Studio 15 2017 Win64" C:\dev\DirectXShaderCompiler
-- Target triple: x86_64-pc-win32
-- Native target X86 is not selected; lli will not JIT code
-- Threads enabled.
-- Doxygen disabled.
-- Sphinx disabled.
-- Go bindings disabled.
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)
-- OCaml bindings disabled.
-- Using Debug VC++ CRT: MDd
-- Using Release VC++ CRT: MD
-- Using MinSizeRel VC++ CRT: MD
-- Using RelWithDebInfo VC++ CRT: MD
-- Constructing LLVMBuild project information
-- Could NOT find LibXml2 (missing: LIBXML2_LIBRARIES) (found version "2.9.3")
-- Clang version: 3.7
ERRORUnable to find TAEF binaries under Windows 10 SDK.
CMake Error at C:/Program Files/CMake/share/cmake-3.9/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find TAEF (missing: TAEF_COMMON_LIBRARY TAEF_INCLUDE_DIR)
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.9/Modules/FindPackageHandleStandardArgs.cmake:377 (_FPHSA_FAILURE_MESSAGE)
  cmake/modules/FindTAEF.cmake:72 (find_package_handle_standard_args)
  tools/clang/unittests/HLSL/CMakeLists.txt:3 (find_package)

-- Configuring incomplete, errors occurred!
See also "C:/dev/hlsl.bin/CMakeFiles/CMakeOutput.log".
See also "C:/dev/hlsl.bin/CMakeFiles/CMakeError.log".
===== end cmake-log.txt =====
Run 'cmake C:\dev\DirectXShaderCompiler' in C:\dev\hlsl.bin will continue project generation after fixing the issue.
CMake 3.4 is the currently supported version - your installed cmake may be out of date.
See README.md at the root for an explanation of dependencies.

C:\dev\DirectXShaderCompiler>
marcelolr commented 7 years ago

Got it. The problem isn't with libxml2, we don't really need that to build. The problem is with missing TAEF files, which we use for building and running tests. The root README.md has a little blurb on this.

Tests are built using the TAEF framework. Unless you have the Windows Driver Kit installed, you should run the script at utils\hct\hctgettaef.py from your build environment before you start building to download and unzip it as an external dependency. You should only need to do this once.

marcelolr commented 6 years ago

Please let us know if you run into any other build issues of this sort - thanks!