Personal tools
You are here: Home Forum Install & build Build Salome 3.22 on Mandrake 10.1

Build Salome 3.22 on Mandrake 10.1

Up to Install & build
  • Build Salome 3.22 on Mandrake 10.1

    Posted by Todd Martin at April 11. 2007
    I have been trying to compile Salome KERNEL without success on Mandrake 10.1
    I installed the pre-requisite software separately and then downloaded the Salome sources tar.gz.
    As far as I can tell, the only pre-requisite software which is a later version than that specified is hdf5-1.6.5 and Numeric 24.2
    The configuration goes ok, but make falls over after compiling many modules.

    Here is the problem. The build fails in SALOME_ModuleCatalog_Server, but I can't see why. Can anyone deduce anything from the screen dump below?

    if g++ -DPACKAGE_NAME=\"Salome2\ Project\" -DPACKAGE_TARNAME=\"salome\" -DPACKAGE_VERSION=\"3.2.2\" -DPACKAGE_STRING=\"Salome2\ Project\ 3.2.2\" -DPACKAGE_BUGREPORT=\"gboulant@CS\" -DPACKAGE=\"salome\" -DVERSION=\"3.2.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_LIBDL=1 -DHAVE_LIBRT=1 -DHAVE_LIBM=1 -DHAVE_NAMESPACES= -DHAVE_PTHREAD=1 -D__x86__=1 -D__linux__=1 -D__OSVERSION__=1 -DOMNIORB=1 -DCORBA_HAVE_POA=1 -DCORBA_ORB_INIT_HAVE_3_ARGS=1 -DCORBA_ORB_INIT_THIRD_ARG=\"omniORB\" -DRM=\"/bin/rm\" -DSH=\"/bin/sh\" -DCP=\"/bin/cp\" -DRSH=\"/bin/false\" -DRCP=\"/bin/false\" -DSSH=\"/usr/bin/ssh\" -DSCP=\"/usr/bin/scp\"  -I. -I../../../src/ModuleCatalog  -I../../../src/ModuleCatalog/../Basics -I../../../src/ModuleCatalog/../SALOMELocalTrace -I../../../src/ModuleCatalog/../NamingService -I../../../src/ModuleCatalog/../Utils -I../../salome_adm/unix -I../../idl -DOMNIORB_VERSION=4 -D__x86__ -D__linux__ -DCOMP_CORBA_DOUBLE -DCOMP_CORBA_LONG -I/usr/local/include -I/usr/local/include/omniORB4 -I/usr/local/include/COS -I/usr/lib/qt3/include -DQT_THREAD_SUPPORT -DQT_CLEAN_NAMESPACE  -DHAVE_SOCKET    -g -D_DEBUG_  -Wno-deprecated -Wparentheses -Wreturn-type -Wunused -pthread -MT SALOME_ModuleCatalog_Server-SALOME_ModuleCatalog_Server.o -MD -MP -MF ".deps/SALOME_ModuleCatalog_Server-SALOME_ModuleCatalog_Server.Tpo" \
      -c -o SALOME_ModuleCatalog_Server-SALOME_ModuleCatalog_Server.o `test -f 'SALOME_ModuleCatalog_Server.cxx' || echo '../../../src/ModuleCatalog/'`SALOME_ModuleCatalog_Server.cxx; \
    then mv -f ".deps/SALOME_ModuleCatalog_Server-SALOME_ModuleCatalog_Server.Tpo" ".deps/SALOME_ModuleCatalog_Server-SALOME_ModuleCatalog_Server.Po"; \
    else rm -f ".deps/SALOME_ModuleCatalog_Server-SALOME_ModuleCatalog_Server.Tpo"; exit 1; \
    fi
    /bin/sh ../../libtool --mode=link g++  -g -D_DEBUG_  -Wno-deprecated -Wparentheses -Wreturn-type -Wunused -pthread   -o SALOME_ModuleCatalog_Server  SALOME_ModuleCatalog_Server-SALOME_ModuleCatalog_Server.o libSalomeCatalog.la ../NamingService/libSalomeNS.la ../Utils/libOpUtil.la ../SALOMELocalTrace/libSALOMELocalTrace.la ../Basics/libSALOMEBasics.la ../../idl/libSalomeIDLKernel.la -L/usr/local/lib -lomniORB4 -lomniDynamic4 -lCOS4 -lCOSDynamic4 -lomnithread -lnsl -lm -lrt -ldl
    g++ -g -D_DEBUG_ -Wno-deprecated -Wparentheses -Wreturn-type -Wunused -o .libs/SALOME_ModuleCatalog_Server SALOME_ModuleCatalog_Server-SALOME_ModuleCatalog_Server.o  -pthread ./.libs/libSalomeCatalog.so /home/toddm/Documents/salome3.2.2_SRC/KERNEL_SRC_3.2.2/build/src/NamingService/.libs/libSalomeNS.so -L/usr/local/lib -L/usr/lib/qt3/lib /usr/lib/qt3/lib/libqt-mt.so -L/usr/X11R6/lib -laudio -lXt /usr/lib/libmng.so /usr/lib/libjpeg.so -lpng -lz -lXrender -lXrandr -lXcursor -lXinerama -lXft /usr/lib/libfreetype.so /usr/lib/libfontconfig.so -lXext -lX11 -lSM -lICE -lpthread ../NamingService/.libs/libSalomeNS.so /home/toddm/Documents/salome3.2.2_SRC/KERNEL_SRC_3.2.2/build/src/Utils/.libs/libOpUtil.so ../Utils/.libs/libOpUtil.so /home/toddm/Documents/salome3.2.2_SRC/KERNEL_SRC_3.2.2/build/src/SALOMELocalTrace/.libs/libSALOMELocalTrace.so /home/toddm/Documents/salome3.2.2_SRC/KERNEL_SRC_3.2.2/build/idl/.libs/libSalomeIDLKernel.so ../SALOMELocalTrace/.libs/libSALOMELocalTrace.so /home/toddm/Documents/salome3.2.2_SRC/KERNEL_SRC_3.2.2/build/src/Basics/.libs/libSALOMEBasics.so ../Basics/.libs/libSALOMEBasics.so ../../idl/.libs/libSalomeIDLKernel.so -lomniORB4 -lomniDynamic4 -lCOS4 -lCOSDynamic4 -lomnithread -lnsl -lm -lrt -ldl -Wl,--rpath -Wl,/opt/salome/lib/salome
    /usr/bin/ld: cannot find -lXcursor
    collect2: ld returned 1 exit status
    make[2]: *** [SALOME_ModuleCatalog_Server] Error 1
    make[2]: Leaving directory `/home/toddm/Documents/salome3.2.2_SRC/KERNEL_SRC_3.2.2/build/src/ModuleCatalog'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/toddm/Documents/salome3.2.2_SRC/KERNEL_SRC_3.2.2/build/src'
    make: *** [all-recursive] Error 1

    • Re: Build Salome 3.22 on Mandrake 10.1

      Posted by Jan BrĂ¼ninghaus at April 11. 2007
      Todd Martin wrote:

      ...

      g++ -g -D_DEBUG_ -Wno-deprecated -Wparentheses -Wreturn-type -Wunused -o .libs/SALOME_ModuleCatalog_Server SALOME_ModuleCatalog_Server-SALOME_ModuleCatalog_Server.o  -pthread ./.libs/libSalomeCatalog.so /home/toddm/Documents/salome3.2.2_SRC/KERNEL_SRC_3.2.2/build/src/NamingService/.libs/libSalomeNS.so -L/usr/local/lib -L/usr/lib/qt3/lib /usr/lib/qt3/lib/libqt-mt.so -L/usr/X11R6/lib -laudio -lXt /usr/lib/libmng.so /usr/lib/libjpeg.so -lpng -lz -lXrender -lXrandr -lXcursor -lXinerama -lXft /usr/lib/libfreetype.so /usr/lib/libfontconfig.so -lXext -lX11 -lSM -lICE -lpthread ../NamingService/.libs/libSalomeNS.so /home/toddm/Documents/salome3.2.2_SRC/KERNEL_SRC_3.2.2/build/src/Utils/.libs/libOpUtil.so ../Utils/.libs/libOpUtil.so /home/toddm/Documents/salome3.2.2_SRC/KERNEL_SRC_3.2.2/build/src/SALOMELocalTrace/.libs/libSALOMELocalTrace.so /home/toddm/Documents/salome3.2.2_SRC/KERNEL_SRC_3.2.2/build/idl/.libs/libSalomeIDLKernel.so ../SALOMELocalTrace/.libs/libSALOMELocalTrace.so /home/toddm/Documents/salome3.2.2_SRC/KERNEL_SRC_3.2.2/build/src/Basics/.libs/libSALOMEBasics.so ../Basics/.libs/libSALOMEBasics.so ../../idl/.libs/libSalomeIDLKernel.so -lomniORB4 -lomniDynamic4 -lCOS4 -lCOSDynamic4 -lomnithread -lnsl -lm -lrt -ldl -Wl,--rpath -Wl,/opt/salome/lib/salome
      /usr/bin/ld: cannot find -lXcursor
      collect2: ld returned 1 exit status

      ...

      The linker is unable to find libXcursor.so.
      • Re: Build Salome 3.22 on Mandrake 10.1

        Posted by Todd Martin at April 11. 2007
        Jan Brüninghaus wrote:
        The linker is unable to find libXcursor.so.

        Hi Jan.
        This is clearly not the actual problem, as many other modules were successfully compiled prior to this module.
        • Re: Build Salome 3.22 on Mandrake 10.1

          Posted by Vadim SANDLER at April 11. 2007
          Hello Todd,

          Actually this is qt 3.3.3 library which depends on libXcursor.so. You have to install the following RPM on your Mandrake 10.1: libxorg-x11-6.7.0-4.4.101mdk.

          Regards,
          Vadim.
          • Re: Build Salome 3.22 on Mandrake 10.1

            Posted by Todd Martin at April 12. 2007
            Thanks Vadim and Jan. Problem solved. You were absolutely right. Sometimes you just can't see the woods for the trees. The problem was I upgraded Mandrake 10.0 to 10.1, but the 4th disk was missing, so while my system all the necessary shared libraries installed (including /usr/X11R6/lib/libXcursor.so) they were old versions. From now on, if I come across any "can't find *.so" errors, I will check first to see whether that library was on disk 4 and download the official rpm.
Powered by Ploneboard
Document Actions