LLVM cmake安装找不到DIA SDK [英] LLVM cmake install cannot find DIA SDK

查看:255
本文介绍了LLVM cmake安装找不到DIA SDK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用cmake构建LLVM安装,但它给我有关LLVM_ENABLE_DIA_SDK的错误.在没有PDB的情况下,我设法构建了LLVM,但是我试图从libclang开始,所以我需要PDB. Cmake给我以下错误:

I'm trying to build the LLVM install with cmake but it is giving me an error about the LLVM_ENABLE_DIA_SDK. I managed to build LLVM before without PDB's but I am trying to get started with libclang so I need the PDB. Cmake gives me the following error:

cmake/config-ix.cmake上的CMake错误:482(消息):
找不到DIA SDK.如果您同时安装了VS 2012和2013,则可以
需要卸载前者,然后再重新安装后者.
呼叫堆栈(最近的呼叫优先):
CMakeLists.txt:575(包括)

CMake Error at cmake/config-ix.cmake:482 (message):
DIA SDK not found. If you have both VS 2012 and 2013 installed, you may
need to uninstall the former and re-install the latter afterwards.
Call Stack (most recent call first):
CMakeLists.txt:575 (include)

我安装了VS 2014(2015年更新3),其中确实有一个DIA文件夹.谁能告诉我如何将其指向DIA SDK的正确位置?

I have VS 2014 installed (2015 with update 3) which does have a DIA folder. Could anyone tell me how to point it to the right DIA SDK location?

推荐答案

我今天遇到了同样的问题,Kerry Seitz的回答确实起作用.

I ran into the same problem today, and Kerry Seitz's answer does work.

实际上,不必手动设置环境变量VSINSTALLDIR,而是打开VS的Developer Command Prompt.它将执行一个批处理脚本并正确创建VSINTALLDIR.在该提示下运行CMake,然后一切正常.

Actually, the environment variable VSINSTALLDIR doesn't have to be set manually -- Instead, open the Developer Command Prompt for VS. It will execute a batch script and create the VSINTALLDIR properly. Run CMake within that prompt, then everything will be OK.

这篇关于LLVM cmake安装找不到DIA SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