[Insight-users] cannot open file揈:\ITK_BIN4.2.1\lib\Debug\itksys-4.2.lib?

flydps flydps at 163.com
Mon Dec 17 13:06:25 EST 2012


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揈:\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揈:\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揈:\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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20121218/a407d603/attachment.htm>


More information about the Insight-users mailing list