AW: AW: AW: [Insight-users] Compiling ITK with MIPSPro (CC) compiler under IRIX 6.5

Bill Hoffman bill.hoffman at kitware.com
Tue Nov 6 09:30:35 EST 2001


I am fairly certain that this will work.  We build that each night with no problems.
It must be that some file is not being re-built.
Can you try from a clean directory?


mkdir InsightBuild
setenv CXXFLAGS -LANG:std
cmake ../Insight



At 04:13 PM 11/6/2001 +0100, Nils Hanßen wrote:
>Hello Bill,
>
>unfortunately, it doesn't work either !
>
>I just tried it and i get the same error as before:
>
>---
>/home/hanssen/InsightCC/Code/Numerics/vxl/vnl/vnl_numeric_trai
>ts.h, Line = 30
>   The expression must have integral or enum type.
>
>       static const T zero VCL_STATIC_CONST_INIT_FLOAT(0.0);
>---
>
>Any more ideas ?
>
>Thanks very much !
>
>Nils
>
>
>
>> OK, I know what is wrong.
>>
>> You need to do this :
>>
>> (export CXXFLAGS=-LANG:std; cmake ../Insight)
>>
>> You have to set CXXFLAGS before you run cmake.   The numerics
>> code configures itself
>> based on the capabilities of the compiler, so you have to
>> specify the -LANG:std
>> before configure is run.
>>
>> You should not edit the Makefiles directly.
>>
>> -Bill
>>
>>
>> At 03:18 PM 11/6/2001 +0100, Nils Hanßen wrote:
>> >Yes, i use CMake right from the beginning and it works fine
>> (after some
>> >problems with the environment variables $CC, $CXX and so on...).
>> >Actually, i added "-LANG:std" to the command line, but
>> another error occured
>> >(i wrote this in the previos mail). There was an error in
>> >/home/hanssen/InsightCC/Code/Numerics/vxl/vnl/vnl_numeric_tra
>> its.h, Line =
>> >30
>> >
>> >-snippet(begin)-----------------
>> >
>> >  The expression must have integral or enum type.
>> >
>> >     static const T zero VCL_STATIC_CONST_INIT_FLOAT(0.0);
>> >-snippet(end)-------------------
>> >
>> >First, i used the version from the tarballs. Now i am using
>> the 2001-10-18
>> >version, because i checked the dashboard and this version
>> reported no errors
>> >for CC. Should i switch to a newer version ? Which one is
>> supposed to be the
>> >best for CC right now ?
>> >
>> >Thanks
>> >Nils
>> >
>> >
>> >
>> >> Nils,
>> >>
>> >> You may need to add the "-LANG:std" option
>> >> to your compiler's command line.
>> >>
>> >> However you shouldn't have to do this by
>> >> hand...
>> >>
>> >> Are you using CMake to configure and
>> >> build ITK ?
>> >>
>> >> That's the easiest way to get things in order.
>> >> Buiding CMake itself takes an additional step
>> >> but that will save you a lot of time of struggling
>> >> with makefiles.
>> >>
>> >> If you are already using CMake, you may want
>> >> to verify that "-LANG:std" is among the options
>> >> in CXX_FLAGS on the main CMakeList.txt
>> >> file located in the "Insight" root directory.
>> >>
>> >> Please let us know if that helps.
>> >>
>> >>
>> >> BTW:  What version of ITK are you using ?
>> >> is that one of the tarballs or are you
>> >> downloading it from the CVS repository ?
>> >>
>> >>
>> >>
>> >> Thanks
>> >>
>> >>
>> >>
>> >> Luis
>> >>
>> >>
>> >>
>> >>
>> >> ------------
>> >>
>> >> On Tue, 6 Nov 2001, Nils Hanßen wrote:
>> >>
>> >> > Hi Luis,
>> >> >
>> >> > thank you very much for your help !
>> >> >
>> >> > The problematic file (where <cstring> is included) is
>> >> > ./Code/Numerics/vxl/vcl/iso/vcl_cstring.h.
>> >> > When i replace <cstring> with <string.h>, i get the
>> >> following error message:
>> >> >
>> >> >
>> >> --------------------------------------------------------------
>> >> --------------
>> >> > ------
>> >> > [...]
>> >> > CC -g -O2  -I/home/hanssen/InsightCC/Code/Numerics/vxl
>> >> -I/home/hanssen/Insig
>> >> > htCC -I/home/hanssen/InsightCC/Code/Numerics
>> >> -I/home/hanssen/InsightCC/Code/
>> >> > Common -I/home/hanssen/InsightCC/Code/Numerics/vxl
>> >> -I/home/hanssen/InsightCC
>> >> > /Code/Numerics/vxl
>> >> -I/home/hanssen/InsightCC/Code/Numerics/vxl/vcl -I/home/h
>> >> > anssen/InsightCC/Code/Numerics/vxl/vcl
>> >> -I/home/hanssen/InsightCC/Utilities/p
>> >> > ng -I/home/hanssen/InsightCC/Utilities/zlib   -c
>> >> > vnl/Templates/vcl_vector+vnl_double_2-.cxx -o
>> >> > vnl/Templates/vcl_vector+vnl_double_2-.o
>> >> > cc-1035 CC: WARNING File = /usr/include/CC/iosfwd, Line = 18
>> >> >   #error directive:  This header file requires the
>> -LANG:std option
>> >> >
>> >> >   #error This header file requires the -LANG:std option
>> >> >    ^
>> >> >
>> >> > cc-1070 CC: ERROR File = /usr/include/CC/string, Line = 2172
>> >> >   The indicated type is incomplete.
>> >> >
>> >> >     char __f = __os.fill();
>> >> >                ^
>> >> >
>> >> > cc-1367 CC: ERROR File = /usr/include/CC/string, Line = 2175
>> >> >   A pointer to an incomplete class type is not allowed.
>> >> >
>> >> >     for (__i = 0; __i < __n; __i++) __buf->sputc(__f);
>> >> > [...]                                    ^
>> >> >
>> >> --------------------------------------------------------------
>> >> --------------
>> >> > ------
>> >> >
>> >> >
>> >> > If i add "-LANG:std" to the command line of CC, i get this
>> >> error message:
>> >> >
>> >> >
>> >> --------------------------------------------------------------
>> >> --------------
>> >> > ------
>> >> > [...]
>> >> > CC -g -O2 -LANG:std
>> >> -I/home/hanssen/InsightCC/Code/Numerics/vxl -I/home/han
>> >> > ssen/InsightCC -I/home/hanssen/InsightCC/Code/Numerics
>> >> -I/home/hanssen/Insig
>> >> > htCC/Code/Common
>> >> -I/home/hanssen/InsightCC/Code/Numerics/vxl -I/home/hanssen
>> >> > /InsightCC/Code/Numerics/vxl
>> >> -I/home/hanssen/InsightCC/Code/Numerics/vxl/vcl
>> >> >  -I/home/hanssen/InsightCC/Code/Numerics/vxl/vcl
>> >> -I/home/hanssen/InsightCC/U
>> >> > tilities/png -I/home/hanssen/InsightCC/Utilities/zlib   -c
>> >> > vnl/Templates/vcl_vector+vnl_double_2-.cxx -o
>> >> > vnl/Templates/vcl_vector+vnl_double_2-.o
>> >> > cc-3315 CC: ERROR File =
>> >> >
>> >> /home/hanssen/InsightCC/Code/Numerics/vxl/vnl/vnl_numeric_trai
>> >> ts.h, Line =
>> >> > 30
>> >> >   The expression must have integral or enum type.
>> >> >
>> >> >     static const T zero VCL_STATIC_CONST_INIT_FLOAT(0.0);
>> >> >                         ^
>> >> >
>> >> > cc-3315 CC: ERROR File =
>> >> >
>> >> /home/hanssen/InsightCC/Code/Numerics/vxl/vnl/vnl_numeric_trai
>> >> ts.h, Line =
>> >> > 31
>> >> >   The expression must have integral or enum type.
>> >> >
>> >> >     static const T one VCL_STATIC_CONST_INIT_FLOAT(1.0);
>> >> >                        ^
>> >> >
>> >> > cc-1295 CC: ERROR File =
>> >> >
>> >> /home/hanssen/InsightCC/Code/Numerics/vxl/vnl/vnl_numeric_trai
>> >> ts.h, Line =
>> >> > 167
>> >> >   The indicated data member initializer is not allowed.
>> >> >
>> >> >     static const float zero VCL_STATIC_CONST_INIT_FLOAT(0.0F);
>> >> >                             ^
>> >> >
>> >> > cc-1295 CC: ERROR File =
>> >> >
>> >> /home/hanssen/InsightCC/Code/Numerics/vxl/vnl/vnl_numeric_trai
>> >> ts.h, Line =
>> >> > 168
>> >> >   The indicated data member initializer is not allowed.
>> >> >
>> >> >     static const float one VCL_STATIC_CONST_INIT_FLOAT(1.0F);
>> >> >                            ^
>> >> >
>> >> > cc-1295 CC: ERROR File =
>> >> >
>> >> /home/hanssen/InsightCC/Code/Numerics/vxl/vnl/vnl_numeric_trai
>> >> ts.h, Line =
>> >> > 177
>> >> >   The indicated data member initializer is not allowed.
>> >> >
>> >> >     static const double zero VCL_STATIC_CONST_INIT_FLOAT(0.0);
>> >> >                              ^
>> >> >
>> >> > cc-1295 CC: ERROR File =
>> >> >
>> >> /home/hanssen/InsightCC/Code/Numerics/vxl/vnl/vnl_numeric_trai
>> >> ts.h, Line =
>> >> > 178
>> >> >   The indicated data member initializer is not allowed.
>> >> >
>> >> >     static const double one VCL_STATIC_CONST_INIT_FLOAT(1.0);
>> >> >                             ^
>> >> >
>> >> > cc-1295 CC: ERROR File =
>> >> >
>> >> /home/hanssen/InsightCC/Code/Numerics/vxl/vnl/vnl_numeric_trai
>> >> ts.h, Line =
>> >> > 187
>> >> >   The indicated data member initializer is not allowed.
>> >> >
>> >> >     static const long double zero
>> VCL_STATIC_CONST_INIT_FLOAT(0.0);
>> >> >                                   ^
>> >> >
>> >> > cc-1295 CC: ERROR File =
>> >> >
>> >> /home/hanssen/InsightCC/Code/Numerics/vxl/vnl/vnl_numeric_trai
>> >> ts.h, Line =
>> >> > 188
>> >> >   The indicated data member initializer is not allowed.
>> >> >
>> >> >     static const long double one
>> VCL_STATIC_CONST_INIT_FLOAT(1.0);
>> >> >                                  ^
>> >> >
>> >> > 8 errors detected in the compilation of
>> >> > "vnl/Templates/vcl_vector+vnl_double_2-.cxx".
>> >> > *** Error code 2 (bu21)
>> >> > *** Error code 1 (bu21)
>> >> > *** Error code 1 (bu21)
>> >> > *** Error code 1 (bu21)
>> >> >
>> >> > [...]
>> >> >
>> >> --------------------------------------------------------------
>> >> --------------
>> >> > ------
>> >> >
>> >> > Do you think there is a problem in my configuration ?
>> >> >
>> >> > Regards
>> >> > Nils
>> >> >
>> >> > > -----Ursprüngliche Nachricht-----
>> >> > > Von: insight-users-admin at public.kitware.com
>> >> > > [mailto:insight-users-admin at public.kitware.com]Im
>> Auftrag von Luis
>> >> > > Ibanez
>> >> > > Gesendet: Dienstag, 6. November 2001 00:49
>> >> > > An: Nils Hanßen
>> >> > > Cc: insight-users at public.kitware.com
>> >> > > Betreff: Re: [Insight-users] Compiling ITK with MIPSPro
>> >> (CC) compiler
>> >> > > under IRIX 6.5
>> >> > >
>> >> > >
>> >> > > Hi Nils,
>> >> > >
>> >> > > You can replace <cstring> by <string.h> which
>> >> > > is the C-Like equivalent.
>> >> > >
>> >> > > Could you please signal which file was including
>> >> > > <cstring> so we can fix that in the repository.
>> >> > > We are building ITK on SGI's so that should work
>> >> > > pretty well.
>> >> > >
>> >> > > Please let us know if this include change works
>> >> > > for you or not.
>> >> > >
>> >> > >
>> >> > > Thanks
>> >> > >
>> >> > >
>> >> > >
>> >> > > Luis
>> >> > >
>> >> > > ----------------------------------
>> >> > >
>> >> > >
>> >> > > > Nils Hanßen wrote:
>> >> > > >
>> >> > > > Hi all,
>> >> > > >
>> >> > > > i want to compile ITK with the MIPSPro compiler (version
>> >> > > 7.3.1.2m) but
>> >> > > > have some problems with a missing include file (i dont
>> >> know if there
>> >> > > > will be more problems with other files...).
>> >> > > >
>> >> > > > However, CC tries to include the <cstring> header file
>> >> > > which seems to
>> >> > > > be gcc-specific, since it cannot be found in the
>> >> include-directories
>> >> > > > of CC.
>> >> > > >
>> >> > > > Does anyone has successfully compiled ITK with CC or
>> >> has an idea how
>> >> > > > in can get or create a working <cstring> file for CC ?
>> >> > > >
>> >> > > > Thank you very much in advance !
>> >> > > >
>> >> > > > Regards,
>> >> > > > Nils
>> >> > > >
>> >> > > > ----------------------------------
>> >> > > > Nils Hanßen
>> >> > > > Surgical Simulation and Navigation
>> >> > > > research center c a e s a r
>> >> > > > Friedensplatz 16
>> >> > > > 53111 Bonn
>> >> > > > fon: +49-228-9656-247
>> >> > > > fax: +49-228-9656-111
>> >> > > > http://www.caesar.de/ssn
>> >> > > >
>> >> > > >
>> >> > >
>> >> > > --
>> >> > > Luis Ibanez                                      CB#:   7060
>> >> > > Research Assistan Professor                      phone:
>> >> (919) 843 5436
>> >> > > Division of Neurosurgery                         fax:
>> >> (919) 966 6627
>> >> > > University of North Carolina at Chapel Hill      email:
>> >> > > ibanez at cs.unc.edu
>> >> > > Chapel Hill, NC 27599-7060
>> >> > > http://www.cs.unc.edu/~ibanez
>> >> > > _______________________________________________
>> >> > > Insight-users mailing list
>> >> > > Insight-users at public.kitware.com
>> >> > > http://public.kitware.com/mailman/listinfo/insight-users
>> >> > >
>> >> >
>> >> > _______________________________________________
>> >> > Insight-users mailing list
>> >> > Insight-users at public.kitware.com
>> >> > http://public.kitware.com/mailman/listinfo/insight-users
>> >> >
>> >>
>> >> --
>> >> Luis Ibanez                                      CB#:   7060
>> >> Research Assistan Professor                      phone:
>> (919) 843 5436
>> >> Division of Neurosurgery                         fax:
>> (919) 966 6627
>> >> University of North Carolina at Chapel Hill      email:
>> >> ibanez at cs.unc.edu
>> >> Chapel Hill, NC 27599-7060
>> >> http://www.cs.unc.edu/~ibanez
>> >>
>> >>
>> >> _______________________________________________
>> >> Insight-users mailing list
>> >> Insight-users at public.kitware.com
>> >> http://public.kitware.com/mailman/listinfo/insight-users
>> >>
>> >
>> >_______________________________________________
>> >Insight-users mailing list
>> >Insight-users at public.kitware.com
>> >http://public.kitware.com/mailman/listinfo/insight-users
>>
>> _______________________________________________
>> Insight-users mailing list
>> Insight-users at public.kitware.com
>> http://public.kitware.com/mailman/listinfo/insight-users
>>




More information about the Insight-users mailing list