[Insight-users] Installation problems
Luis Ibanez
luis.ibanez at kitware.com
Sun, 07 Mar 2004 20:08:10 -0500
Hi Prathyusha,
You shouldn't modify *any* of the
options in the ITK.dsw workspace.
CMake carefully configures every
single option for you.
Your error seems to come from attempting
to open Project .dsp files individually
instead of openning the top ITK.dsw file.
Please remove the binary directories where
you have attempted to build ITK and restart
from scratch following the instructions in
the tutorial session GettingStarted-I.pdf:
http://www.itk.org/CourseWare/Training/GettingStarted-I.pdf
Make sure that you select your correct
compiler when you run CMake.
Also make sure that you have installed
Service Pack 5 for Visual Studio 6.0.
Please let us know if you find further problems,
Thanks
Luis
--------------------------
aragondp at cs.tamu.edu wrote:
> Hi,
>
> I tried installing ITK two days back. Genrating build files using CMake gave no
> problems. Then I proceeded to check examples which also gave no problems in the
> first step where CMake generates files. But, then I tried opening workspace in
> Visual Studio 6.0 ( My machine runs on Windows-XP), when I got some errors while
> building.
>
> Today, I realised I skipped the last step while installing,i.e., building files
> in Visual Studio 6.0 after generating build files using CMake. I tried opening
> itk.dsw in VS-6.0, but while building under the heading "Configuration:
> ITKMetaIO - Win32 Debug" I got many errors, and most of these errors refer to
> some variables redefined, type redefinition, function redefinition and almost
> all of these point to STL include files.
>
> I am pasting first few lines of errors here:
>
>
> --------------------Configuration: ITKMetaIO - Win32 Debug--------------------
> Compiling...
> metaBlob.cxx
> C:Program FilesMicrosoft Visual StudioVC98INCLUDEstl_config.h(383) :
> warning C4005: 'NOMINMAX' : macro redefinition
> unknown(0) : see previous definition of 'NOMINMAX'
> C:Program FilesMicrosoft Visual StudioVC98INCLUDEstl_pair.h(50) : error
> C2953: 'pair' : template class has already been defined
> C:Program FilesMicrosoft Visual StudioVC98INCLUDEstl_pair.h(50) :
> see declaration of 'pair'
> C:Program FilesMicrosoft Visual StudioVC98INCLUDEstl_pair.h(56) : error
> C2995: '==' : template function has already been defined
> C:Program FilesMicrosoft Visual StudioVC98INCLUDEutility(29) : see
> declaration of '=='
> C:Program FilesMicrosoft Visual StudioVC98INCLUDEstl_pair.h(63) : error
> C2995: '<' : template function has already been defined
> C:Program FilesMicrosoft Visual StudioVC98INCLUDEutility(37) : see
> declaration of '<'
> -------------------------------------------------------------------------------
>
> I tried different ways like deleting previous build files, building from scratch
> again, deleting everything and building with BUILD_TESTING set to OFF etc., I
> saw on net that setting run-time library in Project Settings to MULTITHREADED
> DLL helps as opposed to default SINGLE THREADED DLL and tried changing this
> option also. But, I got the same list of about 240 errors everytime. I think
> there should be some option that eliminates all these errors.
>
> If someone has faced this problem before, or if you have any idea regarding
> this, can you please help me with this as I need to get ITK running soon.
>
> Thanks in advance,
> Prathyusha.
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>