VMTK with CMake

468 views
Skip to first unread message

Jesse Ross-Jones

unread,
Oct 29, 2013, 10:46:21 AM10/29/13
to vmtk-...@googlegroups.com
Hi VMTKrs,

Im trying to build a C++ only project and id like to use some libraries from VMTK. I have come across the following thread:
http://www.mail-archive.com/vmtk-...@lists.sourceforge.net/msg00750.html
By adding include(/path/to/VMTKUse.cmake) to CMakeLists.txt the libraries should be included in the project. However I am getting the following error in CMake

CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeImportBuildSettings.cmake:22 (message):

CMAKE_IMPORT_BUILD_SETTINGS called with no argument.

Call Stack (most recent call first):

C:/vmtk/build/VMTK-Build/VMTKUse.cmake:3 (CMAKE_IMPORT_BUILD_SETTINGS)

CMakeLists.txt:25 (include)

Configuring incomplete, errors occurred!


Does anyone know why? Or how to include VMTK in a cmake? 


Many thanks

Jesse


 

Luca Antiga

unread,
Oct 29, 2013, 5:37:39 PM10/29/13
to vmtk-...@googlegroups.com
Hi Jesse,
 can you post the content of the VMTKUse.cmake file as well as the VMTKBuildSettings.cmake file in your VMTK-Build directory?
Thanks

Luca


--
You received this message because you are subscribed to the Google Groups "vmtk-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vmtk-users+...@googlegroups.com.
To post to this group, send email to vmtk-...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Luca Antiga, PhD
Co-founder and Principal Scientist, OROBIX Srl
via L.A. Muratori 3, 24123 Bergamo, Italy

twitter: @lantiga
mobile: +39.347.43.16.596

"This message originates from OROBIX Srl and its contents and attachments are privileged and confidential and are intended only for the individual(s) or entity(ies) named above. This message should not be forwarded, distributed or disclosed. Any unauthorized use, dissemination and duplication is strictly prohibited and may be unlawful. All personal messages express views solely of the sender, which are not to be attributed to OROBIX Srl, and may not be copied or distributed without this disclaimer. If you are not the intended recipient or received this message in error, please delete this message and notify the sender by reply e-mail. Opinions, conclusions and other information in this message that do not relate to the official business of OROBIX Srl shall be understood as neither given nor endorsed by it."

Jesse Ross-Jones

unread,
Oct 30, 2013, 9:41:15 AM10/30/13
to vmtk-...@googlegroups.com
Hi Luca,

Here is the contents of VMTKUse.cmake:

INCLUDE(CMakeImportBuildSettings)

CMAKE_IMPORT_BUILD_SETTINGS("${VMTK_BUILD_SETTINGS_FILE}")

INCLUDE_DIRECTORIES(${VMTK_INCLUDE_DIRS})

LINK_DIRECTORIES(${VMTK_LIBRARY_DIRS})

LINK_LIBRARIES(vtkvmtkCommon vtkvmtkComputationalGeometry vtkvmtkContrib vtkvmtkDifferentialGeometry vtkvmtkIO vtkvmtkITK vtkvmtkMisc vtkvmtkSegmentation nl tet)


and there is no VMTKBuildSettings.cmake just VMTKConfig.cmake and VMTKLibraryDepends.cmake. I guess this is why I get the cmake error..?

Is there an example of what VMTKBuildSettings.cmake should contain?

Many thanks
Jesse

Luca Antiga

unread,
Nov 6, 2013, 5:35:08 PM11/6/13
to vmtk-...@googlegroups.com
Hi Jesse,
 I looked into this a bit more and it looks like the BuildSettings files were generated with CMake 1.6 but they have been deprecated since, so it's correct that you don't have the file in your Build directory.
This means that the infrastructure for using vmtk as a C++ project through CMake needs to be revamped.

For the time being, what happens if you just comment out the CMAKE_IMPORT_BUILD_SETTINGS line in your VMTKUse.cmake file?

Luca

Jesse Ross-Jones

unread,
Nov 7, 2013, 2:46:29 AM11/7/13
to vmtk-...@googlegroups.com
Hi Luca,
Thanks for the reply.
I had tried what you suggested, to comment out the line CMAKE_IMPORT_BUILD_SETTINGS, when I do that I no longer get an error in CMAKE generating the solution however I still cannot build the project. I get : Cannot open include file: 'vtkvmtkCapPolyData.h': No such file or directory

I then tried copying the contents of VMTKConfig.cmake (commenting out the bit about Build Settings file ) into VMTKUse.cmake. It contains the include directories so I thought this might work. So my VMTKUse.cmake file looks like this:

INCLUDE(CMakeImportBuildSettings)

#CMAKE_IMPORT_BUILD_SETTINGS("${VMTK_BUILD_SETTINGS_FILE}")
SET (VMTK_CPP_SOURCE_DIRS "C:/vmtk/source/vtkVmtk")

