itkFactoryRegistration issue

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

itkFactoryRegistration issue

Tianyi Miao

Dear 3DSlicer Team,

I recently got some itk library issue after slicer update to new version, following is the error message,

[100%] Linking CXX executable aTest

CMakeFiles/aTest.dir/aTest.cxx.o: In function `main':

aTest.cxx:(.text.startup+0x10b): undefined reference to `itk::itkFactoryRegistration()'

collect2: error: ld returned 1 exit status

a/Testing/CMakeFiles/aTest.dir/build.make:230: recipe for target 'a/Testing/aTest' failed

I am working under Ubuntu 16.04.1 GNU 5.4.0,

Here is the CMakeLists.txt for Testing:


#-----------------------------------------------------------------------------

set(BASELINE ${CMAKE_CURRENT_SOURCE_DIR}/../Data/Baseline)

set(INPUT ${CMAKE_CURRENT_SOURCE_DIR}/../Data/Input)

set(TEMP ${CMAKE_BINARY_DIR}/Testing/Temporary)


set(CLP ${MODULE_NAME})



#-----------------------------------------------------------------------------

add_executable(${CLP}Test ${CLP}Test.cxx)

target_link_libraries(${CLP}Test ${CLP}Lib)

set_target_properties(${CLP}Test PROPERTIES LABELS ${CLP})



set(testname ${CLP}Test-b444)

add_test(NAME ${testname} COMMAND ${SEM_LAUNCH_COMMAND} $<TARGET_FILE:${CLP}Test>

  --compare ${BASELINE}/${testname}.nrrd

            ${TEMP}/${testname}.nrrd

  ModuleEntryPoint

  ${INPUT}/${CLP}Test.nrrd  ${TEMP}/${testname}.nrrd

  --neighborhood 4,4,4 )

set_property(TEST ${testname} PROPERTY LABELS ${CLP})


Does anyone have some idea? Thanks a lot!


Miao


_______________________________________________
slicer-devel mailing list
[hidden email]
http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel
To unsubscribe: send email to [hidden email] with unsubscribe as the subject
http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