Fw: [vtkusers] building vtk.4.0 on HP

Liya Chernyakova liya.chernyakova at staarinc.com
Tue Feb 26 08:20:34 EST 2002


   I've managed to resolve vtkDataArray.cxx compiler errors. The next error I am getting is in Critical Section files:
   
  Error 403: "/branch/home/held/vtk_40/VTK/Common/vtkCriticalSection.cxx", line
      79 # Undeclared variable 'pthread_mutexattr_default'. Perhaps
      'pthread_mutexattr_destroy' as in "int pthread_mutexattr_destroy(int *)"
      ["/usr/include/sys/pthread.h", line 581] was intended.
        pthread_mutex_init(&(this->CritSec), pthread_mutexattr_default);
  in cmake -i I turned use of hp threads on. Is this correct, should I change any other settings? When hp-threads were off the compiler would say, it cannot find <thread.h> file, this file is also present in system -- do I need to do something to include it?
   
  Thank you,
  Liya Chernyakova
  Simulation Technology & Applied Research, Inc.
  11520 N. Port Washington Rd.
  Suite 101 B
  Mequon, WI  53092
  Phone: (262) 240-0291 ext.104
  FAX: (262) 240-0294
  e-mail: liya.chernyakova at staarinc.com
  web: http://www.staarinc.com

    ----- Original Message ----- 
    From: William A. Hoffman 
    To: Liya Chernyakova 
    Sent: Friday, February 22, 2002 2:25 PM
    Subject: Re: [vtkusers] building vtk.4.0 on HP

    Well, I guess VTK will not compile with that compiler.
    You might want to try and see if there are any options to the compiler
    that change the way it instantiates templates, and try all of them one
    at a time.  You might get lucky.   I will take this up with the developers
    list, but it may be a while before it gets fixed.

    -Bill


    At 02:33 PM 2/22/2002 -0600, you wrote:

      This file compiled with no problem. testhp.o file was created.
      Liya Chernyakova
      Simulation Technology & Applied Research, Inc.
      11520 N. Port Washington Rd.
      Suite 101 B
      Mequon, WI  53092
      Phone: (262) 240-0291 ext.104
      FAX: (262) 240-0294
      e-mail: liya.chernyakova at staarinc.com
      web: http://www.staarinc.com

        ----- Original Message ----- 
        From: William A. Hoffman 
        To: Liya Chernyakova 
        Sent: Friday, February 22, 2002 2:11 PM
        Subject: Re: [vtkusers] building vtk.4.0 on HP

        Can you try the attached file and see if it works?


        At 02:08 PM 2/22/2002 -0600, you wrote:

          This is the command output.
          aCC --version
           HP ANSI C++ B3910B A.03.33
          hawkeye 25: uname -a
          HP-UX hawkeye B.11.00 U 9000/785 2007657043 unlimited-user license
          The tesfile does not compile. The errors look similar:
           

          hawkeye 26: aCC -c testhp.cxx
          Error 403: "testhp.cxx", line 21 # Undeclared variable 'CopyTuples'. Perhaps
              'CopyTuples' as in "void CopyTuples(#1 *,#2 *,int,int *)" ["testhp.cxx",
              line 2] was intended.
                CopyTuples(input, (VTK_TT *)v, GetNumberOfComponents(), ptIds);
                ^^^^^^^^^^
          Error 556: "testhp.cxx", line 28 # Unable to generate specialization "void
              CopyTuples1<float>(float *,vtkDataArray *,int *)" due to errors during
              generation.
                CopyTuples1((float*)0, (vtkDataArray*)0, (int*) v);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          Error 556: "testhp.cxx", line 28 # Unable to generate specialization "void
              CopyTuples1<float>(float *,vtkDataArray *,int *)" due to errors during
              generation.
                CopyTuples1((float*)0, (vtkDataArray*)0, (int*) v);
           
           
          Liya Chernyakova
          Simulation Technology & Applied Research, Inc.
          11520 N. Port Washington Rd.
          Suite 101 B
          Mequon, WI  53092
          Phone: (262) 240-0291 ext.104
          FAX: (262) 240-0294
          e-mail: liya.chernyakova at staarinc.com
          web: http://www.staarinc.com

            ----- Original Message ----- 
            From: William A. Hoffman 
            To: Liya Chernyakova 
            Sent: Friday, February 22, 2002 1:41 PM
            Subject: Re: [vtkusers] building vtk.4.0 on HP

            Here is what we have:

            bash-2.04$ aCC --version
            aCC: HP ANSI C++ B3910B A.01.21
            bash-2.04$ uname -a
            HP-UX destiny B.10.20 A 9000/785 2001165567 two-user license

            What do you get with those commands?

            It would seem that the compiler you have does not like the templates we are
            using in VTK.


            I am attaching a small test file, could you try and compile it.
            aCC -c testhp.cxx


            -Bill


            At 01:41 PM 2/22/2002 -0600, you wrote:

              It also looks like I am using Hp aC++ A.03.27 release with RogueWave Standard C++ Library 2.2.1
               
              Liya Chernyakova
              Simulation Technology & Applied Research, Inc.
              11520 N. Port Washington Rd.
              Suite 101 B
              Mequon, WI  53092
              Phone: (262) 240-0291 ext.104
              FAX: (262) 240-0294
              e-mail: liya.chernyakova at staarinc.com
              web: http://www.staarinc.com

                ----- Original Message ----- 
                From: William A. Hoffman 
                To: Liya Chernyakova 
                Sent: Friday, February 22, 2002 12:40 PM
                Subject: Re: [vtkusers] building vtk.4.0 on HP

                What version of HPUX / aCC are you using?

                -Bill

                At 12:48 PM 2/22/2002 -0600, you wrote:

                  You were right! I can run cmake -i and get as far as to start compiling VTK/Common. But here I get a bunch of compiled errors which is very strange, becouse I am using the release version.
                   
                  below are the errors. I can try to fix them manually, but I need help with this. It also looks like the problem is with compiling the template function(class?) CopyTuples.
                   
                  These are the errors I am getting:
                   
                  Error 403: "/branch/home/held/vtk_40/VTK/Common/vtkDataArray.cxx", line 673 # Undeclared variable 'CopyTuples'.
                      Perhaps 'CopyTuples' as in "void CopyTuples(#1 *,#2 *,int,vtkIdList *)"
                      ["/branch/home/held/vtk_40/VTK/Common/vtkDataArray.cxx", line 655] was intended.
                          vtkTemplateMacro4(CopyTuples, input, (VTK_TT *)output->GetVoidPo
                          ^^^^^^^^^^^^^^^^^
                  Error 403: "/branch/home/held/vtk_40/VTK/Common/vtkDataArray.cxx", line 673 # Undeclared variable 'CopyTuples'.
                      Perhaps 'CopyTuples' as in "void CopyTuples(#1 *,#2 *,int,vtkIdList *)"
                      ["/branch/home/held/vtk_40/VTK/Common/vtkDataArray.cxx", line 655] was intended.
                          vtkTemplateMacro4(CopyTuples, input, (VTK_TT *)output->GetVoidPo
                          ^^^^^^^^^^^^^^^^^
                  Error 403: "/branch/home/held/vtk_40/VTK/Common/vtkDataArray.cxx", line 673 # Undeclared variable 'CopyTuples'.
                      Perhaps 'CopyTuples' as in "void CopyTuples(#1 *,#2 *,int,vtkIdList *)"
                      ["/branch/home/held/vtk_40/VTK/Common/vtkDataArray.cxx", line 655] was intended.
                          vtkTemplateMacro4(CopyTuples, input, (VTK_TT *)output->GetVoidPo
                          ^^^^^^^^^^^^^^^^^
                  Error 403: "/branch/home/held/vtk_40/VTK/Common/vtkDataArray.cxx", line 673 # Undeclared variable 'CopyTuples'.
                      Perhaps 'CopyTuples' as in "void CopyTuples(#1 *,#2 *,int,vtkIdList *)"
                      ["/branch/home/held/vtk_40/VTK/Common/vtkDataArray.cxx", line 655] was intended.
                          vtkTemplateMacro4(CopyTuples, input, (VTK_TT *)output->GetVoidPo
                          ^^^^^^^^^^^^^^^^^
                  Error 403: "/branch/home/held/vtk_40/VTK/Common/vtkDataArray.cxx", line 673 # Undeclared variable 'CopyTuples'.
                      Perhaps 'CopyTuples' as in "void CopyTuples(#1 *,#2 *,int,vtkIdList *)"
                      ["/branch/home/held/vtk_40/VTK/Common/vtkDataArray.cxx", line 655] was intended.
                          vtkTemplateMacro4(CopyTuples, input, (VTK_TT *)output->GetVoidPo
                          ^^^^^^^^^^^^^^^^^
                  Error 403: "/branch/home/held/vtk_40/VTK/Common/vtkDataArray.cxx", line 673 # Undeclared variable 'CopyTuples'.
                      Perhaps 'CopyTuples' as in "void CopyTuples(#1 *,#2 *,int,vtkIdList *)"
                      ["/branch/home/held/vtk_40/VTK/Common/vtkDataArray.cxx", line 655] was intended.
                          vtkTemplateMacro4(CopyTuples, input, (VTK_TT *)output->GetVoidPo
                          ^^^^^^^^^^^^^^^^^
                  Error 403: "/branch/home/held/vtk_40/VTK/Common/vtkDataArray.cxx", line 673 # Undeclared variable 'CopyTuples'.
                      Perhaps 'CopyTuples' as in "void CopyTuples(#1 *,#2 *,int,vtkIdList *)"
                      ["/branch/home/held/vtk_40/VTK/Common/vtkDataArray.cxx", line 655] was intended.
                          vtkTemplateMacro4(CopyTuples, input, (VTK_TT *)output->GetVoidPo
                          ^^^^^^^^^^^^^^^^^
                  Error 403: "/branch/home/held/vtk_40/VTK/Common/vtkDataArray.cxx", line 673 # Undeclared variable 'CopyTuples'.
                      Perhaps 'CopyTuples' as in "void CopyTuples(#1 *,#2 *,int,vtkIdList *)"
                      ["/branch/home/held/vtk_40/VTK/Common/vtkDataArray.cxx", line 655] was intended.
                          vtkTemplateMacro4(CopyTuples, input, (VTK_TT *)output->GetVoidPo
                          ^^^^^^^^^^^^^^^^^
                  Error 403: "/branch/home/held/vtk_40/VTK/Common/vtkDataArray.cxx", line 673 # Undeclared variable 'CopyTuples'.
                      Perhaps 'CopyTuples' as in "void CopyTuples(#1 *,#2 *,int,vtkIdList *)"
                      ["/branch/home/held/vtk_40/VTK/Common/vtkDataArray.cxx", line 655] was intended.
                          vtkTemplateMacro4(CopyTuples, input, (VTK_TT *)output->GetVoidPo
                          ^^^^^^^^^^^^^^^^^
                  Error 403: "/branch/home/held/vtk_40/VTK/Common/vtkDataArray.cxx", line 673 # Undeclared variable 'CopyTuples'.
                      Perhaps 'CopyTuples' as in "void CopyTuples(#1 *,#2 *,int,vtkIdList *)"
                      ["/branch/home/held/vtk_40/VTK/Common/vtkDataArray.cxx", line 655] was intended.
                          vtkTemplateMacro4(CopyTuples, input, (VTK_TT *)output->GetVoidPo
                          ^^^^^^^^^^^^^^^^^
                  Error 556: "/branch/home/held/vtk_40/VTK/Common/vtkDataArray.cxx", line 693 # Unable to generate specialization "void
                      CopyTuples1<double>(double *,vtkDataArray *,vtkIdList *)" due to errors during generation.
                          vtkTemplateMacro3(CopyTuples1, (VTK_TT *)this->GetVoidPointer(0)
                          ^^^^^^^^^^^^^^^^^
                  Error 556: "/branch/home/held/vtk_40/VTK/Common/vtkDataArray.cxx", line 693 # Unable to generate specialization "void
                      CopyTuples1<double>(double *,vtkDataArray *,vtkIdList *)" due to errors during generation.
                          vtkTemplateMacro3(CopyTuples1, (VTK_TT *)this->GetVoidPointer(0)
                          ^^^^^^^^^^^^^^^^^
                  Error 403: "/branch/home/held/vtk_40/VTK/Common/vtkDataArray.cxx", line 673 # Undeclared variable 'CopyTuples'.
                      Perhaps 'CopyTuples' as in "void CopyTuples(#1 *,#2 *,int,vtkIdList *)"
                      ["/branch/home/held/vtk_40/VTK/Common/vtkDataArray.cxx", line 655] was intended.
                          vtkTemplateMacro4(CopyTuples, input, (VTK_TT *)output->GetVoidPo
                          ^^^^^^^^^^^^^^^^^
                  Error 403: "/branch/home/held/vtk_40/VTK/Common/vtkDataArray.cxx", line 673 # Undeclared variable 'CopyTuples'.
                      Perhaps 'CopyTuples' as in "void CopyTuples(#1 *,#2 *,int,vtkIdList *)"
                      ["/branch/home/held/vtk_40/VTK/Common/vtkDataArray.cxx", line 655] was intended.
                          vtkTemplateMacro4(CopyTuples, input, (VTK_TT *)output->GetVoidPo
                          ^^^^^^^^^^^^^^^^^
                  Error 699: "/branch/home/held/vtk_40/VTK/Common/vtkDataArray.cxx", line 673 # Error limit reached; halting
                      compilation.
                          vtkTemplateMacro4(CopyTuples, input, (VTK_TT *)output->GetVoidPo
                  Liya Chernyakova
                  Simulation Technology & Applied Research, Inc.
                  11520 N. Port Washington Rd.
                  Suite 101 B
                  Mequon, WI  53092
                  Phone: (262) 240-0291 ext.104
                  FAX: (262) 240-0294
                  e-mail: liya.chernyakova at staarinc.com
                  web: http://www.staarinc.com

                    ----- Original Message ----- 
                    From: William A. Hoffman 
                    To: Liya Chernyakova 
                    Sent: Friday, February 22, 2002 12:00 PM
                    Subject: Re: [vtkusers] building vtk.4.0 on HP

                    Actually, I think that you may have enough built to run cmake -i, only
                    ccmake has failed to compile.  Can you check to see if you have a cmake 
                    executable?

                    -Bill


                    At 11:57 AM 2/22/2002 -0600, you wrote:

                      I managed to cvs the new code and cinfigure it using previously installed cmake.
                      But make gives me errors:
                       
                      cc: "/branch/home/held/CMake/Source/CursesDialog/form/fld_attr.c", line 76: error 1588:
                       "A_INVIS" undefined.
                      cc: "/branch/home/held/CMake/Source/CursesDialog/form/fld_attr.c", line 76: error 1588:
                       "A_PROTECT" undefined.
                      cc: "/branch/home/held/CMake/Source/CursesDialog/form/fld_attr.c", line 76: error 1588:
                       "A_ALTCHARSET" undefined.
                      cc: "/branch/home/held/CMake/Source/CursesDialog/form/fld_attr.c", line 76: error 1588:
                       "A_COLOR" undefined.
                      cc: "/branch/home/held/CMake/Source/CursesDialog/form/fld_attr.c", line 76: error 1563:
                       Expression in if must be scalar.
                      cc: "/branch/home/held/CMake/Source/CursesDialog/form/fld_attr.c", line 86: error 1588:
                       "A_INVIS" undefined.
                      cc: "/branch/home/held/CMake/Source/CursesDialog/form/fld_attr.c", line 86: error 1588:
                       "A_PROTECT" undefined.
                      cc: "/branch/home/held/CMake/Source/CursesDialog/form/fld_attr.c", line 86: error 1588:
                       "A_ALTCHARSET" undefined.
                      cc: "/branch/home/held/CMake/Source/CursesDialog/form/fld_attr.c", line 86: error 1588:
                       "A_COLOR" undefined.
                      cc: "/branch/home/held/CMake/Source/CursesDialog/form/fld_attr.c", line 99: error 1588:
                       "A_INVIS" undefined.
                      cc: "/branch/home/held/CMake/Source/CursesDialog/form/fld_attr.c", line 99: error 1588:
                       "A_PROTECT" undefined.
                      cc: "/branch/home/held/CMake/Source/CursesDialog/form/fld_attr.c", line 99: error 1588:
                       "A_ALTCHARSET" undefined.
                      cc: "/branch/home/held/CMake/Source/CursesDialog/form/fld_attr.c", line 99: error 1588:
                       "A_COLOR" undefined.
                      cc: "/branch/home/held/CMake/Source/CursesDialog/form/fld_attr.c", line 99: error 1563:
                       Expression in if must be scalar.
                      cc: "/branch/home/held/CMake/Source/CursesDialog/form/fld_attr.c", line 109: error 1588
                      : "A_INVIS" undefined.
                      cc: "/branch/home/held/CMake/Source/CursesDialog/form/fld_attr.c", line 109: error 1588
                      : "A_PROTECT" undefined.
                      cc: "/branch/home/held/CMake/Source/CursesDialog/form/fld_attr.c", line 109: error 1588
                      : "A_ALTCHARSET" undefined.
                      cc: "/branch/home/held/CMake/Source/CursesDialog/form/fld_attr.c", line 109: error 1588
                      : "A_COLOR" undefined.
                      Is there any way I can correct it?
                      Thank you,
                      Liya Chernyakova
                      Simulation Technology & Applied Research, Inc.
                      11520 N. Port Washington Rd.
                      Suite 101 B
                      Mequon, WI  53092
                      Phone: (262) 240-0291 ext.104
                      FAX: (262) 240-0294
                      e-mail: liya.chernyakova at staarinc.com
                      web: http://www.staarinc.com

                        ----- Original Message ----- 
                        From: William A. Hoffman 
                        To: Liya Chernyakova 
                        Sent: Friday, February 22, 2002 10:51 AM
                        Subject: Re: [vtkusers] building vtk.4.0 on HP

                        Did you get my email about cvs login?


                        At 10:59 AM 2/22/2002 -0600, you wrote:

                          Thank you for finding the problem.
                          Unfortunately the cvs does not let me through and I need java wprapping (my objective is to run my java code on the HP). Is there any manual fix I can make to make it work? Or is there any way to get the Cmake code other then through the cvs?
                          Thank you,
                          Liya Chernyakova
                          Simulation Technology & Applied Research, Inc.
                          11520 N. Port Washington Rd.
                          Suite 101 B
                          Mequon, WI  53092
                          Phone: (262) 240-0291 ext.104
                          FAX: (262) 240-0294
                          e-mail: liya.chernyakova at staarinc.com
                          web: http://www.staarinc.com

                            ----- Original Message ----- 
                            From: William A. Hoffman 
                            To: Liya Chernyakova 
                            Sent: Thursday, February 21, 2002 4:29 PM
                            Subject: Re: [vtkusers] building vtk.4.0 on HP

                            I found the problem.   It is a bug in cmake on the HP.
                            Did you build cmake or download the binary?
                            I have checked in the fix to the cmake cvs repository.
                            So, you could either build cmake from source, or turn java wrapping off.

                            -Bill


                            At 03:13 PM 2/21/2002 -0600, you wrote:

                              Yes, I tryed to edit Makefile, I am sending you the rebuilt version
                              Liya Chernyakova
                              Simulation Technology & Applied Research, Inc.
                              11520 N. Port Washington Rd.
                              Suite 101 B
                              Mequon, WI  53092
                              Phone: (262) 240-0291 ext.104
                              FAX: (262) 240-0294
                              e-mail: liya.chernyakova at staarinc.com
                              web: http://www.staarinc.com

                                ----- Original Message ----- 
                                From: William A. Hoffman 
                                To: Liya Chernyakova 
                                Sent: Thursday, February 21, 2002 2:51 PM
                                Subject: Re: [vtkusers] building vtk.4.0 on HP

                                Did you edit the Makefile?
                                If so, can you go to vtk_40/VTK, and run "make rebuild_cache"
                                Then send me the Makefile that was generated. 

                                At 02:54 PM 2/21/2002 -0600, you wrote:

                                In attachement are the Makefile and CMakeCache.txt file in vtk_40/VTK (there is no CMakeCache.txt  in vtk_40).
                                Thank you,
                                Liya Chernyakova
                                Simulation Technology & Applied Research, Inc.
                                11520 N. Port Washington Rd.
                                Suite 101 B
                                Mequon, WI  53092
                                Phone: (262) 240-0291 ext.104
                                FAX: (262) 240-0294
                                e-mail: liya.chernyakova at staarinc.com
                                web: http://www.staarinc.com

                                ----- Original Message ----- 
                                From: William A. Hoffman 
                                To: Liya Chernyakova 
                                Sent: Thursday, February 21, 2002 2:21 PM
                                Subject: Re: [vtkusers] building vtk.4.0 on HP

                                Can you send me the Makefile in vtk_40/VTK/Common and
                                the CMakeCache.txt file in vtk_40?

                                -Bill


                                At 01:14 PM 2/21/2002 -0600, you wrote:

                                Thank you for the suggestion now I can at least past the cmake step without errors.
                                Unfortunately there are some more configuration questions.
                                Now make gives me the following error:
                                 
                                Building default_target in directory /branch/home/held/vtk_40/VTK/Common
                                Make: Must be a separator on rules line 374.  Stop.
                                 
                                I am not sure what setting might cause this problem. Can you give an idea?
                                Also is there any online/offline source/book that would explain the meaning 
                                of the configuration variables and/or give the example of how to set them correct.
                                Thank you,
                                Liya Chernyakova
                                Simulation Technology & Applied Research, Inc.
                                11520 N. Port Washington Rd.
                                Suite 101 B
                                Mequon, WI  53092
                                Phone: (262) 240-0291 ext.104
                                FAX: (262) 240-0294
                                e-mail: liya.chernyakova at staarinc.com
                                web: http://www.staarinc.com

                                ----- Original Message ----- 
                                From: William A. Hoffman 
                                To: Liya Chernyakova ; vtkusers at public.kitware.com 
                                Sent: Thursday, February 21, 2002 12:06 PM
                                Subject: Re: [vtkusers] building vtk.4.0 on HP

                                It looks like you specified /opt/netscape as the DART_ROOT entry during
                                the cmake -i step.   If you do not have Dart, then leave the entry blank.

                                -Bill


                                At 11:56 AM 2/21/2002 -0600, Liya Chernyakova wrote:

                                I am very new with this. I am building vtk4.0 using cmake -i followed by make.
                                Make gives me following error:
                                 
                                Make: Don't know how to make /opt/netscape/Source/Client/Utility.conf.in.  
                                 
                                Cmake gives me bunch of errors connected with the same file too:
                                 
                                CMake Error: Could not open file for read in copy operatation /opt/netscape/Source/Client/Utility.conf.in
                                 
                                Can you give me suggestion of what is not defined or is defined wrong in this picture?
                                Liya Chernyakova
                                Simulation Technology & Applied Research, Inc.
                                11520 N. Port Washington Rd.
                                Suite 101 B
                                Mequon, WI  53092
                                Phone: (262) 240-0291 ext.104
                                FAX: (262) 240-0294
                                e-mail: liya.chernyakova at staarinc.com
                                web: http://www.staarinc.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20020226/7ca361cf/attachment.htm>


More information about the vtkusers mailing list