[Insight-users] cmake warning

Arepi szamosi.arpad at gmail.com
Thu Feb 12 10:42:10 EST 2009


Sorry, I dont understand what means "run make and make install". I have
WinXP. 




Steven Manos wrote:
> 
> Hi,
> 
> On 12 Feb 2009, at 14:36, Arepi wrote:
>> After I installed cmake the ITK_DIR set automazically but I dont found
>> nowhere ITKCommon.lib on my computer. Can you tell me how can I  
>> configure
>> and build ITk correct?
> 
> You need to run make and make install to get those libraries installed.
> 
> Then you will find the libraries in $install_path/lib/InsightToolkit
> 
> Once you have installed ITK correctly, this is an example of a  
> CMakeLists.txt file which compiles ITK into a user application -
> 
> PROJECT(itktool CXX)
> FIND_PACKAGE(ITK)
> INCLUDE(${ITK_USE_FILE})
> ADD_EXECUTABLE(segtool a.cc  b.cc  c.cc  main.cc  d.cc)
> TARGET_LINK_LIBRARIES(segtool ITKAlgorithms ITKBasicFilters ITKCommon  
> ITKFEM
> ITKIO ITKNrrdIO ITKNumerics ITKSpatialObject ITKStatistics ITKniftiio  
> ITKznz)
> 
> When you run cmake you have to specify the ITK_DIR
> 
> Steven.
> 
> 
>> Luis Ibanez wrote:
>>>
>>>
>>> Hi Arepi,
>>>
>>> Have you actually configured and build ITK itself ?
>>>
>>> If so, in the ITK binary directory you should find a
>>> "/bin" subdirectory and then inside the "Release" or "Debug"
>>> subdirectory you should see the library ITKCommon.lib
>>> (among many others).
>>>
>>> Also, when you run CMake on the hello world example,
>>> you must point the ITK_DIR variable to the directory
>>> where you build ITK.
>>>
>>>
>>>    Regards,
>>>
>>>
>>>        Luis
>>>
>>>
>>> ------------------------
>>> Arepi wrote:
>>>> Thanks it works fine the cmake generate the projekt file but then  
>>>> I open
>>>> and
>>>> build in VS, gave the message:
>>>> "fatal error LNK1104: cannot open file 'ITKCommon.lib'"
>>>> I use VS 2005. What should I do?
>>>>
>>>> Thanks a lot!
>>>>
>>>>
>>>>
>>>> Paste  "cmake_minimum_required(VERSION2.6)" (no quotes) into the
>>>> CMakeLists.txt file.quote>
>>>>
>>>>
>>> _____________________________________
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.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
>>>
>>>
>>
>> -- 
>> View this message in context:
>> http://www.nabble.com/cmake-warning-tp21958293p21977286.html
>> Sent from the ITK - Users mailing list archive at Nabble.com.
>>
>> _____________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.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
> 
> _____________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.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
> 
> 

-- 
View this message in context: http://www.nabble.com/cmake-warning-tp21958293p21978550.html
Sent from the ITK - Users mailing list archive at Nabble.com.



More information about the Insight-users mailing list