SET(VMTK_INCLUDE_DIRS
  ${VMTK_CPP_SOURCE_DIRS}
  ${VMTK_CPP_SOURCE_DIRS}/Common
  ${VMTK_CPP_SOURCE_DIRS}/ComputationalGeometry
  ${VMTK_CPP_SOURCE_DIRS}/Contrib
  ${VMTK_CPP_SOURCE_DIRS}/DifferentialGeometry
  ${VMTK_CPP_SOURCE_DIRS}/IO
  ${VMTK_CPP_SOURCE_DIRS}/Misc
  ${VMTK_CPP_SOURCE_DIRS}/Segmentation
  "C:/vmtk/build/VMTK-Build"
  "C:/vmtk/build/VMTK-Build/vtkVmtk"
  "C:/vmtk/build/Install/include/vmtk"
)

#SET(VMTK_BUILD_SETTINGS_FILE
#  "C:/vmtk/build/VMTK-Build/VMTKBuildSettings.cmake"
#)


INCLUDE(
  "C:/vmtk/build/VMTK-Build/VMTKLibraryDepends.cmake"
)

SET(VMTK_LIBRARY_DIRS "C:/vmtk/build/VMTK-Build/bin")

SET(VMTK_USE_FILE
  "C:/vmtk/build/VMTK-Build/VMTKUse.cmake"

)

INCLUDE_DIRECTORIES(${VMTK_INCLUDE_DIRS})

LINK_DIRECTORIES(${VMTK_LIBRARY_DIRS})

LINK_LIBRARIES(vtkvmtkCommon vtkvmtkComputationalGeometry vtkvmtkContrib vtkvmtkDifferentialGeometry vtkvmtkIO vtkvmtkITK vtkvmtkMisc vtkvmtkSegmentation nl tet)




This however produces the following error:
 Creating library C:/itkProjects/repository/ITK_source/vmtk/vmtkcenterline/source/build/Debug/vmtkcenterline.lib and object C:/itkProjects/repository/ITK_source/vmtk/vmtkcenterline/source/build/Debug/vmtkcenterline.exp
2>vmtkcenterline.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class vtkvmtkCapPolyData * __cdecl vtkvmtkCapPolyData::New(void)" (__imp_?New@vtkvmtkCapPolyData@@SAPAV1@XZ) referenced in function "public: static class vtkSmartPointer<class vtkvmtkCapPolyData> __cdecl vtkSmartPointer<class vtkvmtkCapPolyData>::New(void)" (?New@?$vtkSmartPointer@VvtkvmtkCapPolyData@@@@SA?AV1@XZ)
2>C:\itkProjects\repository\ITK_source\vmtk\vmtkcenterline\source\build\Debug\vmtkcenterline.exe : fatal error LNK1120: 1 unresolved externals


I need to search more about what this error is. Do you have an idea?

Many thanks!
Jesse

Luca Antiga

unread,
Nov 7, 2013, 3:53:27 PM11/7/13
to vmtk-...@googlegroups.com
Hi Jesse,
 it's a linking issue, basically the linker cannot find symbols for the vtkvmtkCapPolyData class after seeing the declaration in vtkvmtkCapPolyData.h during compilation (which means the include files were found).
So, apparently the LINK_LIBRARIES line does not do what it's supposed to. In fact the LINK_LIBRARIES command is deprecated in CMake. The right way to go is probably to comment that line out and instead list the vmtk libraries with the TARGET_LINK_LIBRARIES command in the CMakeLists.txt file for your project, e.g.

LINK_LIBRARIES(vmtkcenterline vtkvmtkCommon vtkvmtkComputationalGeometry vtkvmtkContrib vtkvmtkDifferentialGeometry vtkvmtkIO vtkvmtkITK vtkvmtkMisc vtkvmtkSegmentation nl tet)

(I doubt you need them all, you can remove the ones you don't use)

Hope this helps, and please let me know when you succeed so I can update the Use file in the repository.

Thanks

Luca

Jesse Ross-Jones

unread,
Nov 8, 2013, 1:41:14 PM11/8/13
to vmtk-...@googlegroups.com
Hi Luca,
Ive been trying a bunch of things to try to get it working.
I tried using find_package(VMTK REQUIRED) and something seemed to improve but im still getting linking errors :

2>vmtkcenterline.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class vtkvmtkCapPolyData * __cdecl vtkvmtkCapPolyData::New(void)" (__imp_?New@vtkvmtkCapPolyData@@SAPAV1@XZ) referenced in function "public: static class vtkSmartPointer<class vtkvmtkCapPolyData> __cdecl vtkSmartPointer<class vtkvmtkCapPolyData>::New(void)" (?New@?$vtkSmartPointer@VvtkvmtkCapPolyData@@@@SA?AV1@XZ)
2>vmtkcenterline.obj : error LNK2019: unresolved external symbol "public: __thiscall itksys::SystemToolsManager::SystemToolsManager(void)" (??0SystemToolsManager@itksys@@QAE@XZ) referenced in function "void __cdecl itksys::`dynamic initializer for 'SystemToolsManagerInstance''(void)" (??__ESystemToolsManagerInstance@itksys@@YAXXZ)
2>vmtkcenterline.obj : error LNK2019: unresolved external symbol "public: __thiscall itksys::SystemToolsManager::~SystemToolsManager(void)" (??1SystemToolsManager@itksys@@QAE@XZ) referenced in function "void __cdecl itksys::`dynamic atexit destructor for 'SystemToolsManagerInstance''(void)" (??__FSystemToolsManagerInstance@itksys@@YAXXZ)
2>C:\itkProjects\repository\ITK_source\vmtk\vmtkcenterline\source\build\Debug\vmtkcenterline.exe : fatal error LNK1120: 3 unresolved externals
2>


Right now my cmake lists looks like this:

# This is the root ITK CMakeLists file.
cmake_minimum_required(VERSION 2.8)
if(COMMAND CMAKE_POLICY)
  cmake_policy(SET CMP0003 NEW)
endif()

# This project is designed to be built outside the Insight source tree.
project(vmtkcenterline)

# Find ITK.
find_package(ITK REQUIRED)
include(${ITK_USE_FILE})

find_package(VTK REQUIRED)
include(${VTK_USE_FILE})


SET(VMTK_LIBARY_DIRS
    "C:/vmtk/build/VMTK-Build/bin/Debug/vtkvmtkCommon.lib")
   
SET(VMTKITK_LIBARY_DIRS
    "C:/vmtk/build/ITK-Build/bin/Debug/ITKNumerics.lib")

   
    INCLUDE(CMakeImportBuildSettings)

#CMAKE_IMPORT_BUILD_SETTINGS("${VMTK_BUILD_SETTINGS_FILE}")
SET (VMTK_CPP_SOURCE_DIRS "C:/vmtk/source/vtkVmtk")

SET(VMTK_INCLUDE_DIRS
  ${VMTK_CPP_SOURCE_DIRS}
  ${VMTK_CPP_SOURCE_DIRS}/Common
  ${VMTK_CPP_SOURCE_DIRS}/ComputationalGeometry
  ${VMTK_CPP_SOURCE_DIRS}/Contrib
  ${VMTK_CPP_SOURCE_DIRS}/DifferentialGeometry
  ${VMTK_CPP_SOURCE_DIRS}/IO
  ${VMTK_CPP_SOURCE_DIRS}/Misc
  ${VMTK_CPP_SOURCE_DIRS}/Segmentation
  "C:/vmtk/build/VMTK-Build"
  "C:/vmtk/build/VMTK-Build/vtkVmtk"
  "C:/vmtk/build/Install/include/vmtk"
  "C:/vmtk/build/VMTK-Build/bin/Debug"

)

#SET(VMTK_BUILD_SETTINGS_FILE
#  "C:/vmtk/build/VMTK-Build/VMTKBuildSettings.cmake"
#)
find_package(VMTK REQUIRED)


INCLUDE(
  "C:/vmtk/build/VMTK-Build/VMTKLibraryDepends.cmake"
)

SET(VMTK_LIBRARY_DIRS "C:/vmtk/build/VMTK-Build/bin")

SET(VMTK_USE_FILE
  "C:/vmtk/build/VMTK-Build/VMTKUse.cmake"
)

INCLUDE_DIRECTORIES(${VMTK_INCLUDE_DIRS})

LINK_DIRECTORIES(${VMTK_LIBRARY_DIRS})
  
find_package(VMTK REQUIRED)
include(${VMTK_USE_FILE})

add_executable(vmtkcenterline vmtkcenterline.cxx)

INCLUDE_DIRECTORIES(${vmtkcenterline_SOURCE_DIR}/include ${CMAKE_CURRENT_BINARY_DIR} ${ITK_DIR} ${VTK_DIR} ${VMTK_INCLUDE_DIRS} ${VMTK_DIR})

target_link_libraries(vmtkcenterline ${ITK_LIBRARIES} ${VTK_LIBRARIES} ${VMTK_LIBRARIES} ${VMTK_LIBARY_DIRS} ${VMTK_LIBRARIES} ${VMTKITK_LIBARY_DIRS} ITKCommon vtkvmtkCommon vtkvmtkComputationalGeometry vtkvmtkContrib vtkvmtkDifferentialGeometry vtkvmtkIO vtkvmtkITK vtkvmtkMisc vtkvmtkSegmentation nl tet)


At this point im changing things semi randomly. >_< I think my next step will be to try to set the link directories and files directly in the compiler... Ill keep looking for a more elegant solution though
many thanks
Jesse

Luca Antiga

unread,
Nov 8, 2013, 4:11:15 PM11/8/13
to vmtk-...@googlegroups.com
Hi Jesse,
 try setting

SET(VMTK_LIBRARY_DIRS "C:/vmtk/build/VMTK-Build/bin/Debug")

and

target_link_libraries(vmtkcenterline ${ITK_LIBRARIES} ${VTK_LIBRARIES} ${VMTK_LIBRARIES} ITKCommon vtkvmtkCommon vtkvmtkComputationalGeometry vtkvmtkContrib vtkvmtkDifferentialGeometry vtkvmtkIO vtkvmtkITK vtkvmtkMisc vtkvmtkSegmentation nl tet)

Luca

Jesse Ross-Jones

unread,
Nov 8, 2013, 4:25:18 PM11/8/13
to vmtk-...@googlegroups.com
Hi Luca,
thanks for the reply, i changed it to


SET(VMTK_LIBRARY_DIRS "C:/vmtk/build/VMTK-Build/bin/Debug")
fixing the typo i had
and changed it to
target_link_libraries(
vmtkcenterline ${ITK_LIBRARIES} ${VTK_LIBRARIES} ${VMTK_LIBRARIES} ITKCommon vtkvmtkCommon vtkvmtkComputationalGeometry vtkvmtkContrib vtkvmtkDifferentialGeometry vtkvmtkIO vtkvmtkITK vtkvmtkMisc vtkvmtkSegmentation nl tet)


but i get still the error:


2>vmtkcenterline.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class vtkvmtkCapPolyData * __cdecl vtkvmtkCapPolyData::New(void)" (__imp_?New@vtkvmtkCapPolyData@@SAPAV1@XZ) referenced in function "public: static class vtkSmartPointer<class vtkvmtkCapPolyData> __cdecl vtkSmartPointer<class vtkvmtkCapPolyData>::New(void)" (?New@?$vtkSmartPointer@VvtkvmtkCapPolyData@@@@SA?AV1@XZ)
2>vmtkcenterline.obj : error LNK2019: unresolved external symbol "public: __thiscall itksys::SystemToolsManager::SystemToolsManager(void)" (??0SystemToolsManager@itksys@@QAE@XZ) referenced in function "void __cdecl itksys::`dynamic initializer for 'SystemToolsManagerInstance''(void)" (??__ESystemToolsManagerInstance@itksys@@YAXXZ)
2>vmtkcenterline.obj : error LNK2019: unresolved external symbol "public: __thiscall itksys::SystemToolsManager::~SystemToolsManager(void)" (??1SystemToolsManager@itksys@@QAE@XZ) referenced in function "void __cdecl itksys::`dynamic atexit destructor for 'SystemToolsManagerInstance''(void)" (??__FSystemToolsManagerInstance@itksys@@YAXXZ)
2>C:\itkProjects\repository\ITK_source\vmtk\vmtkcenterline\source\build\Debug\vmtkcenterline.exe : fatal error LNK1120: 3 unresolved externals

cheers,
Jesse

Luca Antiga

unread,
Nov 8, 2013, 4:28:26 PM11/8/13
to vmtk-...@googlegroups.com
Hi Jesse,
 can you post the content of the C:/vmtk/build/VMTK-Build/bin/Debug directory, just to be sure?

Luca

Jesse Ross-Jones

unread,
Nov 8, 2013, 4:32:47 PM11/8/13
to vmtk-...@googlegroups.com
Hi Luca,
Sure its:
 Directory of C:\vmtk\build\VMTK-Build\bin\Debug

08/29/2013  13:04    <DIR>          .
08/29/2013  13:04    <DIR>          ..
08/28/2013  12:29           151,852 nl.lib
08/28/2013  12:29            77,824 nl.pdb
08/28/2013  12:29         2,129,152 tet.lib
08/28/2013  12:29           102,400 tet.pdb
08/28/2013  12:29            51,200 vtkvmtkCommon.dll
08/28/2013  12:29             5,256 vtkvmtkCommon.exp
08/28/2013  12:29           411,520 vtkvmtkCommon.ilk
08/28/2013  12:29             9,534 vtkvmtkCommon.lib
08/28/2013  12:29           724,992 vtkvmtkcommon.pdb
08/28/2013  12:29               718 vtkvmtkCommonPython.exp
08/28/2013  12:29           304,848 vtkvmtkCommonPython.ilk
08/28/2013  12:29             2,004 vtkvmtkCommonPython.lib
08/28/2013  12:29           675,840 vtkvmtkcommonpython.pdb
08/28/2013  12:29            34,816 vtkvmtkCommonPython.pyd
08/29/2013  13:03            62,464 vtkvmtkCommonPythonD.dll
08/28/2013  12:29             1,021 vtkvmtkCommonPythonD.exp
08/29/2013  13:03           423,644 vtkvmtkCommonPythonD.ilk
08/28/2013  12:29             2,542 vtkvmtkCommonPythonD.lib
08/29/2013  13:03           880,640 vtkvmtkcommonpythond.pdb
08/28/2013  12:30         2,046,976 vtkvmtkComputationalGeometry.dll
08/28/2013  12:30           455,408 vtkvmtkComputationalGeometry.exp
08/28/2013  12:30         4,041,540 vtkvmtkComputationalGeometry.ilk
08/28/2013  12:30           784,320 vtkvmtkComputationalGeometry.lib
08/28/2013  12:30         3,731,456 vtkvmtkcomputationalgeometry.pdb
08/28/2013  12:31               808 vtkvmtkComputationalGeometryPython.exp
08/28/2013  12:31           444,588 vtkvmtkComputationalGeometryPython.ilk
08/28/2013  12:31             2,276 vtkvmtkComputationalGeometryPython.lib
08/28/2013  12:31           692,224 vtkvmtkcomputationalgeometrypython.pdb
08/28/2013  12:31            39,936 vtkvmtkComputationalGeometryPython.pyd
08/29/2013  13:03         1,099,264 vtkvmtkComputationalGeometryPythonD.dll
08/28/2013  12:31            22,449 vtkvmtkComputationalGeometryPythonD.exp
08/29/2013  13:03         3,853,244 vtkvmtkComputationalGeometryPythonD.ilk
08/28/2013  12:31            40,920 vtkvmtkComputationalGeometryPythonD.lib
08/29/2013  13:03         3,239,936 vtkvmtkcomputationalgeometrypythond.pdb
08/29/2013  13:03           517,632 vtkvmtkContrib.dll
08/29/2013  13:03            74,520 vtkvmtkContrib.exp
08/29/2013  13:03         2,101,076 vtkvmtkContrib.ilk
08/29/2013  13:03           125,080 vtkvmtkContrib.lib
08/29/2013  13:03         2,207,744 vtkvmtkcontrib.pdb
08/29/2013  13:04               724 vtkvmtkContribPython.exp
08/29/2013  13:04           339,752 vtkvmtkContribPython.ilk
08/29/2013  13:04             2,024 vtkvmtkContribPython.lib
08/29/2013  13:04           675,840 vtkvmtkcontribpython.pdb
08/29/2013  13:04            35,840 vtkvmtkContribPython.pyd
08/29/2013  13:04           205,312 vtkvmtkContribPythonD.dll
08/29/2013  13:04             5,671 vtkvmtkContribPythonD.exp
08/29/2013  13:04           958,192 vtkvmtkContribPythonD.ilk
08/29/2013  13:04            10,544 vtkvmtkContribPythonD.lib
08/29/2013  13:04         1,265,664 vtkvmtkcontribpythond.pdb
08/28/2013  12:30           958,976 vtkvmtkDifferentialGeometry.dll
08/28/2013  12:30           268,200 vtkvmtkDifferentialGeometry.exp
08/28/2013  12:30         4,819,564 vtkvmtkDifferentialGeometry.ilk
08/28/2013  12:30           461,244 vtkvmtkDifferentialGeometry.lib
08/28/2013  12:30         2,912,256 vtkvmtkdifferentialgeometry.pdb
08/28/2013  12:31               802 vtkvmtkDifferentialGeometryPython.exp
08/28/2013  12:31           445,088 vtkvmtkDifferentialGeometryPython.ilk
08/28/2013  12:31             2,256 vtkvmtkDifferentialGeometryPython.lib
08/28/2013  12:31           692,224 vtkvmtkdifferentialgeometrypython.pdb
08/28/2013  12:31            39,424 vtkvmtkDifferentialGeometryPython.pyd
08/29/2013  13:03           615,424 vtkvmtkDifferentialGeometryPythonD.dll
08/28/2013  12:31            21,867 vtkvmtkDifferentialGeometryPythonD.exp
08/29/2013  13:03         2,443,100 vtkvmtkDifferentialGeometryPythonD.ilk
08/28/2013  12:31            39,842 vtkvmtkDifferentialGeometryPythonD.lib
08/29/2013  13:03         2,576,384 vtkvmtkdifferentialgeometrypythond.pdb
08/28/2013  12:29           383,488 vtkvmtkIO.dll
08/28/2013  12:29            44,374 vtkvmtkIO.exp
08/28/2013  12:29         2,298,432 vtkvmtkIO.ilk
08/28/2013  12:29            73,818 vtkvmtkIO.lib
08/28/2013  12:29         1,822,720 vtkvmtkio.pdb
08/28/2013  12:30               694 vtkvmtkIOPython.exp
08/28/2013  12:30           329,940 vtkvmtkIOPython.ilk
08/28/2013  12:30             1,932 vtkvmtkIOPython.lib
08/28/2013  12:30           675,840 vtkvmtkiopython.pdb
08/28/2013  12:30            35,328 vtkvmtkIOPython.pyd
08/29/2013  13:03           119,296 vtkvmtkIOPythonD.dll
08/28/2013  12:30             4,157 vtkvmtkIOPythonD.exp
08/29/2013  13:03           678,436 vtkvmtkIOPythonD.ilk
08/28/2013  12:30             7,838 vtkvmtkIOPythonD.lib
08/29/2013  13:03         1,134,592 vtkvmtkiopythond.pdb
08/28/2013  12:30        13,361,664 vtkvmtkITK.dll
08/28/2013  12:30            81,151 vtkvmtkITK.exp
08/28/2013  12:30        24,262,624 vtkvmtkITK.ilk
08/28/2013  12:30           132,064 vtkvmtkITK.lib
08/28/2013  12:30        31,911,936 vtkvmtkitk.pdb
08/28/2013  12:30               717 vtkvmtkITKPython.exp
08/28/2013  12:30           325,208 vtkvmtkITKPython.ilk
08/28/2013  12:30             1,952 vtkvmtkITKPython.lib
08/28/2013  12:30           675,840 vtkvmtkitkpython.pdb
08/28/2013  12:30            35,328 vtkvmtkITKPython.pyd
08/29/2013  13:03         1,364,480 vtkvmtkITKPythonD.dll
08/28/2013  12:30            47,812 vtkvmtkITKPythonD.exp
08/29/2013  13:03         4,600,892 vtkvmtkITKPythonD.ilk
08/28/2013  12:30            81,422 vtkvmtkITKPythonD.lib
08/29/2013  13:03         6,729,728 vtkvmtkitkpythond.pdb
08/28/2013  12:31         2,259,968 vtkvmtkMisc.dll
08/28/2013  12:31           217,938 vtkvmtkMisc.exp
08/28/2013  12:31         2,930,064 vtkvmtkMisc.ilk
08/28/2013  12:31           362,306 vtkvmtkMisc.lib
08/28/2013  12:31         3,174,400 vtkvmtkmisc.pdb
08/28/2013  12:32               706 vtkvmtkMiscPython.exp
08/28/2013  12:32           383,656 vtkvmtkMiscPython.ilk
08/28/2013  12:32             1,968 vtkvmtkMiscPython.lib
08/28/2013  12:32           684,032 vtkvmtkmiscpython.pdb
08/28/2013  12:32            37,376 vtkvmtkMiscPython.pyd
08/29/2013  13:04           487,936 vtkvmtkMiscPythonD.dll
08/28/2013  12:32            12,539 vtkvmtkMiscPythonD.exp
08/29/2013  13:04         1,949,944 vtkvmtkMiscPythonD.ilk
08/28/2013  12:32            22,176 vtkvmtkMiscPythonD.lib
08/29/2013  13:04         2,142,208 vtkvmtkmiscpythond.pdb
08/28/2013  12:29            53,760 vtkvmtkRendering.dll
08/28/2013  12:29             3,834 vtkvmtkRendering.exp
08/28/2013  12:29           647,452 vtkvmtkRendering.ilk
08/28/2013  12:29             7,134 vtkvmtkRendering.lib
08/28/2013  12:29           765,952 vtkvmtkrendering.pdb
08/28/2013  12:29               736 vtkvmtkRenderingPython.exp
08/28/2013  12:29           309,412 vtkvmtkRenderingPython.ilk
08/28/2013  12:29             2,060 vtkvmtkRenderingPython.lib
08/28/2013  12:29           675,840 vtkvmtkrenderingpython.pdb
08/28/2013  12:29            35,328 vtkvmtkRenderingPython.pyd
08/29/2013  13:03            43,520 vtkvmtkRenderingPythonD.dll
08/28/2013  12:29             1,195 vtkvmtkRenderingPythonD.exp
08/29/2013  13:03           388,148 vtkvmtkRenderingPythonD.ilk
08/28/2013  12:29             2,860 vtkvmtkRenderingPythonD.lib
08/29/2013  13:03           864,256 vtkvmtkrenderingpythond.pdb
08/29/2013  13:04         5,151,232 vtkvmtkSegmentation.dll
08/29/2013  13:04           219,658 vtkvmtkSegmentation.exp
08/29/2013  13:04        22,535,156 vtkvmtkSegmentation.ilk
08/29/2013  13:04           370,968 vtkvmtkSegmentation.lib
08/29/2013  13:04        16,470,016 vtkvmtksegmentation.pdb
08/29/2013  13:04               754 vtkvmtkSegmentationPython.exp
08/29/2013  13:04           384,344 vtkvmtkSegmentationPython.ilk
08/29/2013  13:04             2,112 vtkvmtkSegmentationPython.lib
08/29/2013  13:04           684,032 vtkvmtksegmentationpython.pdb
08/29/2013  13:04            37,376 vtkvmtkSegmentationPython.pyd
08/29/2013  13:04         1,435,648 vtkvmtkSegmentationPythonD.dll
08/29/2013  13:04            25,615 vtkvmtkSegmentationPythonD.exp
08/29/2013  13:04        10,164,760 vtkvmtkSegmentationPythonD.ilk
08/29/2013  13:04            44,938 vtkvmtkSegmentationPythonD.lib
08/29/2013  13:04         6,385,664 vtkvmtksegmentationpythond.pdb
             139 File(s)    224,974,558 bytes
               2 Dir(s)  499,563,483,136 bytes free

cheers,
Jesse

Luca Antiga

unread,
Nov 8, 2013, 4:36:15 PM11/8/13
to vmtk-...@googlegroups.com
Hi Jesse, 
 you really seem to have what you need in that directory. I don't have a Windows box with Visual Studio around, unfortunately.
At this point trying by including dependencies directly in the Visual Studio solution looks like the quickest way to get it working, although it's not optimal.

Luca

Jesse Ross-Jones

unread,
Nov 8, 2013, 4:38:24 PM11/8/13
to vmtk-...@googlegroups.com
Hi Luca,
Yea.. i will try that way and when I get further along I will try again to get it working in cmake. Ill also try to ask on a cmake forum
i hope we can find a good solution from them :)
cheers,
Jesse

Jesse Ross-Jones

unread,
Nov 11, 2013, 4:57:44 AM11/11/13
to vmtk-...@googlegroups.com
hi Luca,
Im trying to fix this linking error:


2>vmtkcenterline.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class vtkvmtkCapPolyData * __cdecl vtkvmtkCapPolyData::New(void)" (__imp_?New@vtkvmtkCapPolyData@@SAPAV1@XZ) referenced in function "public: static class vtkSmartPointer<class vtkvmtkCapPolyData> __cdecl vtkSmartPointer<class vtkvmtkCapPolyData>::New(void)" (?New@?$vtkSmartPointer@VvtkvmtkCapPolyData@@@@SA?AV1@XZ)

Do you know if this is with VMTK or VTK?

Im trying to fix it my manually adding the library paths and lib objects. Its a bit of a mess but these are the library paths and libraries that are currently used in the project. Most were added by cmake I only added C:\vmtk\build\VMTK-Build\bin\Debug

Additional Library Directories:
C:\vmtk\build\VMTK-Build\bin\Debug;C:/vmtk/build/ITK-Build/bin;C:/vmtk/build/ITK-Build/bin/$(Configuration);C:/vmtk/build/VMTK-Build/bin;C:/vmtk/build/VMTK-Build/bin/$(Configuration);%(AdditionalLibraryDirectories)

Additional Dependencies:
kernel32.lib;user32.lib;gdi32.lib;winspool.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;comdlg32.lib;advapi32.lib;ITKAlgorithms.lib;ITKStatistics.lib;ITKFEM.lib;ITKQuadEdgeMesh.lib;C:\VTK\build\bin\Debug\vtkCommon.lib;C:\VTK\build\bin\Debug\vtkFiltering.lib;C:\VTK\build\bin\Debug\vtkImaging.lib;C:\VTK\build\bin\Debug\vtkGraphics.lib;C:\VTK\build\bin\Debug\vtkGenericFiltering.lib;C:\VTK\build\bin\Debug\vtkIO.lib;C:\VTK\build\bin\Debug\vtkRendering.lib;C:\VTK\build\bin\Debug\vtkVolumeRendering.lib;C:\VTK\build\bin\Debug\vtkHybrid.lib;C:\VTK\build\bin\Debug\vtkWidgets.lib;C:\VTK\build\bin\Debug\vtkInfovis.lib;C:\VTK\build\bin\Debug\vtkGeovis.lib;C:\VTK\build\bin\Debug\vtkViews.lib;C:\VTK\build\bin\Debug\vtkCharts.lib;ITKCommon.lib;vtkvmtkCommon.lib;vtkvmtkComputationalGeometry.lib;vtkvmtkContrib.lib;vtkvmtkDifferentialGeometry.lib;vtkvmtkIO.lib;vtkvmtkITK.lib;vtkvmtkMisc.lib;vtkvmtkSegmentation.lib;nl.lib;tet.lib;itkNetlibSlatec.lib;C:\VTK\build\bin\Debug\vtkproj4.lib;C:\VTK\build\bin\Debug\vtklibxml2.lib;C:\VTK\build\bin\Debug\vtkalglib.lib;C:\VTK\build\bin\Debug\vtkverdict.lib;C:\VTK\build\bin\Debug\vtkDICOMParser.lib;C:\VTK\build\bin\Debug\vtkNetCDF_cxx.lib;C:\VTK\build\bin\Debug\LSDyna.lib;C:\VTK\build\bin\Debug\vtkmetaio.lib;C:\VTK\build\bin\Debug\vtksqlite.lib;C:\VTK\build\bin\Debug\vtkpng.lib;C:\VTK\build\bin\Debug\vtktiff.lib;C:\VTK\build\bin\Debug\vtkjpeg.lib;C:\VTK\build\bin\Debug\vtkexpat.lib;vfw32.lib;C:\VTK\build\bin\Debug\vtkftgl.lib;C:\VTK\build\bin\Debug\vtkfreetype.lib;opengl32.lib;C:\VTK\build\bin\Debug\vtkexoIIc.lib;C:\VTK\build\bin\Debug\vtkNetCDF.lib;C:\VTK\build\bin\Debug\vtkhdf5_hl.lib;C:\VTK\build\bin\Debug\vtkhdf5.lib;C:\VTK\build\bin\Debug\vtkzlib.lib;C:\VTK\build\bin\Debug\vtksys.lib;ITKNumerics.lib;ITKIO.lib;ITKNrrdIO.lib;itkgdcm.lib;itkjpeg12.lib;itkjpeg16.lib;itkopenjpeg.lib;snmpapi.lib;rpcrt4.lib;itkpng.lib;itktiff.lib;itkjpeg8.lib;ITKSpatialObject.lib;ITKMetaIO.lib;comctl32.lib;wsock32.lib;ITKEXPAT.lib;ITKniftiio.lib;ITKznz.lib;itkzlib.lib;ITKDICOMParser.lib;ITKBasicFilters.lib;itkvnl_inst.lib;itkvnl_algo.lib;itkv3p_netlib.lib;itkvnl.lib;itkvcl.lib;itkv3p_lsqr.lib;itksys.lib;ws2_32.lib;Psapi.lib

Do you know if I am missing something?

Thank you very much
Jesse

Luca Antiga

unread,
Nov 19, 2013, 4:37:43 PM11/19/13
to vmtk-...@googlegroups.com
Hi Jesse,
 I don't see anything missing. The linker complains about the New method in vtkvmtkCapPolyData that gets compiled in vtkvmtkComputationalGeometry. However, you have vtkvmtkComputationalGeometry.lib in there so it should really work.
You can do a manual check, try to open it up with a text editor, search for vtkvmtkCapPolyData and see if you find a vtkvmtkCapPolyData_(gibberish)_New symbol.
I wish I could be of more help here.

Luca

Catalina Raymond

unread,
Jun 4, 2014, 2:29:50 PM6/4/14
to vmtk-...@googlegroups.com
Hi Jesse,

I was wondering if you found a solution for these problem. I have exactly the same issue and I will appreciate if you found a solution you could help me.

Thank you
,

Brian Davis

unread,
Jul 8, 2016, 4:03:26 PM7/8/16
to vmtk-users

>> infrastructure for using vmtk as a C++ project through CMake needs to be revamped.

Yep I would agree.

Also tet.lib was built but not installed when using Visual Studio 13 Community edition and CMake 3.5.0 (I had to copy it over manually)

CMAKE_INSTALL_PREFIX C:/projects/4DRTProtoTesting/install
SUPERBUILD_INSTALL_PREFIX C:/projects/4DRTProtoTesting/install

