A, VTK for mounting QT

I. Description

      The main purpose of this paper is illustrated by recompiling Cmake VTK, so that it can be used to interact with the QT

Two, VTK installation

       VTK Version: 8.2.0

      VS 2019 version

       PC: win-64bit

  Software needed: CMake (version I use is 3.16.0)

Third, the process

       Roughly divided into the following process steps:

        1, download vtk archive, then unzip

        2, compiled by Cmake

        3, open the VS build the solution, when compiled, we should pay attention to the properties to configure their own VS may be VS parameters to be set to Release x64, compiled the property and then set Debug x64, compiled again, so we can use two vtk configuration. I was not so high demand, so only generates Release x64 version.

        4, installation

      The specific process procedure can refer to this blog:

     https://www.cnblogs.com/fantianliang/p/12029938.html

  The only difference is that we need to check the place on a relationship with the QT in place when using CMAKE compiled:

      

 

      

 

          

 

        We also need to check the Group options:

        

 

          Then click on the Configure option if there are still red, more than a few clicks.

        The other process is completely different.

        Note: It has been added before installing QT to the inside of the system environment variables to go, so CMAKE which can automatically search for the version and location of the QT, if not, then we manually entered in the red place, because I have added to the system variables to go inside, so I did not meet the case.

Fourth, the QT and VTK added to the system environment variable to the method of

  After QT should be noted that prior to installation VTK has been installed, and then after setting environment variables before installing QT VTK

       Usage: win10 computer

       1, open any folder, find this computer

        

 

     2, the mouse on top, then right-click Properties, open the Control Panel

        

 

     3, select Advanced System Settings:

     

 

     4、打开环境变量,在系统变量下面选择编辑:

 

         

 

        在系统变量里面选择Path,然后点击编辑:

        

 

        5、添加QT文件夹,这个文件夹应该是QT的安装路径(这个文件夹是QT的插件一类的东西,需要另外下载,是辅助VS使用QT产生的,关于这个的安装我后续给出来):

       

 

          注意在QT的安装文件夹里面一共有两个版本:

           

 

             这个版本一个是32位的,一个是64位的,这里我选择64位的

 

            等到VTK安装完成以后,其环境变量的添加也是类似的过程,需要添加的是其安装文件夹里面的bin文件夹

           

 

 五、补充

               如果CMAEK编译的时候勾选了TESTING选项,这个时候需要下载vtkdata文件,我没有下载,所以只编译了vtk_EXAMPLES

 

 

      

    

 

Guess you like

Origin www.cnblogs.com/fantianliang/p/12355240.html