QT VTK development (1. Download and compile)

        Vtk, (visualization toolkit) is an open source free software system mainly used in 3D computer graphics, image processing and visualization. Vtk is designed and implemented on the basis of object-oriented principles. Its core is built with C++, contains about 250,000 lines of code, more than 2,000 classes, and several conversion interfaces, so it can also be freely passed through Java. , Tcl/Tk and Python various languages ​​use vtk.

QT VTK development (1. Download and compile) directory

1 Download VTK source code

1.1 Download source code

1.2 Download data

1.3 Download document

2 Compile VTK

2.1 CMake parameters

2.2 CMake environment

2.3 Select configuration

2.4 CMake compilation

3 VS generates VTK library files

3.1 Right click to generate

3.2 VTK dynamic library path


1 Download VTK source code

VTK official website:

Download | VTK

1.1 Download source code

1.2 Download data

1.3 Download document

2 Compile VTK

2.1 CMake parameters

2.2 CMake environment

        Because we use QT MSVC2017 corresponding to the VS2019 X64-bit environment, if the MSVC version used by QT is different, you need to pay attention to the VS version

2.3 Select configuration

       build_examples select on, can be used to learn VTK examples

       BUILD_SHARED_LIBS select on, you can generate a dynamic link library dll

       Module_vtkGUISupportQt Select on to support the Qt interface (click the Advanced parameter to pop up this option)

       CNAJE_INSTALL_PREFIX=C:\ProgramFiles\VTK

       Click the Configure button to let Cmake scan the configuration file again. After the operation is successful, the red on the page will disappear. If there is still red, see what needs to be selected in the red tab, select it directly, and then run Configure

2.4 CMake compilation

3 VS generates VTK library files

3.1 Right click to generate

3.2 VTK dynamic library path

 

 

Guess you like

Origin blog.csdn.net/qq_37529913/article/details/129574584