[Insight-users] cmake warning

Andreas Schuh andreas.schuh.84 at googlemail.com
Thu Feb 12 11:10:14 EST 2009


Well, if you run CMake, you configure the project (ITK) depending on  
your environment and CMake generates platform dependent project files  
like VS9 project files or Makefiles on unix. Then you must build the  
ITK libraries. On Windows I suggest to use either Visual Studio or  
make with Cygwin. Using VS, you open the generated ITK.sln file with  
the VS IDE (devenv.exe) and just invoke the build ... If your not  
familiar with building software from sources and other developement  
basics, I don't know what you're gonna do with the ITK? Is it needed  
by another application you wanna build and just use? Or do you use any  
scripting language the ITK is wrapped for?

I don't want to be rude. It's just knowing what you're acquainted with  
is important to be able to better help you.

regards
Andreas

Am 12.02.2009 um 16:42 schrieb Arepi <szamosi.arpad at gmail.com>:

>
> 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.
>
> _____________________________________
> 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


More information about the Insight-users mailing list