[ITK] Error when trying to run the read image example
Med SWEng
medcompsweng at gmail.com
Sun Apr 27 17:34:08 EDT 2014
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:
LINK : fatal error LNK1181: cannot open input file
'C:\ITK\Build\lib\Release\ITKCommon-4.0.lib'
Why is that?
Thanks.
On Sat, Apr 26, 2014 at 7:56 AM, Gib Bogle <g.bogle at auckland.ac.nz> wrote:
> 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.
> ------------------------------
> *From:* Med SWEng [medcompsweng at gmail.com]
> *Sent:* Saturday, 26 April 2014 5:19 p.m.
>
> *To:* Gib Bogle
> *Subject:* Re: [ITK] Error when trying to run the read image example
>
> Since I'm not able to run the program in release mode, that
> subdirectory is empty. Really getting stuck here.
>
> Isn't there a way to create a .exe outside VS?
>
>
> On Sat, Apr 26, 2014 at 7:13 AM, Gib Bogle <g.bogle at auckland.ac.nz> wrote:
>
>> 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.
>>
>> 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.
>> ------------------------------
>> *From:* Med SWEng [medcompsweng at gmail.com]
>> *Sent:* Saturday, 26 April 2014 4:59 p.m.
>>
>> *To:* Gib Bogle
>> *Subject:* Re: [ITK] Error when trying to run the read image example
>>
>> 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.
>>
>>
>> On Sat, Apr 26, 2014 at 6:58 AM, Gib Bogle <g.bogle at auckland.ac.nz>wrote:
>>
>>> 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?
>>> ------------------------------
>>> *From:* Med SWEng [medcompsweng at gmail.com]
>>> *Sent:* Saturday, 26 April 2014 4:43 p.m.
>>> *To:* Gib Bogle
>>>
>>> *Subject:* Re: [ITK] Error when trying to run the read image example
>>>
>>> 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.
>>>
>>> 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.
>>>
>>>
>>> On Sat, Apr 26, 2014 at 6:38 AM, Gib Bogle <g.bogle at auckland.ac.nz>wrote:
>>>
>>>> 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:
>>>>
>>>> image2 your_image_file
>>>>
>>>> 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.
>>>>
>>>> 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?
>>>> ------------------------------
>>>> *From:* Med SWEng [medcompsweng at gmail.com]
>>>> *Sent:* Saturday, 26 April 2014 4:00 p.m.
>>>>
>>>> *To:* Gib Bogle
>>>> *Cc:* community at itk.org
>>>> *Subject:* Re: [ITK] Error when trying to run the read image example
>>>>
>>>> The example is: Examples/DataRepresentation/Image/Image2.cxx.
>>>>
>>>> When I ran the program in "Debug" mode, it passed that error, but got
>>>> the message box:
>>>>
>>>> Unable to start program 'C:\Users\....\bin\Debug\ALL_BUILD
>>>>
>>>>
>>>> The system cannot find the file specified
>>>>
>>>>
>>>> On Sat, Apr 26, 2014 at 2:06 AM, Gib Bogle <g.bogle at auckland.ac.nz>wrote:
>>>>
>>>>> Which example is that - what is the name of the .cxx file?
>>>>> ------------------------------
>>>>> *From:* Med SWEng [medcompsweng at gmail.com]
>>>>> *Sent:* Saturday, 26 April 2014 11:24 a.m.
>>>>> *To:* Gib Bogle
>>>>> *Cc:* community at itk.org
>>>>> *Subject:* Re: [ITK] Error when trying to run the read image example
>>>>>
>>>>> Thanks Gib for your reply. It seems it doesn't exist. How can I
>>>>> fix such issue?
>>>>>
>>>>>
>>>>> On Sat, Apr 26, 2014 at 1:22 AM, Gib Bogle <g.bogle at auckland.ac.nz>wrote:
>>>>>
>>>>>> Does that file exist?
>>>>>> ------------------------------
>>>>>> *From:* Community [community-bounces at itk.org] on behalf of Med SWEng
>>>>>> [medcompsweng at gmail.com]
>>>>>> *Sent:* Saturday, 26 April 2014 11:21 a.m.
>>>>>> *To:* community at itk.org
>>>>>> *Subject:* [ITK] Error when trying to run the read image example
>>>>>>
>>>>>> When I tried running the "read image" example of the "itk
>>>>>> software guide", I got the following error:
>>>>>>
>>>>>> 2>LINK : fatal error LNK1181: cannot open input file
>>>>>> 'C:\Toolkits\itk-4.5.2\bin\lib\Release\itkdouble-conversion-4.5.lib'
>>>>>> 3>------ Skipped Build: Project: ALL_BUILD, Configuration: Release
>>>>>> Win32 ------
>>>>>>
>>>>>> What should I do to fix this issue?
>>>>>>
>>>>>> Thanks.
>>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20140427/35c69edd/attachment-0002.html>
More information about the Community
mailing list