vtk安装编译报错贴
vtk吧
全部回复
仅看楼主
level 12
rabbitbride 楼主
如题,专门开个帖子来记录各种error~
2014年05月23日 14点05分 1
level 12
rabbitbride 楼主
贴一个巨恶心的error。cmake编译直接不过。。
环境:64位win7&vtk5.6&vs2010
cmake中报错:
The C compiler identification is MSVC 16.0.30319.1
The CXX compiler identification is MSVC 16.0.30319.1
Check for working C compiler using: Visual Studio 10
Check for working C compiler using: Visual Studio 10 -- broken
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):
The C compiler "C:/Program Files (x86)/Microsoft Visual Studio
10.0/VC/bin/cl.exe" is not able to compile a simple test program.
2014年05月23日 14点05分 2
level 12
rabbitbride 楼主
原因:不小心系统更新,安装了framework4.5,[瀑布汗~]
2014年05月23日 14点05分 3
level 12
rabbitbride 楼主
方法:完全卸载之,重新安装一次framework4.0。
2014年05月23日 14点05分 4
level 12
支持一个

-----------------请叫我小可爱--------------
2014年05月25日 13点05分 5
[太开心]
2014年05月27日 16点05分
level 12
rabbitbride 楼主
cmake时的一个新错误:
The C compiler identification is MSVC 16.0.30319.1
The CXX compiler identification is MSVC 16.0.30319.1
Check for working C compiler using: Visual Studio 10
Check for working C compiler using: Visual Studio 10 -- broken
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):
The C compiler "C:/Program Files (x86)/Microsoft Visual Studio
10.0/VC/bin/cl.exe" is not able to compile a simple test program.
It fails with the following output:
Change Dir: D:/VTKITK/demo/Transparency/build/CMakeFiles/CMakeTmp
Run Build Command:C:\PROGRA~2\MICROS~2.0\Common7\IDE\devenv.com
CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec3911158297
Microsoft(R) Visual Studio 10.0.30319.1 版。
版权所有(C) Microsoft Corp。保留所有权利。
1>------ 已启动生成: 项目: cmTryCompileExec3911158297, 配置: Debug Win32
------
1> 用于 80x86 的 Microsoft (R) 32 位 C/C++ 优化编译器 16.00.30319.01 版
1> 版权所有(C) Microsoft Corporation。保留所有权利。
1>
1> cl /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D
"CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise
/Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec3911158297.dir\Debug\\"
/Fd"cmTryCompileExec3911158297.dir\Debug\vc100.pdb" /Gd /TC /analyze-
/errorReport:prompt testCCompiler.c
1>
1> testCCompiler.c
1>LINK : fatal error LNK1123: 转换到 COFF 期间失败: 文件无效或损坏
========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:4 (PROJECT)
Configuring incomplete, errors occurred!
See also "D:/VTKITK/demo/Transparency/build/CMakeFiles/CMakeOutput.log".
See also "D:/VTKITK/demo/Transparency/build/CMakeFiles/CMakeError.log".
2014年07月26日 15点07分 7
level 12
rabbitbride 楼主
环境:64位win7&vtk5.10&vs2010&Qt 4.8
2014年07月26日 16点07分 8
level 12
rabbitbride 楼主
百般求解,无解。。。难道这哥们说的是对的?[说啥呢?]
2014年07月26日 16点07分 9
level 12
rabbitbride 楼主
十分钟后,卸载frame 4.5,还有错误,但是错误又变化。重启电脑,重新安装 frame 4。
cmake成功! fuck.,真是4.5的问题,这什么系统更新啊。。。BS windows,抽时间转linux平台吧。。。
2014年07月26日 16点07分 10
这个也可以采取删除旧版本的cvtres.exe 文件来解决。在电脑中搜索cvtres.exe文件,我的是在..\Microsoft Visual Studio 10.0\vc\bin\cvtres.exe 的为老版本的,删掉它一切都正常了。
2016年12月28日 06点12分
@今天有大风 我试了一下,还真是可以,感谢[玫瑰]
2017年04月30日 08点04分
@今天有大风 楼主 在Linux下怎么安装 有时间写个教程 普及下? 跪拜。
2017年05月08日 08点05分
@浩繁星尘 你要看Linux下的安装方案?
2017年05月23日 09点05分
level 2
在VS 编译stk时,typedef _W64 int ptrdiff_t;这句话报错
2014年12月09日 09点12分 11
STK?
2014年12月09日 09点12分
回复 rabbitbride :VTK
2014年12月10日 08点12分
回复 rabbitbride :快气死了,后面那别人编好的过来用还是出错
2014年12月10日 08点12分
回复 rabbitbride : Building Custom Rule D:/VTK/VTK-5.8.0/Examples/Tutorial/Step6/Cxx/CMakeLists.txt
2014年12月10日 08点12分
level 1
error in configuration process,project files may be invalid
2014年12月20日 13点12分 12
我猜是你vtk-bin目录下有垃圾文件吧?删除了重新建一个文件夹试试
2014年12月20日 13点12分
level 12
rabbitbride 楼主
凡是编译安装报错的,请先说明你的 VTK版本,VS版本,操作系统信息,然后再贴报错信息~~~[黑线]
2015年01月28日 01点01分 13
VTK6.1,VS2012,CMake3.1.2,WIN7下64位编译,好多选项找不到。是默认勾选了,还是被改名替换了呢
2015年02月13日 02点02分
回复
������
:别用64位 用32编译就OK
2015年02月13日 05点02分
@rabbitbride 因为整个环境包括ITK都是64位,所以VTK也需要64位,现在编译通过了。但VTK6.1会有这样的警告VTK_USE_ANSI_STDLIB,而CMake是没有这个选项的,包括CMakeCache里也没有。然后在编译InsightApplications时VS报错全是字串类型转换错误信息。请大吧指教,方便的话请加QQ154975539
2015年03月05日 07点03分
@海贼面 想问一下你这个问题是怎么解决的。我现在也是ITK64位,所以VTK也需要64位
2016年03月17日 02点03分
level 12
rabbitbride 楼主
@bunandks 去掉中文路径试试
2015年05月14日 04点05分 16
我也碰到这个错误了 但是我的路径本来全是英文的怎么办
2017年01月19日 02点01分
level 4
VTK5.8,VS2012,CMake3.0.2,WIN7下64位编译 老是提示
CMake Error at CMakeLists.txt:370 (MESSAGE):
Qt 4.5.0 or greater not found. Please check the QT_QMAKE_EXECUTABLE
variable.
之前用6.1没有这种问题可以编译通过 为什么5.8老是报这种错呢
2015年06月03日 02点06分 17
有没有人啊
2015年06月03日 02点06分
qt是5.2版
2015年06月03日 02点06分
@hprain007 猜一下,你电脑上的安装了多个版本的Qt
2015年06月03日 04点06分
@rabbitbride 只有一个版本 我重装过一次
2015年06月03日 05点06分
level 2
编译完成了,但是想编译自带的实例但是总是报这样的错,:CMake Error at E:/vtk2010/lib/cmake/vtk-6.2/vtkModuleAPI.cmake:120 (message):
Requested modules not available:
vtkRendering
Call Stack (most recent call first):
E:/itk_vtk/vtk2010/lib/cmake/vtk-6.2/VTKConfig.cmake:80 (vtk_module_config)
CMakeLists.txt:16 (find_package)
谁碰到过?
2015年06月12日 08点06分 18
你确认编译vtk的时候没错误?
2015年06月16日 11点06分
请问这个后来是怎么解决的呢?
2016年05月16日 01点05分
@ok孤单一吻 请问你的这个问题解决了吗?
2016年05月16日 01点05分
level 1
WIN7 64位 VTK5.8
编译通过,运行出问题
弹出:“应用程序无法正常启动(0xcooooood)”
求解答,谢谢大家了。
2015年06月12日 09点06分 19
贴代码帮你看[哈哈]
2015年06月16日 11点06分
level 9
之前是 VTK5.10,VS2010,CMake2.8,WIN7下64位编译
按照东灵《VTK图形图像开发进阶》一步一步安装成功了
现在更新了win10系统
VTK6.3,VS2015,CMake3.3,Win10 64bit
却无法正确安装
提示:
The C compiler identification is unknown
The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:28 (project):
No CMAKE_C_COMPILER could be found.
CMake Error at CMakeLists.txt:28 (project):
No CMAKE_CXX_COMPILER could be found.
找不到编译器。。。。
google,baidu后没有找到有效解决方法。
2015年10月17日 06点10分 20
我主要是想在VS2015的环境下使用,上个月在yutube上看见有人成功安装了。
2015年10月17日 06点10分
level 9
现在在wi10,VS2012,VTK6.2,Cmake3.3.2按装VTK
按照以前的经验,一切正常
cmake安装没报错,VTK.sln重新编译也是零错误
可以在编译例子的时候cmake输出框内提示发生错误
The C compiler identification is MSVC 17.0.50727.1
The CXX compiler identification is MSVC 17.0.50727.1
Check for working C compiler using: Visual Studio 11 2012
Check for working C compiler using: Visual Studio 11 2012 -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler using: Visual Studio 11 2012
Check for working CXX compiler using: Visual Studio 11 2012 -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Detecting CXX compile features
Detecting CXX compile features - done
CMake Error at CMakeLists.txt:13 (FIND_PACKAGE):
By not providing "FindVTK.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "VTK", but
CMake did not find one.
Could not find a package configuration file provided by "VTK" with any of
the following names:
VTKConfig.cmake
vtk-config.cmake
Add the installation prefix of "VTK" to CMAKE_PREFIX_PATH or set "VTK_DIR"
to a directory containing one of the above files. If "VTK" provides a
separate development package or SDK, be sure it has been installed.
2015年10月20日 11点10分 21
我尝试一切从简恢复到VTK5.10,VS2010,CMake2.8 可是VS2010里面有个组件SQL2008 r2 与win10不兼容,没有找到解决办法,所以放弃了
2015年10月20日 11点10分
我刚接触VTK,刚好遇到同样的问题,请问楼主解决了吗?
2016年09月01日 13点09分
1 2 3 4 尾页