[SOLVED] .lib file of external module is not build

Gordian
Wed, 27 Jun 2018 13:00:28 +0000
Engineering

Hello,

when I try to build (ENABLE_SHARED) an external module the compiling is fine until the TestDriver and the HeaderTest are compiled. They are looking for an itkORA.lib file that is not created in the itk/lib/Debug folder.

LNK1104 cannot open file 'C:\TK\ITK-413\msvc2015_64\lib\Debug\itkORA-4.13.lib' ORATestDriver

The src/CMakeList.txt is as follows:

set(ORA_SRCS
  oraProjectionGeometry.cxx
  oraStringTools.cxx
  )

itk_module_add_library(ORA ${ORA_SRCS})

Nothing spectacular. ITK and VTK are compile with the same configurations. The *.dll files are created inside the itk build tree /bin/Debug/ directory. Inside the ORA-Build tree is neither a *.dll file nor a *.lib file.

In C:\TK\ITK-413\msvc2015_64\lib\cmake\ITK-4.13\Modules a ORA.cmake file is created:

set(ORA_LOADED 1)
set(ORA_ENABLE_SHARED "1")
set(ORA_DEPENDS "ITKCommon;ITKImageGrid;ITKImageSources;ITKVtkGlue;RTK")
set(ORA_PUBLIC_DEPENDS "ITKCommon;ITKImageGrid;ITKVtkGlue;RTK")
set(ORA_TRANSITIVE_DEPENDS "ITKCommon;ITKImageGrid;ITKImageSources;ITKVtkGlue;RTK")
set(ORA_PRIVATE_DEPENDS "")
set(ORA_LIBRARIES "ORA")
set(ORA_INCLUDE_DIRS "C:/TK/src/ora/include;C:/TK/ora/msvc2015_64/include")
set(ORA_LIBRARY_DIRS "")
set(ORA_RUNTIME_LIBRARY_DIRS "C:/TK/ITK-413/msvc2015_64/bin")
set(ORA_TARGETS_FILE "C:/TK/ITK-413/msvc2015_64/lib/cmake/ITK-4.13/Modules/Targets/ORATargets.cmake")
set(ORA_FACTORY_NAMES "")

The ORA_LIBRARIES value is empty. Which module creates this file? I guess the missing library name is a hint. An earlier projects has a library name filled in.
What could be a reason for not generating a LIB file?

CMake generated another file in C:\TK\ITK-413\msvc2015_64\lib\cmake\ITK-4.13\Modules\Targets:
ORATargets.cmake (click for more details)
That seems to be without any problems.

9 posts - 3 participants