<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Does that file exist?<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF398743"><font color="#000000" face="Tahoma" size="2"><b>From:</b> Med SWEng [medcompsweng@gmail.com]<br>
<b>Sent:</b> Monday, 28 April 2014 9:34 a.m.<br>
<b>To:</b> Gib Bogle; community@itk.org<br>
<b>Subject:</b> Re: [ITK] Error when trying to run the read image example<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">
<div>I have tried installing ITK 4.0.0. I managed to install and build it. Now, returning back to the "read image" example in the ITK software guide, I get the following when trying to build the project in Visual Studio:<br>
<br>
LINK : fatal error LNK1181: cannot open input file 'C:\ITK\Build\lib\Release\ITKCommon-4.0.lib'<br>
<br>
</div>
Why is that?<br>
<br>
Thanks.<br>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Sat, Apr 26, 2014 at 7:56 AM, Gib Bogle <span dir="ltr">
<<a href="mailto:g.bogle@auckland.ac.nz" target="_blank">g.bogle@auckland.ac.nz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div>
<div style="direction:ltr; font-size:10pt; font-family:Tahoma">I think what you mean is you are unable to build the release executable. I have no idea why this should be, but I'm sure it's not a VS issue. It could be a problem with your ITK build. You'll
need to seek help from the ITK gurus - I am not one.<br>
<div style="font-size:16px; font-family:Times New Roman">
<hr>
<div style="direction:ltr"><font color="#000000" face="Tahoma"><b>From:</b> Med SWEng [<a href="mailto:medcompsweng@gmail.com" target="_blank">medcompsweng@gmail.com</a>]<br>
<b>Sent:</b> Saturday, 26 April 2014 5:19 p.m.
<div>
<div class="h5"><br>
<b>To:</b> Gib Bogle<br>
<b>Subject:</b> Re: [ITK] Error when trying to run the read image example<br>
</div>
</div>
</font><br>
</div>
<div>
<div class="h5">
<div></div>
<div>
<div dir="ltr">
<div>Since I'm not able to run the program in release mode, that subdirectory is empty. Really getting stuck here.<br>
<br>
</div>
Isn't there a way to create a .exe outside VS?<br>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Sat, Apr 26, 2014 at 7:13 AM, Gib Bogle <span dir="ltr">
<<a href="mailto:g.bogle@auckland.ac.nz" target="_blank">g.bogle@auckland.ac.nz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div>
<div style="direction:ltr; font-size:10pt; font-family:Tahoma">The exe file will be in the release subdirectory of the directory where the project files are, i.e. image2.vcxproj etc. If you can locate it, try executing it from the command line.<br>
<br>
What really puzzles me is that I do not have that library, but can run the program. I am using ITK-4.0.0, but that should not make any difference.<br>
<div style="font-size:16px; font-family:Times New Roman">
<hr>
<div style="direction:ltr"><font color="#000000" face="Tahoma"><b>From:</b> Med SWEng [<a href="mailto:medcompsweng@gmail.com" target="_blank">medcompsweng@gmail.com</a>]<br>
<b>Sent:</b> Saturday, 26 April 2014 4:59 p.m.
<div>
<div><br>
<b>To:</b> Gib Bogle<br>
<b>Subject:</b> Re: [ITK] Error when trying to run the read image example<br>
</div>
</div>
</font><br>
</div>
<div>
<div>
<div></div>
<div>
<div dir="ltr">Yes, I'm still getting that error if I want to use the release version. This is why it seems I don't have the .exe file.<br>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Sat, Apr 26, 2014 at 6:58 AM, Gib Bogle <span dir="ltr">
<<a href="mailto:g.bogle@auckland.ac.nz" target="_blank">g.bogle@auckland.ac.nz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div>
<div style="direction:ltr; font-size:10pt; font-family:Tahoma">I don't understand that error, since I cannot locate that .lib file anywhere on my system, and I can execute the release version of image2.exe successfully. Are you still getting that error with
the release version?<br>
<div style="font-size:16px; font-family:Times New Roman">
<hr>
<div style="direction:ltr"><font color="#000000" face="Tahoma"><b>From:</b> Med SWEng [<a href="mailto:medcompsweng@gmail.com" target="_blank">medcompsweng@gmail.com</a>]<br>
<b>Sent:</b> Saturday, 26 April 2014 4:43 p.m.<br>
<b>To:</b> Gib Bogle
<div>
<div><br>
<b>Subject:</b> Re: [ITK] Error when trying to run the read image example<br>
</div>
</div>
</font><br>
</div>
<div>
<div>
<div></div>
<div>
<div dir="ltr">
<div>Yes, you are right, when running the program using VS, I had a problem since the image is not given as input. Sorry I'm new to that, I couldn't find the .exe file, although I used CMake.<br>
<br>
</div>
My original issue was when I tried to run the program in VS in "release" mode, I got the original error I mentioned in my message, and when used the "debug" mode by passed that, since that file was there.<br>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Sat, Apr 26, 2014 at 6:38 AM, Gib Bogle <span dir="ltr">
<<a href="mailto:g.bogle@auckland.ac.nz" target="_blank">g.bogle@auckland.ac.nz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div>
<div style="direction:ltr; font-size:10pt; font-family:Tahoma">I presume you are using Visual Studio, since that's the message you get when you try to execute the program within VS. Open a command prompt console in the directory where image2.exe was created,
and type:<br>
<br>
image2 your_image_file<br>
<br>
You can invoke the program from VS by selecting it as the Startup project, as you have discovered, but the program expects to read an image file, the name of which was supplied on the command line.<br>
<br>
By the way I don't understand your original question, about itkdouble-conversion.4.5.lib not being found. Which example did that error occur with?<br>
<div style="font-size:16px; font-family:Times New Roman">
<hr>
<div style="direction:ltr"><font color="#000000" face="Tahoma"><b>From:</b> Med SWEng [<a href="mailto:medcompsweng@gmail.com" target="_blank">medcompsweng@gmail.com</a>]<br>
<b>Sent:</b> Saturday, 26 April 2014 4:00 p.m.
<div>
<div><br>
<b>To:</b> Gib Bogle<br>
<b>Cc:</b> <a href="mailto:community@itk.org" target="_blank">community@itk.org</a><br>
<b>Subject:</b> Re: [ITK] Error when trying to run the read image example<br>
</div>
</div>
</font><br>
</div>
<div>
<div>
<div></div>
<div>
<div dir="ltr">
<div>
<div>
<div>The example is: Examples/DataRepresentation/Image/Image2.cxx.<br>
<br>
</div>
When I ran the program in "Debug" mode, it passed that error, but got the message box:<br>
<br>
</div>
Unable to start program 'C:\Users\....\bin\Debug\ALL_BUILD<br>
<br>
<br>
</div>
<div>The system cannot find the file specified<br>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Sat, Apr 26, 2014 at 2:06 AM, Gib Bogle <span dir="ltr">
<<a href="mailto:g.bogle@auckland.ac.nz" target="_blank">g.bogle@auckland.ac.nz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div>
<div style="direction:ltr; font-size:10pt; font-family:Tahoma">Which example is that - what is the name of the .cxx file?<br>
<div style="font-size:16px; font-family:Times New Roman">
<hr>
<div style="direction:ltr"><font color="#000000" face="Tahoma"><b>From:</b> Med SWEng [<a href="mailto:medcompsweng@gmail.com" target="_blank">medcompsweng@gmail.com</a>]<br>
<b>Sent:</b> Saturday, 26 April 2014 11:24 a.m.<br>
<b>To:</b> Gib Bogle<br>
<b>Cc:</b> <a href="mailto:community@itk.org" target="_blank">community@itk.org</a><br>
<b>Subject:</b> Re: [ITK] Error when trying to run the read image example<br>
</font><br>
</div>
<div>
<div>
<div></div>
<div>
<div dir="ltr">Thanks Gib for your reply. It seems it doesn't exist. How can I fix such issue?<br>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Sat, Apr 26, 2014 at 1:22 AM, Gib Bogle <span dir="ltr">
<<a href="mailto:g.bogle@auckland.ac.nz" target="_blank">g.bogle@auckland.ac.nz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div>
<div style="direction:ltr; font-size:10pt; font-family:Tahoma">Does that file exist?<br>
<div style="font-size:16px; font-family:Times New Roman">
<hr>
<div style="direction:ltr"><font color="#000000" face="Tahoma"><b>From:</b> Community [<a href="mailto:community-bounces@itk.org" target="_blank">community-bounces@itk.org</a>] on behalf of Med SWEng [<a href="mailto:medcompsweng@gmail.com" target="_blank">medcompsweng@gmail.com</a>]<br>
<b>Sent:</b> Saturday, 26 April 2014 11:21 a.m.<br>
<b>To:</b> <a href="mailto:community@itk.org" target="_blank">community@itk.org</a><br>
<b>Subject:</b> [ITK] Error when trying to run the read image example<br>
</font><br>
</div>
<div>
<div>
<div></div>
<div>
<div dir="ltr">
<div>
<div>When I tried running the "read image" example of the "itk software guide", I got the following error:<br>
<br>
2>LINK : fatal error LNK1181: cannot open input file 'C:\Toolkits\itk-4.5.2\bin\lib\Release\itkdouble-conversion-4.5.lib'<br>
3>------ Skipped Build: Project: ALL_BUILD, Configuration: Release Win32 ------<br>
<br>
</div>
What should I do to fix this issue?<br>
<br>
</div>
Thanks.<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</body>
</html>