with vmtk built in:

C:\source\vmtk-1.3

There is also wierdness with find_package finding packages in original build dir  C:\source\vmtk-1.3\build and not in install dir C:/projects/4DRTProtoTesting/install

ITK_USE_FILE = C:/source/vmtk-1.3/build/ITK/CMake/UseITK.cmake
VTK_USE_FILE = C:/source/vmtk-1.3/build/VTK/CMake/UseVTK.cmake


even though I tried:

find_package(
    VTK
#    REQUIRED COMPONENTS vtkRenderingOpenGL vtkInteractionStyle vtkRenderingVolumeOpenGL vtkRenderingFreetypeOpenGL
#    NO_MODULE
    PATHS ${INSTALL_PREFIX}
     NO_DEFAULT_PATH
     NO_CMAKE_ENVIRONMENT_PATH
     NO_CMAKE_PATH
     NO_SYSTEM_ENVIRONMENT_PATH
     NO_CMAKE_PACKAGE_REGISTRY
     NO_CMAKE_BUILDS_PATH
     NO_CMAKE_SYSTEM_PATH
     NO_CMAKE_SYSTEM_PACKAGE_REGISTRY
     NO_CMAKE_FIND_ROOT_PATH
    )

where ${INSTALL_PREFIX} is C:/projects/4DRTProtoTesting/install

I guess i am not expecting any help fixing this as you state it is in a relative state of broken and I am still turning the crank on the sausage making machine, but keep this in mind when/if fixing.



Luca Antiga

unread,
Jul 28, 2016, 3:57:36 PM7/28/16
to vmtk-users
Thank you Brian, appreciated.

--
You received this message because you are subscribed to the Google Groups "vmtk-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vmtk-users+...@googlegroups.com.
To post to this group, send email to vmtk-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages