Vtk useful cmake variables12/8/2023 ![]() ![]() The TK_INTERNAL_PATH might not be necessary, as long as the other two variables are set.Įdit: I just tried using the vtkTkRenderWidget on my own Windows system, and the program exited as soon as the widget was created (no crash or error message, it just quit). You can add them to your CMakeCache.txt manually and then re-run cmake to see if the error goes away. The error (incorrect number of arguments) suggests that these variables are not set in your CMakeCache.txt (possibly because the Tcl/Tk autodetection isn’t working). The error you see in Rendering/Tk/CMakeLists.txt has to do with this code block: vtk_module_include(VTK::RenderingTk It’s very possible that the Tcl/Tk autodetection machinery in VTK is out-of-date and has become broken, since very few people use it. manually set TCL_INCLUDE_PATH, TCL_LIBRARY, TCL_TCLSH, TK_INCLUDE_PATH, TK_LIBRARY, TK_WISH Rendering/Tk/CMakeLists.txt:65 (vtk_module_include)įor completeness my cmake setup steps consists of: - set CMAKE_BUILD_TYPE:RELEASE Target_include_directories called with incorrect number of arguments The package name passed to `find_package_handle_standard_args` (TK) doesĬMake/FindTCL.cmake:189 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)įound TK: C:\Miniconda3\pkgs\tk-8.6.8-hfa6e2cd_0\Library\libĬMake Error at CMake/vtkModule.cmake:1398 (target_include_directories): The package name passed to `find_package_handle_standard_args` (TCLTK) doesĬMake/FindTCL.cmake:186 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)įound TCLTK: C:\Miniconda3\pkgs\tk-8.6.8-hfa6e2cd_0\Library\lib Use -Wno-dev to suppress it.įound Tclsh: C:\Miniconda3\pkgs\tk-8.6.8-hfa6e2cd_0\Library\bin\tclsh.exe (found version "8.6")įound TCL: C:\Miniconda3\pkgs\tk-8.6.8-hfa6e2cd_0\Library\libĬMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:272 (message): Rendering/Tk/CMakeLists.txt:2 (find_package) In calling code that expects `find_package` result variables (e.g.,Ĭ:/Program Files/CMake/share/cmake-3.17/Modules/FindTclsh.cmake:95 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) Not match the name of the calling package (TCL). The package name passed to `find_package_handle_standard_args` (Tclsh) does CMake Warning (dev) at C:/Program Files/CMake/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:272 (message): But I have no idea how to resolve it and would appreciate any help or ideas. I believe the main issue is the error “target_include_directories called with incorrect number of arguments” which I think refers to the tcl/tk include paths. I have both tried to install IronTCL and to use conda tk but get the warnings and errors below. I’m building on Windows (10) with TDM-MinGW which detects fine. I’m still stuck on configuring Cmake with the following warnings and issues. ![]() Set(VTK_DIR /home/mehdi/myFolder/programming/lib/VTK-9.0.I have been trying for hours now to set up and build VTK with the TK integration without success. Set (CMAKE_CXX_FLAGS "-Wsign-compare -Wno-unused-variable -Wno-unused-parameter -Wdeprecated-copy") The CMakeLists.txtfile is as follows: cmake_minimum_required(VERSION 3.20.3) source files are located in src directory and header files in ìnclude directory. I want to compile cpp source code in which VTK, Eigen, PETSc and dealII libraries are included. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |