[Insight-users] Something strange about itksys.libs
Bill Lorensen
bill.lorensen at gmail.com
Thu Jan 5 16:07:47 EST 2012
Did you build your app in a completely empty build directory?
On Thu, Jan 5, 2012 at 3:06 PM, Hui Tang <tanghui.seu at gmail.com> wrote:
> yes it is in my own application:)
>
> Here is my cMake, thanks:)
>
> cmake_minimum_required(VERSION 2.4)
> if(COMMAND CMAKE_POLICY)
> cmake_policy(SET CMP0003 NEW)
> endif()
>
> project(PSRegional)
>
> find_package(ITK REQUIRED)
> if(ITK_FOUND)
> include(${ITK_USE_FILE})
> endif()
>
> find_package(VTK REQUIRED)
> if(VTK_FOUND)
> include(${VTK_USE_FILE})
> endif()
>
> IF (WIN32)
> INCLUDE_DIRECTORIES("E:/packages/boost_1_47_0/boost_1_47_0/")
> LINK_DIRECTORIES("E:/packages/lib64/")
> ENDIF (WIN32)
> include_directories(${CMAKE_CURRENT_SOURCE_DIR})
>
> set(LevelSetsSourceList
> PSRegional
> )
>
> foreach( var ${LevelSetsSourceList} )
> add_executable(${var} ${var}.cxx)
> target_link_libraries(${var} ${ITK_LIBRARIES}
> vtkImaging
> vtkRendering
> vtkHybrid)
> endforeach()
>
>
>
>
> On Thu, Jan 5, 2012 at 8:38 PM, Bill Lorensen <bill.lorensen at gmail.com>wrote:
>
>> Is this in your own application? If so, can you send me your
>> CMakeLists.txt file?
>>
>>
>>
>> On Thu, Jan 5, 2012 at 2:35 PM, Hui Tang <tanghui.seu at gmail.com> wrote:
>>
>>> I got linking error LINK : fatal error LNK1181: cannot open input file
>>> 'itksys.lib', but i do not have this if I set BUILD_TESTING off when I
>>> build ITK library
>>>
>>>
>>> On Thu, Jan 5, 2012 at 7:58 PM, Bill Lorensen <bill.lorensen at gmail.com>wrote:
>>>
>>>> What error do you get when you build with BUILD_TESTING ON?
>>>>
>>>>
>>>> On Thu, Jan 5, 2012 at 1:55 PM, Hui Tang <tanghui.seu at gmail.com> wrote:
>>>>
>>>>> hihi thanks for your reply:) yes I used this, the problem is should I
>>>>> set BUILD_TESTING on when I build ITK
>>>>>
>>>>>
>>>>> On Thu, Jan 5, 2012 at 7:32 PM, Bill Lorensen <bill.lorensen at gmail.com
>>>>> > wrote:
>>>>>
>>>>>> What problem do you see? For itkv4 you should use ${ITK_LIBRARIES}
>>>>>> and list specific libraries.
>>>>>>
>>>>>> On Thu, Jan 5, 2012 at 12:38 PM, Hui Tang <tanghui.seu at gmail.com>wrote:
>>>>>>
>>>>>>> I found that iktsys.libs is not found when I compile my own project
>>>>>>> if I set BUILD_TESTING on when I build ITK , but if I set BUILD_TESTING
>>>>>>> off, I do not get this problem, I can build my own project.
>>>>>>>
>>>>>>> May I ask what causes this strange problem? I am using the ITK4
>>>>>>> distributed in December.
>>>>>>>
>>>>>>> It is not an urgent question, as now I can build my own project well.
>>>>>>>
>>>>>>> Best,
>>>>>>>
>>>>>>> Hui
>>>>>>>
>>>>>>> _____________________________________
>>>>>>> Powered by www.kitware.com
>>>>>>>
>>>>>>> Visit other Kitware open-source projects at
>>>>>>> http://www.kitware.com/opensource/opensource.html
>>>>>>>
>>>>>>> Kitware offers ITK Training Courses, for more information visit:
>>>>>>> http://www.kitware.com/products/protraining.html
>>>>>>>
>>>>>>> Please keep messages on-topic and check the ITK FAQ at:
>>>>>>> http://www.itk.org/Wiki/ITK_FAQ
>>>>>>>
>>>>>>> Follow this link to subscribe/unsubscribe:
>>>>>>> http://www.itk.org/mailman/listinfo/insight-users
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Unpaid intern in BillsBasement at noware dot com
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Unpaid intern in BillsBasement at noware dot com
>>>>
>>>>
>>>
>>
>>
>> --
>> Unpaid intern in BillsBasement at noware dot com
>>
>>
>
--
Unpaid intern in BillsBasement at noware dot com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120105/82f8995f/attachment.htm>
More information about the Insight-users
mailing list