<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Dear community members,<div class=""><br class=""></div><div class="">I am new with CTK, and want to use the CTK-VTK widget with Qt. <a href="https://github.com/commontk/Examples" class="">The example</a> from the website works, but once VTK is added, a link error occurs, even though the cpp file has no change. I am quite confused about it, and want to find a solution.</div><div class=""><br class=""></div><div class="">* `CMakeLists.txt`</div><div class=""><br class=""></div><div class="">```</div><div class="">cmake_minimum_required(VERSION 2.8)<br class="">project(TEST_CTK)<br class=""><br class="">find_package(VTK REQUIRED)<br class="">include(${VTK_USE_FILE})<br class=""><br class="">find_package(CTK REQUIRED)<br class="">include(${CTK_USE_FILE})<br class=""><br class="">find_package(QT4 REQUIRED)<br class="">include(${QT_USE_FILE})<br class=""><br class="">set(SOURCE_FILES main.cpp)<br class="">add_executable(TEST_CTK ${SOURCE_FILES})<br class="">target_link_libraries(${PROJECT_NAME} ${CTK_LIBRARIES})</div><div class="">```</div><div class=""><br class=""></div><div class="">* Error information</div><div class=""><br class=""></div><div class="">```</div><div class=""><div class="">Scanning dependencies of target TEST_CTK</div><div class="">Linking CXX executable TEST_CTK</div><div class="">ld: library not found for -lvtkCommon</div><div class="">clang: error: linker command failed with exit code 1 (use -v to see invocation)</div><div class="">CMakeFiles/TEST_CTK.dir/build.make:90: recipe for target 'TEST_CTK' failed</div><div class="">gmake[3]: *** [TEST_CTK] Error 1</div><div class="">CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/TEST_CTK.dir/all' failed</div><div class="">gmake[2]: *** [CMakeFiles/TEST_CTK.dir/all] Error 2</div><div class="">CMakeFiles/Makefile2:72: recipe for target 'CMakeFiles/TEST_CTK.dir/rule' failed</div><div class="">gmake[1]: *** [CMakeFiles/TEST_CTK.dir/rule] Error 2</div><div class="">Makefile:110: recipe for target 'TEST_CTK' failed</div><div class="">gmake: *** [TEST_CTK] Error 2</div></div><div class="">```</div><div class=""><br class=""></div><div class="">* Environment: OS X 10.10 </div><div class=""><br class=""></div><div class="">Thank you very much!</div><div class=""><br class=""></div><div class="">Regards,</div><div class="">Quentan</div></body></html>