1、下载源码
https://github.com/commontk/CTK
2、使用CMake 生成 VS Solution
步骤:
(1)CMake configure
(2) 勾选 CTK_ENABLE_pluginFramwork, generate
(3)
问题:
(1)QT 版本问题
Found unsuitable Qt version "5.7.1" from D:/development/Qt5.7.1/5.7/msvc2015/bin/qmake.exe CMake Error at CMake/ctkMacroSetupQt.cmake:87 (message): error: Qt4 was not found on your system. You probably need to set the QT_QMAKE_EXECUTABLE variable Call Stack (most recent call first): CMakeLists.txt:423 (ctkMacroSetupQt)
打开 CTK-master/CMake/ctkMacroSetupQt.cmake 文件,将 CTK_QT_VERSION 由 4 改为 5:
注意: 新增部分主要用于消除警告,也建议加上。
删除 Cache , 重新 config
(2)