{"action":"created","issue":{"url":"https://api.github.com/repos/commontk/CTK/issues/676","repository_url":"https://api.github.com/repos/commontk/CTK","labels_url":"https://api.github.com/repos/commontk/CTK/issues/676/labels{/name}","comments_url":"https://api.github.com/repos/commontk/CTK/issues/676/comments","events_url":"https://api.github.com/repos/commontk/CTK/issues/676/events","html_url":"https://github.com/commontk/CTK/pull/676","id":185162208,"number":676,"title":"BUG: Linking CTKVisualizationVTKCore may require vtkRenderingFreeType","user":{"login":"aylward","id":279727,"avatar_url":"https://avatars.githubusercontent.com/u/279727?v=3","gravatar_id":"","url":"https://api.github.com/users/aylward","html_url":"https://github.com/aylward","followers_url":"https://api.github.com/users/aylward/followers","following_url":"https://api.github.com/users/aylward/following{/other_user}","gists_url":"https://api.github.com/users/aylward/gists{/gist_id}","starred_url":"https://api.github.com/users/aylward/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aylward/subscriptions","organizations_url":"https://api.github.com/users/aylward/orgs","repos_url":"https://api.github.com/users/aylward/repos","events_url":"https://api.github.com/users/aylward/events{/privacy}","received_events_url":"https://api.github.com/users/aylward/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-25T16:05:42Z","updated_at":"2016-10-25T17:36:44Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/commontk/CTK/pulls/676","html_url":"https://github.com/commontk/CTK/pull/676","diff_url":"https://github.com/commontk/CTK/pull/676.diff","patch_url":"https://github.com/commontk/CTK/pull/676.patch"},"body":"When compiling CTK using the VTK tag from Slicer 4.6.0 (i.e., github.com/Slicer/VTK.git: a024cefc2acf25350734e6f04d2562f9a6a3b124 ) VS12 reports the following error, which is fixed with the changes in this commit:\r\n\r\n```\r\ncmd.exe /C \"cd . && \"C:\\Program Files (x86)\\CMake\\bin\\cmake.exe\" -E vs_link_dll --intdir=Libs\\Visualization\\VTK\\Core\\CMakeFiles\\CTKVisualizationVTKCore.dir --manifests  -- \"C:\\PROGRA~2\\Microsoft Visual Studio 12.0\\VC\\bin\\amd64\\link.exe\" /nologo Libs\\Visualization\\VTK\\Core\\CMakeFiles\\CTKVisualizationVTKCore.dir\\ctkVTKConnection.cpp.obj Libs\\Visualization\\VTK\\Core\\CMakeFiles\\CTKVisualizationVTKCore.dir\\ctkVTKErrorLogMessageHandler.cpp.obj Libs\\Visualization\\VTK\\Core\\CMakeFiles\\CTKVisualizationVTKCore.dir\\ctkVTKObjectEventsObserver.cpp.obj Libs\\Visualization\\VTK\\Core\\CMakeFiles\\CTKVisualizationVTKCore.dir\\vtkLightBoxRendererManager.cpp.obj Libs\\Visualization\\VTK\\Core\\CMakeFiles\\CTKVisualizationVTKCore.dir\\moc_ctkVTKConnection.cxx.obj Libs\\Visualization\\VTK\\Core\\CMakeFiles\\CTKVisualizationVTKCore.dir\\moc_ctkVTKObjectEventsObserver.cxx.obj  /out:bin\\CTKVisualizationVTKCore.dll /implib:bin\\CTKVisualizationVTKCore.lib /pdb:bin\\CTKVisualizationVTKCore.pdb /dll /version:0.1 /machine:x64  /INCREMENTAL:NO  C:\\src\\TubeTK-Release\\VTK-build\\lib\\vtkInteractionStyle-7.1.lib C:\\src\\TubeTK-Release\\VTK-build\\lib\\vtkRenderingAnnotation-7.1.lib C:\\src\\TubeTK-Release\\VTK-build\\lib\\vtkRenderingOpenGL2-7.1.lib bin\\CTKCore.lib C:\\src\\TubeTK-Release\\VTK-build\\lib\\vtkIOImage-7.1.lib C:\\src\\TubeTK-Release\\VTK-build\\lib\\vtkRenderingCore-7.1.lib C:\\src\\TubeTK-Release\\VTK-build\\lib\\vtkFiltersCore-7.1.lib C:\\src\\TubeTK-Release\\VTK-build\\lib\\vtkCommonExecutionModel-7.1.lib C:\\src\\TubeTK-Release\\VTK-build\\lib\\vtkCommonDataModel-7.1.lib C:\\src\\TubeTK-Release\\VTK-build\\lib\\vtkCommonTransforms-7.1.lib C:\\src\\TubeTK-Release\\VTK-build\\lib\\vtkCommonSystem-7.1.lib C:\\src\\TubeTK-Release\\VTK-build\\lib\\vtkCommonMisc-7.1.lib C:\\src\\TubeTK-Release\\VTK-build\\lib\\vtkCommonMath-7.1.lib C:\\src\\TubeTK-Release\\VTK-build\\lib\\vtkCommonCore-7.1.lib C:\\Qt\\4.8.7\\lib\\QtOpenGL4.lib C:\\Qt\\4.8.7\\lib\\QtXmlPatterns4.lib C:\\Qt\\4.8.7\\lib\\QtGui4.lib C:\\Qt\\4.8.7\\lib\\QtXml4.lib C:\\Qt\\4.8.7\\lib\\QtSql4.lib C:\\Qt\\4.8.7\\lib\\QtNetwork4.lib C:\\Qt\\4.8.7\\lib\\QtCore4.lib dbghelp.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib  && cd .\"\r\n   Creating library bin\\CTKVisualizationVTKCore.lib and object bin\\CTKVisualizationVTKCore.exp\r\nvtkLightBoxRendererManager.cpp.obj : error LNK2019: unresolved external symbol \"void __cdecl vtkRenderingFreeType_AutoInit_Construct(void)\" (?vtkRenderingFreeType_AutoInit_Construct@@YAXXZ) referenced in function \"public: __cdecl vtkRenderingCore_AutoInit::vtkRenderingCore_AutoInit(void)\" (??0vtkRenderingCore_AutoInit@@QEAA@XZ)\r\nvtkLightBoxRendererManager.cpp.obj : error LNK2019: unresolved external symbol \"void __cdecl vtkRenderingFreeType_AutoInit_Destruct(void)\" (?vtkRenderingFreeType_AutoInit_Destruct@@YAXXZ) referenced in function \"public: __cdecl vtkRenderingCore_AutoInit::~vtkRenderingCore_AutoInit(void)\" (??1vtkRenderingCore_AutoInit@@QEAA@XZ)\r\nbin\\CTKVisualizationVTKCore.dll : fatal error LNK1120: 2 unresolved externals\r\nLINK failed. with 1120\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/commontk/CTK/issues/comments/256105483","html_url":"https://github.com/commontk/CTK/pull/676#issuecomment-256105483","issue_url":"https://api.github.com/repos/commontk/CTK/issues/676","id":256105483,"user":{"login":"jcfr","id":219043,"avatar_url":"https://avatars.githubusercontent.com/u/219043?v=3","gravatar_id":"","url":"https://api.github.com/users/jcfr","html_url":"https://github.com/jcfr","followers_url":"https://api.github.com/users/jcfr/followers","following_url":"https://api.github.com/users/jcfr/following{/other_user}","gists_url":"https://api.github.com/users/jcfr/gists{/gist_id}","starred_url":"https://api.github.com/users/jcfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcfr/subscriptions","organizations_url":"https://api.github.com/users/jcfr/orgs","repos_url":"https://api.github.com/users/jcfr/repos","events_url":"https://api.github.com/users/jcfr/events{/privacy}","received_events_url":"https://api.github.com/users/jcfr/received_events","type":"User","site_admin":false},"created_at":"2016-10-25T17:36:44Z","updated_at":"2016-10-25T17:36:44Z","body":"Does this error happen when compiling Slicer ? \r\n\r\nIt suggest to also look at this: https://github.com/Slicer/Slicer/blob/a259b83cfed52d21035b538f6a8c03a6ec184c25/CMakeLists.txt#L562-L576"}}
{"actor":{"display_login":"jcfr"}}