[Insight-users] compile error using cygwin
Johnson, Hans J
hans-johnson at uiowa.edu
Wed Feb 9 08:32:31 EST 2011
I was working on removing Cygwin last night to address my Mantis ticket
assigned to me!
http://review.source.kitware.com/#change,870
This is discussed in Mantis under bug number 11659.
The gerrit patch explicitly removes cygwin support. And now ITK it fails
consistently, and fails early so as to be obvious about the intent and
level of support.
Hans
On 2/9/11 5:21 AM, "Bill Lorensen" <bill.lorensen at gmail.com> wrote:
>I would recommend mingw over cygwin. It is much smaller and less
>troublesome to update that cygwin. It also seems faster to me.
>
>On Tue, Feb 8, 2011 at 8:10 PM, Seth Gilchrist <seth at mech.ubc.ca> wrote:
>> Hello all,
>> I have been using ITK in Linux without trouble, however, my colleagues
>> prefer to work in a Windows environment and have asked if I can port my
>> code. I am reluctant to do addition coding for this and have looked
>>for a
>> direct rout. From reading it seems like cygwin is a good way to go,
>>but I'm
>> having trouble compiling itk. I get all the way to 97% complete and
>>error
>> out with the message:
>>
>> [ 96%] Built target ITKIO
>> Scanning dependencies of target itkTestDriver
>> [ 97%] Building CXX object
>> Code/IO/CMakeFiles/itkTestDriver.dir/itkTestDriver.o
>> Linking CXX executable ../../bin/itkTestDriver.exe
>>
>>../../bin/libITKCommon.a(itkWin32OutputWindow.o):itkWin32OutputWindow.cxx
>>:(.text
>> +0x262): undefined reference to `_GetStockObject at 4'
>> collect2: ld returned 1 exit status
>> make[2]: *** [bin/itkTestDriver.exe] Error 1
>> make[1]: *** [Code/IO/CMakeFiles/itkTestDriver.dir/all] Error 2
>> make: *** [all] Error 2
>>
>> I have looked for a solution to this and it seems that most people with
>>this
>> error are writing their own make files, rather than using cmake to
>>generate
>> them. My best guess is that there is an additional package needed by
>> cygwin, but I don't know which one. Can anybody recommend one to
>>check? Or
>> maybe somebody can recommend a better way to move my code from Linux to
>>Win?
>>
>> Thanks for your time,
>> Seth
>> +--------------------------+
>> WinXP Pro, Version 2002, SP3 Running in Virtualbox 3.2.12:
>> CYGWIN_NT-5.1
>> cmake 2.8.2
>> gcc 4.3.4
>> GNU ld 2.20.51.20100410
>> _____________________________________
>> 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.html
>>
>> 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
>>
>>
>_____________________________________
>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.html
>
>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
________________________________
Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, then delete it. Thank you.
________________________________
More information about the Insight-users
mailing list