c++ - Cannot build llvm on windows - Stack Overflow

I am trying to build llvm from source following their instructions under the using visual studio sectio

I am trying to build llvm from source following their instructions under the using visual studio section. When I run the command cmake -DLLVM_ENABLE_PROJECTS=clang -G "Visual Studio 17 2022" -A x64 -Thost=x64 ..\llvm, everything appears fine, until i see the following:

-- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
-- Could NOT find LibXml2 (missing: LIBXML2_LIBRARY LIBXML2_INCLUDE_DIR)
-- Could NOT find Backtrace (missing: Backtrace_LIBRARY Backtrace_INCLUDE_DIR)
CMake Error at C:/Users/[REDACTED]/Desktop/llvm-project/build/CMakeFiles/CMakeTmp/CMakeLists.txt:23 (set):
  Syntax error in cmake code at

    C:/Users/[REDACTED]/Desktop/llvm-project/build/CMakeFiles/CMakeTmp/CMakeLists.txt:23

  when parsing string

    C:\Users\[REDACTED]\Desktop\llvm-project\build/CMakeFiles/CMakeTmp

  Invalid character escape '\U'.


CMake Error at cmake/modules/GetErrcMessages.cmake:32 (try_run):
  Failed to configure test project build system.
Call Stack (most recent call first):
  cmake/config-ix.cmake:477 (get_errc_messages)
  CMakeLists.txt:986 (include)


-- Configuring incomplete, errors occurred!

I think I can deal with the first three lines, but what do I do about the fact that it is improperly escaped?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744330903a4568882.html

相关推荐

  • c++ - Cannot build llvm on windows - Stack Overflow

    I am trying to build llvm from source following their instructions under the using visual studio sectio

    7天前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信