Personal tools
You are here: Home Forum Install & build Install Salome V2.2.6 on Mandriva 2006

Install Salome V2.2.6 on Mandriva 2006

Up to Install & build
  • Install Salome V2.2.6 on Mandriva 2006

    Posted by DAVID Gilles at November 29. 2005
    I try to install Salome V2.2.6 on Mandriva 2006. Using the Mandrake10.1 xml config file, I install only binaries.
    When I launch Salome, I have errors :
    • the file libpython2.3.so is missing :
      • SOLVED with the install of libpython2.3--2.3.4-6mdk.i586.rpm file. (Mandriva comes with Python2.4)
    • the file libdps.so is missing :
      • NOT SOLVED : Searching /Kernel/Session in Naming Service +++SALOME_Session_Server: error while loading shared libraries: libdps.so.1: cannot open shared object file: No such file or directory
    When I search on the Internet, it seems that the dps lib is very obsolete (2001) and not used anymore. Is there a module compiled with this lib ? Can I recompile with an option like --no-dps ?

    Then, I try to compile KERNEL, and I have a make error:
    make[4]: *** Pas de règle pour fabriquer la cible « hdf5.h », nécessaire pour « MED_V2_2_Wrapper.lo ». Arrêt.
    make[3]: *** [lib_V2_2] Erreur 2
    make[2]: *** [lib_MEDWrapper] Erreur 2
    make[1]: *** [lib_src] Erreur 2
    make: *** [all] Erreur 2

    hdf5-1.6.3 is correctly installed , I don't understand why I have a make error.

    Gilles

    • Re: Install Salome V2.2.6 on Mandriva 2006

      Posted by Erwan ADAM at November 29. 2005
      Hi all,

      I'm currently trying to compile salome from scratch on mandrake 2006.0
      (with gcc4.0, gfortran, python2.4 ...). There are some patches for salome itself
      and for pre-requities.
      Let's beginning by pre-requities :

      o CASCADE_5.2.4a : patch

      ---------------
      diff -Naur ros.orig/inc/LDOM_CharacterData.hxx ros/inc/LDOM_CharacterData.hxx
      --- ros.orig/inc/LDOM_CharacterData.hxx 2002-03-07 17:11:19.000000000 +0000
      +++ ros/inc/LDOM_CharacterData.hxx      2005-11-25 15:29:20.000000000 +0000
      @@ -9,6 +9,8 @@

       #include

      +class LDOM_BasicText;
      +
       //  Class LDOM_CharacterData
       //

      diff -Naur ros.orig/inc/LDOM_Element.hxx ros/inc/LDOM_Element.hxx
      --- ros.orig/inc/LDOM_Element.hxx       2002-03-07 17:11:21.000000000 +0000
      +++ ros/inc/LDOM_Element.hxx    2005-11-29 14:21:05.000000000 +0000
      @@ -11,6 +11,7 @@
       #include

       class LDOMParser;
      +class LDOM_BasicElement;

       //  Class LDOM_Element
       //
      diff -Naur ros.orig/src/XmlMDF/XmlMDF.cxx ros/src/XmlMDF/XmlMDF.cxx
      --- ros.orig/src/XmlMDF/XmlMDF.cxx      2003-07-17 16:53:44.000000000 +0000
      +++ ros/src/XmlMDF/XmlMDF.cxx   2005-11-28 09:48:23.000000000 +0000
      @@ -131,21 +131,21 @@
         CreateDrvMap (theDrivers, aDriverMap);

         Standard_Integer count = 0;
      -
      -  XmlObjMgt_Element anElem =
      -    (const XmlObjMgt_Element &;) theElement.getFirstChild();
      +
      +  LDOM_Node anElem = theElement.getFirstChild() ;
      +
         while ( !anElem.isNull() )
         {
           if ( anElem.getNodeName().equals (::LabelString()) )
           {
             Standard_Integer subcount =
      -        ReadSubTree(anElem, aRootLab, theRelocTable, aDriverMap);
      +        ReadSubTree((const XmlObjMgt_Element &;)anElem, aRootLab, theRelocTable, aDriverMap);
             // check for error
             if (subcount < 0)
               return Standard_False;
             count += subcount;
           }
      -    anElem = (const XmlObjMgt_Element &;) anElem.getNextSibling();
      +    anElem = anElem.getNextSibling();
         }

         return Standard_True;
      @@ -163,7 +163,8 @@
         // Extraction of the driver subset.
         Standard_Integer count = 0;

      -  XmlObjMgt_Element anElem = (const XmlObjMgt_Element &;) theElement.getFirstChild();
      +  LDOM_Node anElem = theElement.getFirstChild() ;
      +  // XmlObjMgt_Element anElem = (const XmlObjMgt_Element &;) theElement.getFirstChild();
         while ( !anElem.isNull() )
         {
           if ( anElem.getNodeType() == LDOM_Node::ELEMENT_NODE )
      @@ -172,7 +173,7 @@
             {
               // read tag
               Standard_Integer tag;
      -        XmlObjMgt_DOMString aTag (anElem.getAttribute(::TagString()));
      +        XmlObjMgt_DOMString aTag (((const XmlObjMgt_Element &;)anElem).getAttribute(::TagString()));
               if ( !aTag.GetInteger (tag) ) {
                 TCollection_ExtendedString anErrorMessage =
                   TCollection_ExtendedString ("Wrong Tag value for OCAF Label: ";)
      @@ -185,7 +186,7 @@

               // read sub-tree
               Standard_Integer subcount =
      -          ReadSubTree(anElem, aLab, theRelocTable, theDriverMap);
      +          ReadSubTree((const XmlObjMgt_Element &;)anElem, aLab, theRelocTable, theDriverMap);
               // check for error
               if (subcount == -1)
                 return -1;
      @@ -199,7 +200,7 @@
               {
                 count++;
                 const Handle(XmlMDF_ADriver)& driver = theDriverMap.Find(aName);
      -          XmlObjMgt_Persistent pAtt (anElem);
      +          XmlObjMgt_Persistent pAtt ((const XmlObjMgt_Element &;)anElem);
                 Standard_Integer anID = pAtt.Id ();
                 if (anID <= 0) {      // check for ID validity
                   TCollection_ExtendedString anErrorMessage =
      @@ -242,7 +243,7 @@
       #endif
             }
           }
      -    anElem = (const XmlObjMgt_Element &;) anElem.getNextSibling();
      +    anElem = anElem.getNextSibling();
         }

         // AfterRetrieval
      ---------------

      o HDF5_1.6.3 : no patch

      o MED_FICHIER_2.2.2 : patch

      ---------------
      diff -Naur med_fichier2.2.2.src.orig/tests/f/test23.f med_fichier2.2.2.src/tests/f/test23.f
      --- med_fichier2.2.2.src.orig/tests/f/test23.f  2003-12-22 08:32:08.000000000 +0000
      +++ med_fichier2.2.2.src/tests/f/test23.f       2005-11-28 15:12:01.000000000 +0000
      @@ -69,8 +69,8 @@
                 call efexit(-1)
              endif
              print *,cret
      -       print *,'Ecriture des connectivites des mailles de type MED_POLYGONE'
      -
      +       print *,'Ecriture des connectivites des mailles
      +     & de type MED_POLYGONE'
       C       ** Ecriture des noms des mailles polygones          **
              call efnome(fid,maa,nom,n,MED_MAILLE,MED_POLYGONE,
            &                cret)
      diff -Naur med_fichier2.2.2.src.orig/tests/f/test24.f med_fichier2.2.2.src/tests/f/test24.f
      --- med_fichier2.2.2.src.orig/tests/f/test24.f  2003-12-22 08:32:08.000000000 +0000
      +++ med_fichier2.2.2.src/tests/f/test24.f       2005-11-28 15:16:33.000000000 +0000
      @@ -125,7 +125,8 @@
            &                       cret)
                 print *,cret
                 if (cret .ne. 0 ) then
      -             print *,'Erreur lecture des numeros de famille des polygones'
      +             print *,'Erreur lecture des numeros de famille
      +     & des polygones'
                    call efexit(-1)
                 endif
                 print *,'Lecture des numeros de famille'
      diff -Naur med_fichier2.2.2.src.orig/tests/f/test25.f med_fichier2.2.2.src/tests/f/test25.f
      --- med_fichier2.2.2.src.orig/tests/f/test25.f  2004-07-15 16:35:46.000000000 +0000
      +++ med_fichier2.2.2.src/tests/f/test25.f       2005-11-28 15:20:15.000000000 +0000
      @@ -83,7 +83,8 @@
                 print *,'Erreur ecriture connectivite des polyedres'
                 call efexit(-1)
              endif
      -       print *,'Ecriture des connectivites des mailles de type MED_POLYEDRE'
      +       print *,'Ecriture des connectivites des mailles
      +     & de type MED_POLYEDRE'
              print *,'Description nodale'

       C       ** Ecriture des connectivites des mailles polyedres en mode descendant **
      @@ -93,7 +94,8 @@
                 print *,'Erreur ecriture connectivite des polyedres'
                 call efexit(-1)
              endif
      -       print *,'Ecriture des connectivites des mailles de type MED_POLYEDRE'
      +       print *,'Ecriture des connectivites des mailles
      +     & de type MED_POLYEDRE'
              print *,'Description descendante'

       C       ** Ecriture des noms des mailles polyedres          **
      diff -Naur med_fichier2.2.2.src.orig/tests/f/test27.f med_fichier2.2.2.src/tests/f/test27.f
      --- med_fichier2.2.2.src.orig/tests/f/test27.f  2004-07-15 16:35:47.000000000 +0000
      +++ med_fichier2.2.2.src/tests/f/test27.f       2005-11-28 15:21:20.000000000 +0000
      @@ -87,7 +87,8 @@
       C       On specifie la nature du maillage structure
              call efnage(fid,maa,MED_GRILLE_CARTESIENNE,cret)
              print *,cret
      -       print *,'On definit la nature de la grille : MED_GRILLE_CARTESIENNE'
      +       print *,'On definit la nature de la grille :
      +     & MED_GRILLE_CARTESIENNE'
              if (cret .ne. 0 ) then
                 print *,'Erreur ecriture de la nature de la grille'
                 call efexit(-1)
      diff -Naur med_fichier2.2.2.src.orig/tests/f/test28.f med_fichier2.2.2.src/tests/f/test28.f
      --- med_fichier2.2.2.src.orig/tests/f/test28.f  2004-07-15 16:35:49.000000000 +0000
      +++ med_fichier2.2.2.src/tests/f/test28.f       2005-11-28 15:22:10.000000000 +0000
      @@ -122,7 +122,8 @@
                    endif
                    print *,'- Structure de la grille : ',strgri
       C
      -             call efcool(fid,maa,mdim,coo,MED_FULL_INTERLACE,MED_ALL,tmp,
      +             call efcool(fid,maa,mdim,coo,
      +     &                          MED_FULL_INTERLACE,MED_ALL,tmp,
            &                          0,rep,comp2,unit2,cret)
                    print *,cret
                    if (cret .ne. 0 ) then
      diff -Naur med_fichier2.2.2.src.orig/tests/f/test6.f med_fichier2.2.2.src/tests/f/test6.f
      --- med_fichier2.2.2.src.orig/tests/f/test6.f   2003-12-22 08:32:08.000000000 +0000
      +++ med_fichier2.2.2.src/tests/f/test6.f        2005-11-28 15:10:49.000000000 +0000
      @@ -44,7 +44,8 @@
              data se2     / 1,2,1,3,2,4,3,4,2,3 /
              data nomse2  /"se1","se2","se3","se4","se5" /
              data numse2  / 1,2,3,4,5 /, nufase2 /-1,-1,0,-2,-3/
      -       data tr3     /1,2,-5,-5,3,-4 /, nomtr3 /"tr1","tr2"/, numtr3 /4,5/
      +       data tr3     /1,2,-5,-5,3,-4 /, nomtr3 /"tr1","tr2"/,
      +     &                                  numtr3 /4,5/
              data nufatr3 /0,-1/,  maa /"maa1"/

       C       ** Ouverture du fichier                            **
      ---------------

      o VTK_4.2.6 : well known patch since gcc3.2

      ---------------
      diff -Naur VTK-4.2.6.orig/IO/vtkBMPReader.cxx VTK-4.2.6/IO/vtkBMPReader.cxx
      --- VTK-4.2.6.orig/IO/vtkBMPReader.cxx  2003-02-25 16:59:24.000000000 +0000
      +++ VTK-4.2.6/IO/vtkBMPReader.cxx       2005-11-29 13:45:23.000000000 +0000
      @@ -504,11 +504,11 @@
               outPtr0 += outIncr[0];
               }
             // move to the next row in the file and data
      -      self->GetFile()->seekg(self->GetFile()->tellg() + streamSkip0, ios::beg);
      +      self->GetFile()->seekg(static_cast(self->GetFile()->tellg()) + streamSkip0, ios::beg);
             outPtr1 += outIncr[1];
             }
           // move to the next image in the file and data
      -    self->GetFile()->seekg(self->GetFile()->tellg() + streamSkip1, ios::beg);
      +    self->GetFile()->seekg(static_cast(self->GetFile()->tellg()) + streamSkip1, ios::beg);
           outPtr2 += outIncr[2];
           }

      diff -Naur VTK-4.2.6.orig/IO/vtkImageReader.cxx VTK-4.2.6/IO/vtkImageReader.cxx
      --- VTK-4.2.6.orig/IO/vtkImageReader.cxx        2002-12-26 18:18:50.000000000 +0000
      +++ VTK-4.2.6/IO/vtkImageReader.cxx     2005-11-29 13:45:23.000000000 +0000
      @@ -366,7 +366,7 @@
             // if that happens, store the value in correction and apply later
             if (filePos + streamSkip0 >= 0)
               {
      -        self->GetFile()->seekg(self->GetFile()->tellg() + streamSkip0, ios::beg);
      +        self->GetFile()->seekg(static_cast(self->GetFile()->tellg()) + streamSkip0, ios::beg);
               correction = 0;
               }
             else
      @@ -376,7 +376,7 @@
             outPtr1 += outIncr[1];
             }
           // move to the next image in the file and data
      -    self->GetFile()->seekg(self->GetFile()->tellg() + streamSkip1 + correction,
      +    self->GetFile()->seekg(static_cast(self->GetFile()->tellg()) + streamSkip1 + correction,
                             ios::beg);
           outPtr2 += outIncr[2];
           }
      ---------------

      all other pre-requities are native ...

      For the salome patches, I will send another reply soon,

      Cheers,

                           E.A.

      • Re: Install Salome V2.2.6 on Mandriva 2006

        Posted by Erwan ADAM at November 29. 2005
        I forgot to precise that I work on head of V2_2_0_maintainance
        CVS branch of salome :)

        E.A.
        • Re: Install Salome V2.2.6 on Mandriva 2006

          Posted by DAVID Gilles at November 30. 2005
          Hi,

          Thank you Erwan for your answer. But I have a problem with the 3rd patch for CAS-5.2.4a : there is no directory src/XmlMDF in my Salome version. In src, there are only those directories : FontMFT, SHMessage, StdResource, Textures, UnitsAPI and XSMessage.

          Gilles
          • Re: Install Salome V2.2.6 on Mandriva 2006

            Posted by Erwan ADAM at November 30. 2005
            Indeed the sources of CASCADE_5.2.4a at not on the cd ...
            You need to download them from open cascade ftp site.

            1. In CASCADE_5.2.4, download the OCT_5.2.4_src_Linux.tar.gz file
                which contains the source of 5.2.4
            2. In CASCADE_5.2.4a, download the OCC_patch524_ros.tar.gz file

            After that you need to apply my patch and compile with configure,
            make, make install, ...

            After make install, you need to copy the inc directory in your installation
            path and copy the config.h file in the installation inc directory.


            Cheers,

                               E.A.

            PS: I succesfully compile KERNEL, MED, GEOM, SMESH, VISU, SUPERV
            I will send patch for them soon ...
            • Re: Install Salome V2.2.6 on Mandriva 2006

              Posted by Erwan ADAM at November 30. 2005
              Dear all,

              I just sent (to OCC team) all my patchs for KERNEL, MED, SMESH, VISU to
              compile on mandriva 2006.0 ...

              Cheers,

                                E.A.

              • Re: Install Salome V2.2.6 on Mandriva 2006

                Posted by OTTINGER at December 01. 2005
                ADAM Erwan wrote:
                Dear all,

                I just sent (to OCC team) all my patchs for KERNEL, MED, SMESH, VISU to
                compile on mandriva 2006.0 ...

                Cheers,

                                  E.A.

                Are You considering to genearte an rpm file of Salome in order to install the programm just by using rpm install tool of mandriva2006?

                Thank You , Regards ... Ottinger

                • Re: Install Salome V2.2.6 on Mandriva 2006

                  Posted by Erwan ADAM at December 05. 2005
                  Dear all,

                  I've just put on OpenCascade ftp site in ADAM_ERWAN_CONTRIBUTIONS
                  directory a file named "Salome2ForMandriva2006.0ByErwanAdam.tgz".
                  It's a tar_ball which contains a README :)

                  To answer to Ottinger, I did not generate a rpm file since:
                     1. I don't know precisly how to create the dependencies between rpm's
                     2. As far as I know, you need to be root to install a rpm ??

                  Cheers,

                  E.A.

                  • Re: Install Salome V2.2.6 on Mandriva 2006

                    Posted by Erwan ADAM at December 05. 2005
                    OCC team signals me that where I put my tar_ball is a private area so
                    I made a copy on ftp site of cea :
                     
                    site :        ftp.cea.fr
                    login:       ftp
                    passwd:  email

                    into incoming/y2k01/adam

                    This is not a private area :) but the stuff remains only one week :(

                    Cheers,

                                     E.A.
                    • Re: Install Salome V2.2.6 on Mandriva 2006

                      Posted by DAVID Gilles at December 07. 2005
                      Hi all,

                      Thanks to Adam's binaries, I successfully installed Salome V2.2.0_maintenance (seems to be V2.2.7) on Mandriva 2006.
                      Some tips:
                      Cheers,
                      Gilles
                      • Re: Install Salome V2.2.6 on Mandriva 2006

                        Posted by Erwan ADAM at December 07. 2005
                        DAVID Gilles wrote:
                        Hi all,

                        Thanks to Adam's binaries, I successfully installed Salome V2.2.0_maintenance (seems to be V2.2.7) on Mandriva 2006.


                        Great !!


                        • I had to compile qwt-4.2.0 (there is no rpm-file)

                        There are official mandriva 2006.0 rpm for qwt :

                        [adam@localhost /home/adam]> rpm -qa | grep qwt
                        libqwt4-devel-4.2.0-3mdk
                        libqwt4-4.2.0-3mdk
                        [adam@localhost /home/adam]>

                        May be there are not in the cd's or the dvd (like other ones :( ) but you can
                        get them on official mirrors site For instance in :

                        ftp://ftp.ciril.fr/pub/linux/mandrivalinux/official/2006.0/i586/media/contrib

                        Cheers,

                                    E.A.

                        PS: The modification have been commited in CVS so the future V2.2.7
                               will be ok ... if there is no other regressions !


                      • Re: Install Salome V2.2.6 on Mandriva 2006

                        Posted by DAVID Gilles at December 17. 2005
                        Hi all

                        To complete my precedent post, the qwt package can be found, not in the "main" but the "contrib" directory : ftp://fr2.rpmfind.net/linux/Mandrake/2006.0/i586/media/contrib/.

                        Now others problems come from the display of the 3D window. OCC view is not usable, and VTK only in a small part (rectangle lower left) of the window. It is like if there is no refresh of the scene.

                        Cheers, Gilles
                        • Re: Install Salome V2.2.6 on Mandriva 2006

                          Posted by Erwan ADAM at December 19. 2005
                          Hi Gilles,

                          I cannot reproduce those problems ... VTK and OCC viewers are
                          usable on my computer. Maybe it comes from you X configuration.

                          Cheers,

                                             E.A.
                    • Re: Install Salome V2.2.6 on Mandriva 2006

                      Posted by ziad at December 31. 2005
                      ADAM Erwan wrote:
                      OCC team signals me that where I put my tar_ball is a private area so
                      I made a copy on ftp site of cea :
                       
                      site :        ftp.cea.fr
                      login:       ftp
                      passwd:  email

                      into incoming/y2k01/adam

                      This is not a private area :) but the stuff remains only one week :(

                      Cheers,

                                       E.A.


                      Hi,

                      The "stuff" is not there anymore (1 week deadline passed). Any chance of having it posted somewhere else?

                      Thanks,
                      Ziad
                      • Re: Install Salome V2.2.6 on Mandriva 2006

                        Posted by Erwan ADAM at January 05. 2006
                        Hi ziad,

                        I've put it once again on ftp cea server ...

                        I have corrected a bug in the environement files
                        I removed hdf1.6.3(now I use the native hdf 1.6.4 from mandriva)
                        I have added the netgen plugin for smesh
                        But s pointed before, a problem in refreshing the vtk viewer
                        still remains ... I'm currently trying to solve it but I did not success
                        for the moment

                        Cheers,

                                          E.A.
                        • Re: Install Salome V2.2.6 on Mandriva 2006

                          Posted by Erwan ADAM at February 03. 2006
                          For information,

                          on my laptop with a intel 85x video card, the problem of
                          vtk viewer refreshing has been solved by choosing "xorg 6.9"
                          and not "xorg 6.9 with material accelerarion" in video card
                          configuration ... If this can help !?

                          E.A.
                          • Re: Install Salome V2.2.6 on Mandriva 2006

                            Posted by DAVID Gilles at February 07. 2006
                            Hi all,

                            I have a new problem : there is a bug while importing salome python module :
                            import salome
                            salome.salome_init()

                            Problem occurs in import of libSALOME_Swig :

                            ImportError: /salome/current/CASCADE_5.2.4a/ros_install/lib/libTKService.so.0: undefined symbol: XmuCreateColormap


                            Any idea ?

                             

                            • Re: Install Salome V2.2.6 on Mandriva 2006

                              Posted by Erwan ADAM at February 08. 2006
                              Hi Gilles,

                              I think I made a mistake when compiling CASCADE ...
                              Could you try with the version I've put on ftp.cea.fr in
                              /incoming/y2k01/adam

                              Cheers,

                                               E.A.
                              • Re: Install Salome V2.2.6 on Mandriva 2006

                                Posted by DAVID Gilles at February 08. 2006
                                Hi Erwann,

                                Thank you for your help, but this version of Cascade does not work. I have the same error.

                                Gilles
Powered by Ploneboard
Document Actions