Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to build viz module with VTK 9.0.1?

Hi all.

I would like to build OpenCV with viz module using VTK 9.0.1.

Environments: OS: Windows 10 x64 IDE: Visual Studio 2015 SDK: OpenCV 4.4.0, VTK 9.0.1 CMake: 3.17.0-rc1

I referred this link: https://answers.opencv.org/question/183404/what-are-all-the-requirement-for-viz-module-installation/

I tried as below procedure :

//VTK 1. Download VTK-9.0.1.tar.gz file and unzip to 'vtk_sources' folder. 2. Create 'vtk_bin' folder. 3. Run CMake program as a administrator and set the 'vtk_sources' path to 'source code', 'vtk_bin' path to 'binaries'. 4. Click the 'Configure' button and select 'Visual Studio 2015', 'x64'. 5. Select VTK default option and click the 'Generate' button. 6. Run VTK.sln in the vtk_bin folder as a administrator. 7. Build 'ALL_BUILD' and 'INSTALL'. 8. Succeeded to create a library and it works well.

//OpenCV 9. Download opencv-4.4.0-vc14_vc15.exe file and run. 10. Copy the 'sources' file to 'opencv_sources' folder. 11. Create 'opencv_bin' folder. 12. Run CMake program as a administrator and set the 'opencv_sources' path to 'source code', 'opencv_bin' path to 'binaries'. 13. Click the 'Configure' button and select 'Visual Studio 2015', 'x64'. 14. Set the VTK_DIR to 'vtk_bin' folder. 15. Check the 'WITH_VTK'. 16. Uncheck the 'BUILD_opencv_world'. 17. Click the 'Generate' button. 18. Run OpenCV.sln in the opencv_bin folder as a administrator. 19. Build 'ALL_BUILD' and 'INSTALL'. 20. Succeeded to create a library and it works well. 21. But 'include/opencv2/' has no viz.hpp file. I can't find the 'viz' file.

I have been trying to build the OpenCV with viz for a week. But I couldn't find any solution.

Could you please help me?

Thank you.

How to build viz module with VTK 9.0.1?

Hi all.

I would like to build OpenCV with viz module using VTK 9.0.1.

Environments: OS: Windows 10 x64 IDE: Visual Studio 2015 SDK: OpenCV 4.4.0, VTK 9.0.1 CMake: 3.17.0-rc1

I referred this link: https://answers.opencv.org/question/183404/what-are-all-the-requirement-for-viz-module-installation/

I tried as below procedure :

//VTK 1. //VTK

  1. Download VTK-9.0.1.tar.gz file and unzip to 'vtk_sources' folder. 2. folder.
  2. Create 'vtk_bin' folder. 3. folder.
  3. Run CMake program as a administrator and set the 'vtk_sources' path to 'source code', 'vtk_bin' path to 'binaries'. 4. 'binaries'.
  4. Click the 'Configure' button and select 'Visual Studio 2015', 'x64'. 5. 'x64'.
  5. Select VTK default option and click the 'Generate' button. 6. button.
  6. Run VTK.sln in the vtk_bin folder as a administrator. 7. administrator.
  7. Build 'ALL_BUILD' and 'INSTALL'. 8. 'INSTALL'.
  8. Succeeded to create a library and it works well.

    //OpenCV 9.

//OpenCV

  1. Download opencv-4.4.0-vc14_vc15.exe file and run. 10. run.
  2. Copy the 'sources' file to 'opencv_sources' folder. 11. folder.
  3. Create 'opencv_bin' folder. 12. folder.
  4. Run CMake program as a administrator and set the 'opencv_sources' path to 'source code', 'opencv_bin' path to 'binaries'. 13. 'binaries'.
  5. Click the 'Configure' button and select 'Visual Studio 2015', 'x64'. 14. 'x64'.
  6. Set the VTK_DIR to 'vtk_bin' folder. 15. folder.
  7. Check the 'WITH_VTK'. 16. 'WITH_VTK'.
  8. Uncheck the 'BUILD_opencv_world'. 17. 'BUILD_opencv_world'.
  9. Click the 'Generate' button. 18. button.
  10. Run OpenCV.sln in the opencv_bin folder as a administrator. 19. administrator.
  11. Build 'ALL_BUILD' and 'INSTALL'. 20. 'INSTALL'.
  12. Succeeded to create a library and it works well. 21. well.
  13. But 'include/opencv2/' has no viz.hpp file. I can't find the 'viz' file.

I have been trying to build the OpenCV with viz for a week. But I couldn't find any solution.

Could you please help me?

Thank you.

How to build viz module with VTK 9.0.1?

Hi all.

I would like to build OpenCV with viz module using VTK 9.0.1.

Environments: Environments:

  1. OS: Windows 10 x64 x64
  2. IDE: Visual Studio 2015 2015
  3. SDK: OpenCV 4.4.0, VTK 9.0.1 9.0.1
  4. CMake: 3.17.0-rc1

I referred this link: https://answers.opencv.org/question/183404/what-are-all-the-requirement-for-viz-module-installation/

I tried as below procedure :

//VTK

  1. Download VTK-9.0.1.tar.gz file and unzip to 'vtk_sources' folder.
  2. Create 'vtk_bin' folder.
  3. Run CMake program as a administrator and set the 'vtk_sources' path to 'source code', 'vtk_bin' path to 'binaries'.
  4. Click the 'Configure' button and select 'Visual Studio 2015', 'x64'.
  5. Select VTK default option and click the 'Generate' button.
  6. Run VTK.sln in the vtk_bin folder as a administrator.
  7. Build 'ALL_BUILD' and 'INSTALL'.
  8. Succeeded to create a library and it works well.

//OpenCV

  1. Download opencv-4.4.0-vc14_vc15.exe file and run.
  2. Copy the 'sources' file to 'opencv_sources' folder.
  3. Create 'opencv_bin' folder.
  4. Run CMake program as a administrator and set the 'opencv_sources' path to 'source code', 'opencv_bin' path to 'binaries'.
  5. Click the 'Configure' button and select 'Visual Studio 2015', 'x64'.
  6. Set the VTK_DIR to 'vtk_bin' folder.
  7. Check the 'WITH_VTK'.
  8. Uncheck the 'BUILD_opencv_world'.
  9. Click the 'Generate' button.
  10. Run OpenCV.sln in the opencv_bin folder as a administrator.
  11. Build 'ALL_BUILD' and 'INSTALL'.
  12. Succeeded to create a library and it works well.
  13. But 'include/opencv2/' has no viz.hpp file. I can't find the 'viz' file.

I have been trying to build the OpenCV with viz for a week. But I couldn't find any solution.

Could you please help me?

Thank you.