conda-forge / vtk-feedstock

A conda-smithy repository for vtk.
BSD 3-Clause "New" or "Revised" License
13 stars 64 forks source link

Windows package with qt variant does not include qt support #255

Closed nniclausse closed 3 weeks ago

nniclausse commented 2 years ago

Solution to issue cannot be found in the documentation.

Issue

vtk is missing qt support on windows (macos and linux packages are fine):

The same code that compiles fine on linux gives this error on windows :

CMake Warning at CMakeLists.txt:119 (find_package):
  Found package configuration file:

    C:/Conda/envs/diamss/Library/lib/cmake/vtk-9.1/vtk-config.cmake

  but it set VTK_FOUND to FALSE so package "VTK" is considered to be NOT
  FOUND.  Reason given by package:

  Could not find the VTK package with the following required components:
  GUISupportQt.

Indeed the bld.bat does not set VTK_GUISupportQt to YES while this is done in build.sh:

if [[ "$target_platform" != "linux-ppc64le"
        && "$build_variant" == "qt" ]]; then
    VTK_ARGS+=(
        "-DVTK_MODULE_ENABLE_VTK_GUISupportQt:STRING=YES"
        "-DVTK_MODULE_ENABLE_VTK_RenderingQt:STRING=YES"
    )
fi

Installed packages

qt                        5.15.4               h2d74725_0    conda-forge
qt-main                   5.15.4               h467ea89_2    conda-forge
qt-webengine              5.15.4               h7325c83_3    conda-forge
vtk                       9.1.0           qt_py310hbebbbde_214    conda-forge

Environment info

active environment : diamss
    active env location : C:\Conda\envs\diamss
            shell level : 2
       user config file : C:\Users\demo\.condarc
 populated config files : 
          conda version : 4.14.0
    conda-build version : 3.21.9
         python version : 3.9.12.final.0
       virtual packages : __cuda=11.6=0
                          __win=0=0
                          __archspec=1=x86_64
       base environment : C:\Conda  (writable)
      conda av data dir : C:\Conda\etc\conda
  conda av metadata url : None
           channel URLs : https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
          package cache : C:\Conda\pkgs
                          C:\Users\demo\.conda\pkgs
                          C:\Users\demo\AppData\Local\conda\conda\pkgs
       envs directories : C:\Conda\envs
                          C:\Users\demo\.conda\envs
                          C:\Users\demo\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/4.14.0 requests/2.27.1 CPython/3.9.12 Windows/10 Windows/10.0.22000
          administrator : False
             netrc file : None
           offline mode : False
Tobias-Fischer commented 1 year ago

Are you happy to open a pull request which adds qt support on Win?

JDuffeyBQ commented 1 month ago

I've opened pull request for this issue that's ready for review.