[Insight-users] =?GB2312?B?UmU6IFJlOiBbSW5zaWdodC11c2Vyc10gY2Fubm90IG9wZW4gZmlsZZNFOlxJVEtfQklO?= =?GB2312?B?NC4yLjFcbGliXERlYnVnXGl0a3N5cy00LjIubGliPw==?=

Bill Lorensen bill.lorensen at gmail.com
Mon Dec 17 13:13:36 EST 2012


Does CMake find the ITK_DIR?

On Mon, Dec 17, 2012 at 1:06 PM, flydps <flydps at 163.com> wrote:
> Dear Bill,
> Thank you very much for your help!
> Even I run the simplest program, there are the same problem.
> One program is like the following:
>
>                      CMakeLists.txt is:
> cmake_minimum_required(VERSION 2.8)
>
> find_package(ITK REQUIRED)
> include(${ITK_USE_FILE})
>
> project(nihao)
>
> add_executable(nihao nihao.cxx )
> target_link_libraries(nihao  ${ITK_LIBRARIES})
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>                            The nihao.cxx is:
> #include "itkImage.h"
> #include <iostream>
> int main()
> {
> typedef itk::Image< unsigned short, 3 > ImageType;
> ImageType::Pointer image = ImageType::New();
> std::cout << "Nihao !" << std::endl;
> return 0;
> }
>
> Can you give me some help? Thanks!
> ________________________________
> flydps
>
> ·¢¼þÈË£º Bill Lorensen
> ·¢ËÍʱ¼ä£º 2012-12-17 23:41
> ÊÕ¼þÈË£º flydps
> ³­ËÍ£º Insight-Users
> Ö÷Ì⣺ Re: Re: [Insight-users] cannot open
> file“E:\ITK_BIN4.2.1\lib\Debug\itksys-4.2.lib?
> Please keep discussion on the list.
> Can you provide the CMakeLists.txt file for your application?
>
> On Mon, Dec 17, 2012 at 9:57 AM, flydps <flydps at 163.com> wrote:
>> Dear Bill,
>> Thank you very much for your reply. But I think I build the Itk and the
>> application of itk both in debug type. I am sure that the the application
>> is
>> debug type. As to itk itself, I chose the default type, and when I select
>> the Advanced selection in CMake, most items show debug type.  I use  itk
>> for
>> every application will get the same error:  cannot open file
>> E:\ITK_BIN4.2.1\lib\Debug\itksys-4.2.lib?
>>
>> ________________________________
>> flydps
>>
>> From: Bill Lorensen
>> Date: 2012-12-17 21:26
>> To: flydps
>> CC: Insight-users
>> Subject: Re: [Insight-users] cannot open
>> file“E:\ITK_BIN4.2.1\lib\Debug\itksys-4.2.lib?
>> Your project must be built with the same build_type as itk. I suspect
>> that your build_type is Debug, but your ITK was built with a different
>> build type.
>>
>> On Mon, Dec 17, 2012 at 8:06 AM, flydps <flydps at 163.com> wrote:
>>> Hi, all
>>> I am using Itk 4.2.1 with vs 2010, but when I build the project that I
>>> every
>>> used without problem under Linux, I get an error: 2>LINK : fatal error
>>> LNK1104: cannot open file“E:\ITK_BIN4.2.1\lib\Debug\itksys-4.2.lib? Can
>>> anyone give me some help, thanks!
>>>
>>> ________________________________
>>> flydps
>>>
>>> _____________________________________
>>> 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.php
>>>
>>> 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


More information about the Insight-users mailing list