[Insight-users] ITK 1.6 and Visual Studio .NET
Luis Ibanez
luis.ibanez at kitware.com
Sun, 01 Feb 2004 10:46:57 -0500
Hi Aaron,
Thanks for posting your CMakeCache.txt file.
I couldn't find anything wrong on it....
I'm still suspecting of the encoding of the
source files in your directory...
Could you please verify the following:
Using a Cygwin shell go to the directory
Insight/Utilities/vxl/vcl
and execute the command
od -a vcl_new.h
check if you find sequences like "cr nl"
carriage return + new line
The output should look like:
(ibanez at StarsEnd)[89] ~/src/Insight/Utilities/vxl/vcl % od -a vcl_new.h
0000000 # i f n d e f sp v c l _ n e w _
0000020 h _ cr nl # d e f i n e sp v c l _
0000040 n e w _ h _ cr nl / * cr nl sp sp f s
0000060 m cr nl * / cr nl cr nl # i n c l u d
0000100 e sp " v c l _ c o m p i l e r .
0000120 h " cr nl cr nl / / sp - - - - - - -
0000140 - - - - - - - - - - - - - sp e m
0000160 u l a t i o n cr nl # i f sp ! V C
0000200 L _ U S E _ N A T I V E _ S T L
0000220 cr nl # sp i n c l u d e sp " e m u
0000240 l a t i o n / v c l _ n e w . h
0000260 " cr nl cr nl / / sp - - - - - - - -
0000300 - - - - - - - - - - - - sp o l d
0000320 sp S G I sp C C cr nl # e l i f sp d
0000340 e f i n e d ( V C L _ S G I _ C
0000360 C _ 7 2 0 ) cr nl # sp i n c l u d
0000400 e sp < n e w . h > cr nl cr nl / / sp
0000420 - - - - - - - - - - - - - - - -
0000440 - - - - sp g c c sp w i t h sp o l
0000460 d sp l i b r a r y cr nl # e l i f
0000500 sp d e f i n e d ( V C L _ G C C
0000520 ) sp & & sp ! d e f i n e d ( G N
0000540 U _ L I B S T D C X X _ V 3 ) cr
0000560 nl # sp i n c l u d e sp < n e w .
0000600 h > cr nl cr nl / / sp - - - - - - -
0000620 - - - - - - - - - - - - - sp i s
0000640 o cr nl # e l s e cr nl # sp i n c l
0000660 u d e sp < n e w > cr nl # e n d i
0000700 f cr nl cr nl / / sp P r o v i d e sp
0000720 v c l _ d e s t r o y ( ) sp a n
0000740 d sp v c l _ c o n s t r u c t (
0000760 ) sp : cr nl # i f sp V C L _ U S E
0001000 _ N A T I V E _ S T L cr nl t e m
0001020 p l a t e sp < c l a s s sp T > cr
0001040 nl i n l i n e cr nl v o i d sp v c
0001060 l _ d e s t r o y ( T sp * p ) sp
0001100 { sp p - > ~ T ( ) ; sp } cr nl cr nl
0001120 t e m p l a t e sp < c l a s s sp
0001140 U , sp c l a s s sp V > cr nl i n l
0001160 i n e cr nl v o i d sp v c l _ c o
0001200 n s t r u c t ( U sp * sp p , sp V
0001220 sp c o n s t sp & sp v a l u e ) sp
0001240 { sp n e w sp ( p ) sp U ( v a l u
0001260 e ) ; sp } cr nl # e n d i f cr nl cr
0001300 nl # e n d i f sp / / sp v c l _ n
0001320 e w _ h _ cr nl
0001327
Please let us know what you find,
Thanks
Luis
===========================================================================
C. Aaron Cois wrote:
> Luis, I sent an email in reply to your last one with my CMakeCache.txt
> file attached, but it is awaiting authorization because the addition of
> the file increases teh size of the message past the allowed size of
> messages to the ITK users list. Hence, i am also sending the message
> and file directly to you...
>
> Luis,
>
> I am definately selecting VisualStudio 7 in CMake. Though i have
> cygwin installed on the system, I am not opening the zip file into a
> cygwin directory. I have tried various solutions: opening the zip file
> with different applications (winzip, winRAR), as well as getting the
> current ITK build directly from the cvs repository...still get the same
> issues. Attached is my CMakeCache.txt file. Thanks in advance for all
> of your help with this...its driving me nuts
>
> -Aaron
>
> Luis Ibanez wrote:
>
>>
>> Hi Aaron,
>>
>> The CVS version is built nightly on
>>
>> VisualStudio 6.0
>> VisualStudio .Net,
>> VisualStudio .Net 2003
>>
>> The errors that you are getting have the aspect
>> of end-of-line problems between Unix/Dos.
>>
>> Are you by any chance expanding the zip file
>> in a Cygwin filesystem that was configured
>> as "unix" ?
>>
>> Did you make sure when you ran CMake to
>> select "VisualStudio 7" as compiler in the
>> selection widget of the upper right corner ?
>>
>> Could you please post the CMakeCache.txt
>> file that CMake generates in your Binary
>> directory ?
>>
>>
>> Thanks
>>
>>
>> Luis
>>
>>
>> --------------------------
>> C. Aaron Cois wrote:
>>
>>> Luis,
>>>
>>> Ya, i thought of that as a possible problem, so i tried checking
>>> out th current version of ITK from cvs, but it produced the same
>>> errors. (also, i use Mozilla, so that would be the browser i
>>> downloaded the zip files with) i'll try again, using the 1.6 tag,
>>> but any other thoughts on what it could be?
>>>
>>> -Aaron
>>>
>>> Luis Ibanez wrote:
>>>
>>>>
>>>> Hi Aaron,
>>>>
>>>> We have seen this happening to other users
>>>> when they download the InsgithToolkit-1-6.zip
>>>> file using Internet Explorer. This browser
>>>> tends to corrupt the binaries it downloads.
>>>>
>>>> Please try downloading the .zip file using
>>>> a browser different than IE, or try downloading
>>>> the .tar.gz file, or try CVS updating your
>>>> checkout using the release tag "ITK-1-6".
>>>>
>>>>
>>>> Regards,
>>>>
>>>>
>>>> Luis
>>>>
>>>>
>>>> -----------------------
>>>> C. Aaron Cois wrote:
>>>>
>>>>> I have recently been trying to upgrade to ITK 1.6, and am running
>>>>> into some severely confusing problems. First, the software I am
>>>>> using is Cmake 1.8 patch 3, ITK release 1.6, and Visual Studio .NET
>>>>> (2002) on Windows XP. When i run CMake and try to build ITK, the
>>>>> itkvcl library build fails. The errors i get are varied...some
>>>>> look like the following:
>>>>>
>>>>> f:\Projects\Insight\Utilities\vxl\vcl\emulation\vcl_algobase.h(185)
>>>>> : error C2995: 'vcl_destroy' : template function has already been
>>>>> defined
>>>>> F:\Projects\Insight\Utilities\vxl\vcl\vcl_new.h(30) : see
>>>>> declaration of 'vcl_destroy'
>>>>> f:\Projects\Insight\Utilities\vxl\vcl\emulation\vcl_algobase.h(194)
>>>>> : error C2995: 'vcl_construct' : template function has already been
>>>>> defined
>>>>> F:\Projects\Insight\Utilities\vxl\vcl\vcl_new.h(34) : see
>>>>> declaration of 'vcl_construct'
>>>>>
>>>>>
>>>>> while others look like:
>>>>>
>>>>> F:\Program Files\Microsoft Visual Studio
>>>>> .NET\Vc7\include\vector(710) : error C2146: syntax error : missing
>>>>> ';' before identifier 'size_type'
>>>>> F:\Program Files\Microsoft Visual Studio
>>>>> .NET\Vc7\include\vector(711) : error C2027: use of undefined type
>>>>> 'std::allocator<T>'
>>>>> with
>>>>> [
>>>>> T=std::_Vbase
>>>>> ]
>>>>>
>>>>>
>>>>> Studying the output messages of teh build to try to determine the
>>>>> issue, i found that in a few of the builds warning messages such as
>>>>> this are appearing:
>>>>>
>>>>> vnl_vector_fixed.obj : warning LNK4221: no public symbols found;
>>>>> archive member will be inaccessible
>>>>> vnl_vector.obj : warning LNK4221: no public symbols found; archive
>>>>> member will be inaccessible
>>>>> vnl_c_vector.obj : warning LNK4221: no public symbols found;
>>>>> archive member will be inaccessible
>>>>>
>>>>>
>>>>> I imagine these warnings could have a lot to do with the problems I
>>>>> am having, but have no idea what could be causing such things.
>>>>> Before trying to build ITK I obviously rmeoved all previous
>>>>> versions of the toolkit and deleted old binaries prior to
>>>>> downloading the new version and running CMake on it. I have even
>>>>> gone so far as to uninstall and reinstall Visual Studio .NET with
>>>>> no success, thinking it could be some obscure configuration that I
>>>>> was unaware of that had gotten screwed up.
>>>>>
>>>>> Has anyone else seen any issues like this? Could anyone fathom a
>>>>> guess as to what might cause this, or some steps to take in
>>>>> diagnosing this problem?
>>>>>
>>>>> (As a side note, i was successful building the same copy of the ITK
>>>>> .6 code on a different machine running Visual Studio 6, so it is
>>>>> not the code at fault)
>>>>>
>>>>> -Aaron Cois
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Insight-users mailing list
>>>>> Insight-users at itk.org
>>>>> http://www.itk.org/mailman/listinfo/insight-users
>>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>> _______________________________________________
>>> Insight-users mailing list
>>> Insight-users at itk.org
>>> http://www.itk.org/mailman/listinfo/insight-users
>>>
>>
>>
>>
>>