[Fwd: Re: [Insight-users] Re: Problem building 2.4 on .Net 2003]
Luis Ibanez
luis.ibanez at kitware.com
Tue Dec 6 07:51:05 EST 2005
Hi Vicente,
Are you sure that your .txx are not marked as "compilable" ?
One easy way to verify it, is to go to the VS IDE and in
any project select the folder of "sources", then right-click
on any of the .txx files and check if "compile" appears as
an option.
BTW: The best way of getting syntax highlighting for .txx
files under Windows is to use:
1) Vim http://www.vim.org
or
2) Emacs
You can setup Vi as the default editor for Visual Studio.
You don't need to uninstall previous versions of ITK, as long
as you are sure that you are not mixing their directories
in your projects.
---
Important Question:
1) When you build ITK 1.8 or 2.0.1 in your system,
Did you experienced any similar problem ?
2) When you build ITK 1.8 and 2.0.1 in your system,
Did you used the same Version of CMake that you
are using now for configuring ITK 2.4 ?
(please do a formal verification, because the
answer to this question is quite relevant.)
If you were using a different version of CMake,
then, could you please (in a fresh build) configure
ITK 2.0.1 with the CMake that you are using for
ITK 2.4 and try to build it ?
Please let us know,
Thanks
Luis
---------------------
Vicente Grau wrote:
> Hi Luis,
>
> I don't think I have ever manually added ITK directories to the include
> list. The only thing I recall to have done manually in the past is
> modifying the registry to allow syntax highlighting on .txx files. It
> seems that this made VisualStudio to compile these files too, and cause
> another error when installing the library. I corrected this one by going
> back to the registry and undoing the changes.
> I do have ITK 1.8.0 and 2.0.1 installed in my machine. Is there a way to
> uninstall them? Just deleting the files?
>
> Vicente
>
> Luis Ibanez wrote:
>
>>
>>
>> Hi Vicente,
>>
>> Thanks for seding the new file.
>>
>> This is quite useful.
>>
>> As you can see, the file defines
>>
>>
>> #define VCL_USE_NATIVE_STL 1
>>
>>
>> and therefore it shouldn't be trying to
>> use the files in
>>
>> vxl/vcl/emulation
>>
>>
>> ----
>>
>>
>> One possible reason for this error is if you have
>> other copies of ITK installed in your system, and
>> you have ever *MANUALLY* added the ITK directories
>> to the list of directories that VisualStudio searches
>> for include files. This is usually done (unecessarly)
>> by going to the "Project/Properties/C-C++" menu and
>> adding there directories.
>>
>> If you have any directories there (in the VS IDE),
>> from other ITK source trees, you should get rid of
>> them.
>>
>>
>> Also, some questions:
>>
>>
>>
>> A) Do you have other versions of ITK
>> installed in your system ?
>>
>> B) Do you have other versions of VXL (pure VXL)
>> installed in your system ?
>>
>>
>>
>> Please let us know what you find.
>>
>>
>>
>> Thanks
>>
>>
>>
>> Luis
>>
>>
>>
>>
>> ---------------------
>> Vicente Grau wrote:
>>
>>> Sorry about that, this is the file generated by CMake directly from
>>> the files downloaded from the itk webpage.
>>>
>>> Vicente
>>>
>>> #ifndef vcl_config_manual_h_
>>> #define vcl_config_manual_h_
>>> //:
>>> // \file
>>> // This file either is or was generated from vcl_config_manual.h.in
>>> // \brief manual options
>>>
>>>
>>> //: VCL_USE_NATIVE_STL
>>> // Whether to use the compiler's STL.
>>> #define VCL_USE_NATIVE_STL 1
>>>
>>>
>>> //: VCL_USE_NATIVE_COMPLEX
>>> // Whether to use the compiler's complex type.
>>> #define VCL_USE_NATIVE_COMPLEX 1
>>> // Used to be set from VCL_USE_NATIVE_STL, which worked fine.
>>> // If you don't use the stl flag's setting you're on your own.
>>> // #define VCL_USE_NATIVE_COMPLEX VCL_USE_NATIVE_STL
>>>
>>>
>>> //: VCL_USE_IMPLICIT_TEMPLATES
>>> // Whether to use implicit template instantiation.
>>> #define VCL_USE_IMPLICIT_TEMPLATES 1
>>>
>>> #endif // vcl_config_manual_h_
>>>
>>>
>>> Luis Ibanez wrote:
>>>
>>>>
>>>>
>>>> Hi Vicente,
>>>>
>>>> Thanks for sending the file...
>>>>
>>>> but...
>>>>
>>>> What we need is the file *BEFORE* you made any local fixes.
>>>>
>>>>
>>>> Please restore the original code and send us the generated
>>>> file:
>>>>
>>>>
>>>>
>>>> ITK-Binary-Dir/
>>>> Utilities/vxl/vcl/
>>>> vcl_config_manual.h
>>>>
>>>>
>>>>
>>>>
>>>> Thanks
>>>>
>>>>
>>>>
>>>> Luis
>>>>
>>>>
>>>>
>>>> -----------------------------------------------------------
>>>> Vicente Grau wrote:
>>>>
>>>>>
>>>>> This is the file. I don't know if it makes any difference, but this
>>>>> is after I was able to fix the problem by commenting out the lines in
>>>>>
>>>>> vxl/vcl/CMakeLists.txt where the installation tried to include the
>>>>> emulation files. After that my installation went fine.
>>>>>
>>>>> Vicente
>>>>>
>>>>> #ifndef vcl_config_manual_h_
>>>>> #define vcl_config_manual_h_
>>>>> //:
>>>>> // \file
>>>>> // This file either is or was generated from vcl_config_manual.h.in
>>>>> // \brief manual options
>>>>>
>>>>>
>>>>> //: VCL_USE_NATIVE_STL
>>>>> // Whether to use the compiler's STL.
>>>>> #define VCL_USE_NATIVE_STL @VCL_USE_NATIVE_STL@
>>>>>
>>>>>
>>>>> //: VCL_USE_NATIVE_COMPLEX
>>>>> // Whether to use the compiler's complex type.
>>>>> #define VCL_USE_NATIVE_COMPLEX @VCL_USE_NATIVE_COMPLEX@
>>>>> // Used to be set from VCL_USE_NATIVE_STL, which worked fine.
>>>>> // If you don't use the stl flag's setting you're on your own.
>>>>> // #define VCL_USE_NATIVE_COMPLEX VCL_USE_NATIVE_STL
>>>>>
>>>>>
>>>>> //: VCL_USE_IMPLICIT_TEMPLATES
>>>>> // Whether to use implicit template instantiation.
>>>>> #define VCL_USE_IMPLICIT_TEMPLATES @VCL_USE_IMPLICIT_TEMPLATES@
>>>>>
>>>>> #endif // vcl_config_manual_h_
>>>>>
>>>>>
>>>>> Luis Ibanez wrote:
>>>>>
>>>>>>
>>>>>>
>>>>>> Hi Vicente, John,
>>>>>>
>>>>>>
>>>>>> Thansk for your feedback.
>>>>>>
>>>>>>
>>>>>> I'm not being able reproduce the problem that you reported.
>>>>>>
>>>>>>
>>>>>> The downloaded .zip file build fine for me with
>>>>>> Visual Studio 2003, both in Release and Debug.
>>>>>>
>>>>>>
>>>>>>
>>>>>> It seems that CMake is configuring your local build in a
>>>>>> different way.
>>>>>>
>>>>>>
>>>>>> Could you two, please, post to the list the following file
>>>>>> from your build:
>>>>>>
>>>>>> ITK-Binary-Dir/
>>>>>> Utilities/vxl/vcl/
>>>>>> vcl_config_manual.h
>>>>>>
>>>>>>
>>>>>> This file is generated by CMake at configuration time, using
>>>>>> as source the file in
>>>>>>
>>>>>> Insight/
>>>>>> Utilities/vxl/vcl/
>>>>>> vcl_config_manual.h.in
>>>>>>
>>>>>>
>>>>>> In particular we want to check what CMake marked in the
>>>>>>
>>>>>>
>>>>>> #define VCL_USE_NATIVE_STL
>>>>>>
>>>>>>
>>>>>>
>>>>>> Please post the vcl_config_manual.h file to the list so
>>>>>> we can track what is going wrong with your installations.
>>>>>>
>>>>>>
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Luis
>>>>>>
>>>>>>
>>>>>>
>>>>>> -------------------
>>>>>> Vicente Grau wrote:
>>>>>>
>>>>>> > I also had a problem when installing ITK 2.4 on .Net 2003. The
>>>>>> compiler was getting a conflict when trying to install both vcl
>>>>>> "emulation" and "iso" files. Sorry I didn't save the exact error
>>>>>> messages. I solved it using this fix I found in the list:
>>>>>> >
>>>>>> > http://www.itk.org/pipermail/insight-users/2004-April/008270.html
>>>>>> >
>>>>>> > I just thought this might have something to do with John's
>>>>>> problem, as it is also related to compiling vcl. In my case, I got
>>>>>> ITK 2.4 from the ITK download page, file InsightToolkit-2.4.0.zip.
>>>>>> >
>>>>>> > Vicente
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> > insight-users-request at itk.org wrote:
>>>>>> >
>>>>>> > ------------------------------
>>>>>> >
>>>>>> > Hi John,
>>>>>> >
>>>>>> > How did you get the sources of ITK 2.4 ?
>>>>>> >
>>>>>> > a) CVS ?
>>>>>> > b) Kitware ftp ?
>>>>>> > c) ITK Download page (then Sourceforge) ?
>>>>>> >
>>>>>> >
>>>>>> > Also, if you used (b) or (c), what file
>>>>>> > did you get:
>>>>>> >
>>>>>> >
>>>>>> > 1) InsightToolkit-2.4.0.tgz ?
>>>>>> > 2) InsightToolkit-2.4.0.zip ?
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> > Please let us know
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> > Thanks
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> > Luis
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> > ------------------------
>>>>>> > John Tourtellott wrote:
>>>>>> >
>>>>>> >>
>>>>>> >> I downloaded version 2.4 and tried building on Windows XP using
>>>>>> VS .Net 2003, but got a bunch of errors in the Utilities
>>>>>> directory. I apologize for the long post, but I thought I should
>>>>>> include all of the error messages below. Also, FYI, I used CMake
>>>>>> 2.0 (patch 6) to make the project. Any idea what I'm doing wrong?
>>>>>> >>
>>>>>> >> Thanks for the help,
>>>>>> >> john
>>>>>> >>
>>>>>> >>
>>>>>> >> c:\Documents and Settings\Compaq_Owner\My
>>>>>> Documents\InsightToolkit-2.4.0\Utilities\vxl\vcl\emulation\vcl_alloc.h(512):
>>>>>> error C2039: 'alloc' : is not a member of 'std'
>>>>>> >> c:\Documents and Settings\Compaq_Owner\My
>>>>>> Documents\InsightToolkit-2.4.0\Utilities\vxl\vcl\emulation\vcl_tree.h(836):
>>>>>> error C2059: syntax error : ')'
>>>>>> >> c:\Documents and Settings\Compaq_Owner\My
>>>>>> Documents\InsightToolkit-2.4.0\Utilities\vxl\vcl\emulation\vcl_tree.h(950):
>>>>>> error C2059: syntax error : ')'
>>>>>> >> c:\Documents and Settings\Compaq_Owner\My
>>>>>> Documents\InsightToolkit-2.4.0\Utilities\vxl\vcl\emulation\vcl_tree.h(980):
>>>>>> error C2059: syntax error : 'const'
>>>>>> >> c:\Documents and Settings\Compaq_Owner\My
>>>>>> Documents\InsightToolkit-2.4.0\Utilities\vxl\vcl\emulation\vcl_tree.h(1019):
>>>>>> error C2059: syntax error : 'const'
>>>>>> >> c:\Documents and Settings\Compaq_Owner\My
>>>>>> Documents\InsightToolkit-2.4.0\Utilities\vxl\vcl\emulation\vcl_tree.h(865):
>>>>>> error C2065: 'Alloc' : undeclared identifier
>>>>>> >> c:\Documents and Settings\Compaq_Owner\My
>>>>>> Documents\InsightToolkit-2.4.0\Utilities\vxl\vcl\emulation\vcl_tree.h(865):
>>>>>> error C2065: 'Compare' : undeclared identifier
>>>>>> >> c:\Documents and Settings\Compaq_Owner\My
>>>>>> Documents\InsightToolkit-2.4.0\Utilities\vxl\vcl\emulation\vcl_tree.h(965):
>>>>>> error C2065: 'k' : undeclared identifier
>>>>>> >> c:\Documents and Settings\Compaq_Owner\My
>>>>>> Documents\InsightToolkit-2.4.0\Utilities\vxl\vcl\emulation\vcl_tree.h(865):
>>>>>> error C2065: 'Key' : undeclared identifier
>>>>>> >> c:\Documents and Settings\Compaq_Owner\My
>>>>>> Documents\InsightToolkit-2.4.0\Utilities\vxl\vcl\
>>>>>>
>>>>>> ... SNIP ...
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> 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
>>>
>>>
>>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
>
More information about the Insight-users
mailing list