CSCI 55200 DATA VISUALIZATION
• Microsoft Visual Studio 2017
• CMake 3.9.6
• VTK 8.1.0
• prem.cxx (source file)
• CMakeLists.txt (source file)
• prem.exe (executable file)
- Make sure Visual studio, CMake and VTK installed and synchronized each other perfectly.
- Create a “src” folder and put source files in it. i.e prem.cxx and CMakeLists.txt
- Create a “build” folder and make sure it is empty.
- Open CMake-gui desktop app.
- Give folder path of “src” to “where is the source code” in CMake-gui app.
Example: path = C:/…../Project2/src
- Give folder path of “build” to “where to build the binaries”
- Click configure
- After successful configure, you will notice Configuring done, then Click Generate
- After successful Generating, you will notice Generating done
- Files are generated in “build” folder. You will find “prem.sln” in it. Double Click on it. it will lead you to Visual Studio.
- After successful installation and scanning of files, it will show Ready in bottom-left corner. Then Right click on ALL_BUILD and click on Build.
- After successful build, you will notice Debug folder in “build” folder containing three files namely prem.exe, prem.dil and prem.pdb. Open Debug folder and put the “ironProt.vtk” in it.
- Copy all .dil and .pdb files in ….\VTK\bin\bin\Debug (these files are created while installing VTK through CMake)
- Paste those files in ….\build\Debug i.e debug folder created in build containing prem.exe and ironProt.vtk
- Open command prompt navigate to build folder containing executable file.
Example: cd C:\.....\Project2\build\Debug
- Run the executable file in command prompt passing image name as arguments.
Example: > prem.exe ironProt.vtk