<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<STYLE>
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
BODY {
        LINE-HEIGHT: 1.5; FONT-FAMILY: 微软雅黑; COLOR: #000080; FONT-SIZE: 10.5pt
}
</STYLE>
<META name=GENERATOR content="MSHTML 9.00.8112.16457"></HEAD>
<BODY style="MARGIN: 10px">
<DIV>Dear Bill,</DIV>
<DIV>Thank you very much for your help!</DIV>
<DIV>Even I run the simplest program, there are the same problem.</DIV>
<DIV>One program is like the following:</DIV>
<DIV> </DIV>
<DIV>
CMakeLists.txt is:</DIV>
<DIV>cmake_minimum_required(VERSION 2.8)</DIV>
<DIV>
<DIV> </DIV>
<DIV>find_package(ITK REQUIRED)</DIV>
<DIV>include(${ITK_USE_FILE})</DIV>
<DIV> </DIV>
<DIV>project(nihao)</DIV>
<DIV> </DIV>
<DIV>add_executable(nihao nihao.cxx )</DIV>
<DIV>target_link_libraries(nihao ${ITK_LIBRARIES})</DIV></DIV>
<DIV>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</DIV>
<DIV>
The nihao.cxx is:</DIV>
<DIV>
<DIV>#include "itkImage.h"</DIV>
<DIV>#include <iostream></DIV>
<DIV>int main()</DIV>
<DIV>{</DIV>
<DIV>typedef itk::Image< unsigned short, 3 > ImageType;</DIV>
<DIV>ImageType::Pointer image = ImageType::New();</DIV>
<DIV>std::cout << "Nihao !" << std::endl;</DIV>
<DIV>return 0;</DIV>
<DIV>}</DIV>
<DIV> </DIV>
<DIV>Can you give me some help? Thanks!</DIV></DIV>
<HR style="WIDTH: 210px; HEIGHT: 1px" align=left color=#b5c4df SIZE=1>
<DIV><SPAN>flydps</SPAN></DIV>
<DIV> </DIV>
<DIV
style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<DIV
style="PADDING-BOTTOM: 8px; PADDING-LEFT: 8px; PADDING-RIGHT: 8px; BACKGROUND: #efefef; COLOR: #000000; FONT-SIZE: 12px; PADDING-TOP: 8px">
<DIV><B>发件人:</B> <A href="mailto:bill.lorensen@gmail.com">Bill
Lorensen</A></DIV>
<DIV><B>发送时间:</B> 2012-12-17 23:41</DIV>
<DIV><B>收件人:</B> <A href="mailto:flydps@163.com">flydps</A></DIV>
<DIV><B>抄送:</B> <A
href="mailto:insight-users@itk.org">Insight-Users</A></DIV>
<DIV><B>主题:</B> Re: Re: [Insight-users] cannot open
file揈:\ITK_BIN4.2.1\lib\Debug\itksys-4.2.lib?</DIV></DIV></DIV>
<DIV>
<DIV>Please keep discussion on the list.</DIV>
<DIV>Can you provide the CMakeLists.txt file for your application?</DIV>
<DIV> </DIV>
<DIV>On Mon, Dec 17, 2012 at 9:57 AM, flydps <flydps@163.com> wrote:</DIV>
<DIV>> Dear Bill,</DIV>
<DIV>> Thank you very much for your reply. But I think I build the Itk and the</DIV>
<DIV>> application of itk both in debug type. I am sure that the the application is</DIV>
<DIV>> debug type. As to itk itself, I chose the default type, and when I select</DIV>
<DIV>> the Advanced selection in CMake, most items show debug type. I use itk for</DIV>
<DIV>> every application will get the same error: cannot open file</DIV>
<DIV>> E:\ITK_BIN4.2.1\lib\Debug\itksys-4.2.lib?</DIV>
<DIV>></DIV>
<DIV>> ________________________________</DIV>
<DIV>> flydps</DIV>
<DIV>></DIV>
<DIV>> From: Bill Lorensen</DIV>
<DIV>> Date: 2012-12-17 21:26</DIV>
<DIV>> To: flydps</DIV>
<DIV>> CC: Insight-users</DIV>
<DIV>> Subject: Re: [Insight-users] cannot open</DIV>
<DIV>> file揈:\ITK_BIN4.2.1\lib\Debug\itksys-4.2.lib?</DIV>
<DIV>> Your project must be built with the same build_type as itk. I suspect</DIV>
<DIV>> that your build_type is Debug, but your ITK was built with a different</DIV>
<DIV>> build type.</DIV>
<DIV>></DIV>
<DIV>> On Mon, Dec 17, 2012 at 8:06 AM, flydps <flydps@163.com> wrote:</DIV>
<DIV>>> Hi, all</DIV>
<DIV>>> I am using Itk 4.2.1 with vs 2010, but when I build the project that I</DIV>
<DIV>>> every</DIV>
<DIV>>> used without problem under Linux, I get an error: 2>LINK : fatal error</DIV>
<DIV>>> LNK1104: cannot open file揈:\ITK_BIN4.2.1\lib\Debug\itksys-4.2.lib? Can</DIV>
<DIV>>> anyone give me some help, thanks!</DIV>
<DIV>>></DIV>
<DIV>>> ________________________________</DIV>
<DIV>>> flydps</DIV>
<DIV>>></DIV>
<DIV>>> _____________________________________</DIV>
<DIV>>> Powered by www.kitware.com</DIV>
<DIV>>></DIV>
<DIV>>> Visit other Kitware open-source projects at</DIV>
<DIV>>> http://www.kitware.com/opensource/opensource.html</DIV>
<DIV>>></DIV>
<DIV>>> Kitware offers ITK Training Courses, for more information visit:</DIV>
<DIV>>> http://www.kitware.com/products/protraining.php</DIV>
<DIV>>></DIV>
<DIV>>> Please keep messages on-topic and check the ITK FAQ at:</DIV>
<DIV>>> http://www.itk.org/Wiki/ITK_FAQ</DIV>
<DIV>>></DIV>
<DIV>>> Follow this link to subscribe/unsubscribe:</DIV>
<DIV>>> http://www.itk.org/mailman/listinfo/insight-users</DIV>
<DIV>>></DIV>
<DIV>></DIV>
<DIV>></DIV>
<DIV>></DIV>
<DIV>> --</DIV>
<DIV>> Unpaid intern in BillsBasement at noware dot com</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>-- </DIV>
<DIV>Unpaid intern in BillsBasement at noware dot com</DIV></DIV></BODY></HTML>