[問題] 請教 VS 的 error c1010070
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
VS 2008
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
cuda, OptiX
問題(Question):
重編 nVidia OptiX engine 附的 SDK ( http://goo.gl/BDx9g ) 時遇上問題
這個 SDK 主要是利用 CMake 生成 VS 的 solution file,
其實我該裝的東西都有裝(Cg/cuda/OptiX/CMake),
之前第一次試也有成功過,
但後來我改動一些 code 以後重新用 CMake ,就一直出現這個錯誤
餵入的資料(Input):
預期的正確結果(Expected Output):
cl.exe可以正確執行
錯誤結果(Wrong Output):
D:\Codes\OptiX-SDK\build>cmake -G"Visual Studio 9 2008" ../ --debug-trycompile
debug trycompile on
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio
9.0/VC/bin/cl.exe
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio
9.0/VC/bin/cl.exe -- broken
CMake Error at C:/Program Files/CMake
2.6/share/cmake-2.6/Modules/CMakeTestCCompiler.cmake:32 (MESSAGE):
The C compiler "C:/Program Files/Microsoft Visual Studio 9.0/VC/bin/cl.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: D:/Codes/OptiX-SDK/CMakeFiles/CMakeTmp
Run Build Command:C:\PROGRA~1\MICROS~1.0\Common7\IDE\devenv.com
CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec
Microsoft (R) Visual Studio 版本 9.0.21022.8。
Copyright (C) Microsoft Corp. All rights reserved.
1>------ 已開始建置: 專案: cmTryCompileExec, 組態: Debug Win32 ------
1>正在嵌入資訊清單...
1>.\cmTryCompileExec.dir\Debug\cmTryCompileExec.exe.intermediate.manifest :
general error c1010070: Failed to load and parse the manifest. {q~0
1>已將建置記錄儲存於
"file://d:\Codes\OptiX-SDK\CMakeFiles\CMakeTmp\cmTryCompileExec.dir\Debug\BuildLog.htm"
1>cmTryCompileExec - 1 個錯誤,0 個警告
========== 建置: 0 成功、1 失敗、0 最新、0 略過 ==========
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:78 (project)
-- Configuring incomplete, errors occurred!
程式碼(Code):(請善用置底文網頁, 記得排版)
補充說明(Supplement):
cmake在一開始確認 C compiler 可不可以使用的階段就fail
(這個SDK有一個空的 test program 用來測試),這就是上面error發生的地方
在 cmTryCompileExec.dir 下的確抓不到 manifest ,
但我不確定這東西會不會自動生成
我有開過新專案編過(Windows Form),cl.exe是可以跑的
之前有抓到Path沒設好,但是加進Path以後還是這個error
已經google這個error研究很久,有人提到似乎是VS的rc檔路徑不對,
但是不曉得怎麼解決...
抱歉和VS很不熟所以問題沒有描述的很好,還請大家幫忙,謝謝!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.249.142
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章