The Beautiful Future
vtk 설치 win8.1 본문
vs2013 설치 아래 링크 코드 수정
https://hemprasad.wordpress.com/2015/04/30/building-vtk-with-visual-studio-2013/
Building VTK5 with Visual Studio
Download
- Download VTK 5.10.1 the (VTK-5.10.1.zip) to unzip the file. (C: \ VTK-5.10.1)Http://Www.Vtk.Org/VTK/resources/software.Html#previous
Https://Github.Com/Kitware/VTK/tree/v5.10.1
CMake
- You want to specify the destination of the input destination and solution files of source code.
- Where is the source code: C:\VTK-5.10.1
- Where is build the binaries: C:\VTK-5.10.1\build
- Press the [Configure] to select the Visual Studio that is the target.
- It makes various settings.
- BUILD_SHAREED_LIBS
(check)
- BUILD_TESTING ☐ (uncheck)
- CMAKE_CONFIGURATION_TYPESDebug;Release
- CMAKE_INSTALL_PREFIX C:\Program Files\VTK (or C:\Program Files (x86)\VTK)
- BUILD_SHAREED_LIBS
- Press the [Add Entry] to add the following settings.
Name: CMAKE_DEBUG_POSTFIX Type: STRING Value: -gd Description: * Debug string to be added to the file name of the build generated files of the (last).
- And output the solution file by pressing the [Generate].
Build
- Start Visual Studio with administrative privileges VTK solution file (C: \ VTK-5.10.1 \ build \ VTK.sln) to open.
(If you do not start with administrator privileges Visual Studio INSTALL to fail.) - It wants to modify the source code.
- vtkOStreamWrapper.cxx
60 line//VTKOSTREAM_OPERATOR(ostream&); vtkOStreamWrapper& vtkOStreamWrapper::operator << (ostream& a) { this->ostr << (void *)&a; return *this; }
- vtkEnSightGoldBinaryReader.cxx
3925 lineif (this->IFile->read(result, 80).fail())
3944 line
if (this->IFile->read(dummy, 8).fail())
4001 line
if (this->IFile->read(dummy, 4).fail())
4008 line
if (this->IFile->read((char*)result, sizeof(int)).fail())
4025 line
if (this->IFile->read(dummy, 4).fail())
4048 line
if (this->IFile->read(dummy, 4).fail())
4055 line
if (this->IFile->read((char*)result, sizeof(int)*numInts).fail())
4072 line
if (this->IFile->read(dummy, 4).fail())
4095 line
if (this->IFile->read(dummy, 4).fail())
4102 line
if (this->IFile->read((char*)result, sizeof(float)*numFloats).fail())
4119 line
if (this->IFile->read(dummy, 4).fail())
- vtkConvexHull2D.cxx
31 lines#include <algorithm>
- vtkAdjacencyMatrixToEdgeTable.cxx
31 lines#include <algorithm>
- vtkNormalizeMatrixVectors.cxx
30 Line#include <algorithm>
- vtkPairwiseExtractHistogram2D.cxx
39 line#include <algorithm>
- vtkControlPointsItem.cxx
35 lines#include <algorithm>
- vtkPiecewisePointHandleItem.cxx
31 lines#include <algorithm>
- vtkParallelCoordinatesRepresentation.cxx
83 line#include <algorithm>
- vtkOStreamWrapper.cxx
- It wants to build the VTK. (ALL_BUILD)
- The configuration of the solution (Debug, Release) set the.
- Choose the ALL_BUILD project from Solution Explorer.
- [Build]> to build VTK Press [Build Solution].
- It wants to install the VTK. (INSTALL)
- Choose the INSTALL project from Solution Explorer.
- [Build]> [projects only]> to install the VTK Press [INSTALL only the Build menu.CMAKE_INSTALL_PREFIXnecessary files are copied to the specified output destination.
Environment Variable
- Environment variable VTK_ROOT create a VTK of path: Set the (C \ Program Files \ VTK).
- Environment variable Path I add a% VTK_ROOT% \ bin; to.
vs 다른 버전-------------------------------------------------------
http://egloos.zum.com/nnovember/v/3779140
VTK(Visualization Toolkit) - 5.8.0
cmake 2.8
환경:
Windows 7 x32
Visual Studio 2010
참고:
http://vtkbook.tistory.com/2
http://majorss.egloos.com/288319
http://blog.naver.com/hchakim?Redirect=Log&logNo=30028210281
http://www.vtk.org/VTK/resources/software.html
http://www.cmake.org/
VTK source와 data를 다운로드
VTK폴더 생성
VTK폴더 내 VTKsource, VTKdata, bin, bin_cmake 생성
다운로드 받은 source를 VTKsource에, data를 VTKdata에 압축풀기
cmake 실행, advanced 체크!
Where is the source code: VTKsource폴더 설정
Where to build the binaries: bin_cmake폴더 설정
Configure(Visual Studio 10)(수십분 소요)
Cache Values 설정
BUILD_EXAMPLES(예제) 체크
BUILD_DOCUMENTATION(가이드) 체크
BUILD_SHARED_LIBS 체크
CMAKE_INSTALL_PREFIX : VTKsource폴더 설정
VTK_DATA_ROOT: VTKdata폴더 설정
Configure, Generate
Cmake 종료
bin_cmake의 VTK.sln 실행
Debug mode로 ALL_BUILD 프로젝트 빌드(수십분 소요)
INSTALL 프로젝트 빌드
bin/bin 폴더의 dll파일(34개)을 Windows/System32 폴더에 복사
Visual Studio 설정
Include Directories
/bin/include/vtk-5.8
Library Directories
/bin/lib/vtk-5.8
Linker - input(추가종속성 추가)
vtkRendering.lib
vtkGraphics.lib
vtkverdict.lib
vtkImaging.lib
vtkIO.lib
vtkFiltering.lib
vtkCommon.lib
vtkDICOMParser.lib
vtkNetCDF.lib
vtkmetaio.lib
comctl32.lib
wsock32.lib
vtksqlite.lib
vtkpng.lib
vtktiff.lib
vtkzlib.lib
vtkjpeg.lib
vtkexpat.lib
vtksys.lib
ws2_32.lib
vfw32.lib
vtkftgl.lib
vtkfreetype.lib
opengl32.lib
vtkVolumeRendering.lib
vtkWidgets.lib
vtkHybrid.lib
.stl file Load 후 curvature 정보 Color mapping 결과
'스킬' 카테고리의 다른 글
sse add mul (0) | 2016.09.04 |
---|---|
matlab 그래프 포인트 움직이기 (0) | 2016.09.01 |
install python on windows (0) | 2016.07.26 |
windows에서 digits objdetction 삽질 실패 (0) | 2016.07.05 |
파일로드 std::string 사용 (0) | 2016.06.30 |