-
Notifications
You must be signed in to change notification settings - Fork 497
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build CTK with already installed VTK #911
Comments
Welcome @KerimMatlab
That is correct
yes To understand how to configure and use CTK, I suggest you look at the external project we have in Slicer: https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_CTK.cmake You will for example discover there that you can simply build CTK passing VTK_DIR, and then CTK will use the you provide instead of building its own. Let us know if you have other questions, |
Thank you for hint I have already tried to set Could not find a package configuration file provided by "VTK" (requested VTKConfig.cmake |
Both should work but there are some caveats. Generally speaking, you need to pass the directory that contain the To keep things simple, simply pass the build directory. |
@jcfr Jean don't you know how to solve my issue? |
I suggest you create a file called |
As described above, pass Reading https://github.com/Slicer/Slicer/blob/1956d89defd4da0243de5485a9de6d18a8ce7749/SuperBuild/External_CTK.cmake#L90 should help |
@jcfr does CMakeCache files from VTK and CTK configuration is able to replace |
@jcfr according to the link you give me, should I change |
Without a script allowing to reproduce the problem (including checkout of sources), i will be able to help further. Since so may different things can be wrong, I suggest you create such script. 🙏 |
Wish I knew how to use CMake via command line :) |
@jcfr I did it for CTK. Please look at the attached file. |
Thanks. I am copying the original content of the text file below by including
|
Remarks:
I suggest you try the following command and report back the errors. Make sure to re-run the command from an empty build directory. To configure:
Then, to build:
|
@jcfr thank you for help
I did what you said but I got the same errors. I attach the output from build command |
Hi,
I'm a little newbie in C++. My configuration: Qt 5.14.1 on WIndows 10, MSVC 2017 x64
As I understood from here and here CTK also provides widgets for VTK.
I already have installed VTK 9.0. What options should I use to build CTK widgets for VTK?
Should I check on
CTK_LIB_Visualization/VTK/Core
andCTK_LIB_Visualization/VTK/Widgets
(and ...Widgets_USE_TRANSFER_FUNCTION_
...) in CMake GUI ?By the way if I use these options then CTK building results with errors, and without them everything is fine. Maybe I should set some variables pointing where my VTK lib is located?
The text was updated successfully, but these errors were encountered: