Personal tools
You are here: Home Forum Install & build Compilation KERNEL

Compilation KERNEL

Up to Install & build
  • Compilation KERNEL

    Posted by pichon at January 22. 2007
    Bonjour,

    I follow the instruction to build KERNEL source.

    ../KERNEL_SRC_3.2.2/build_configure
    ====================================================== aclocal
    ====================================================== libtoolize
    ====================================================== autoconf
    ====================================================== automake

    ../KERNEL_SRC_3.2.2/configure

    ============================================================
    Summary
    ============================================================

    --- General mandatory products - Light configuration:
               cc : yes
          threads : yes
           python : yes
             swig : yes
             hdf5 : yes
              occ : no
    FATAL ERROR: some mandatory products are missing.
    Installing the missing products is required before running the configure script.

    occ means Open Cascade? Should I install an additional software.

    P.S. Salome is installed on my PC.

    Thank you
    • Re: Compilation KERNEL

      Posted by Vadim SANDLER at January 22. 2007
      Hello,

      You're right, occ means Open CASCADE.
      You might have forgotten to source env_build.csh (or env_build.sh) environment script before compiling KERNEL module.

      Regards,
      Vadim.
      • Re: Compilation KERNEL

        Posted by pichon at January 22. 2007
        Hi,

        both env_products.sh and env_build.sh are loaded.

        Should I install OpenCascad_Linux from OpenCascade site
        before starting  the compilation of  KERNEL_SCR_3.2.2?

        Thank You
        • Re: Compilation KERNEL

          Posted by pichon at January 22. 2007
          /salome_3.2.2/KERNEL_build# ../KERNEL_SRC_3.2.2/configure
          checking build system type... i686-pc-linux-gnu
          checking host system type... i686-pc-linux-gnu
          checking target system type... i686-pc-linux-gnu
          checking for a BSD-compatible install... /usr/bin/install -c
          checking whether build environment is sane... yes
          checking for gawk... no
          checking for mawk... mawk
          checking whether make sets $(MAKE)... yes

          ---------------------------------------------
          Initialize source and build root directories
          ---------------------------------------------


          Source root directory : /usr/local/salome_3.2.2/KERNEL_SRC_3.2.2
          Build root directory : /usr/local/salome_3.2.2/KERNEL_build


          ============================================================
          testing general mandatory products - for all configurations
          ============================================================

          checking for sh... /bin/sh
          checking for ar... ar

          ---------------------------------------------
          testing make
          ---------------------------------------------

          checking whether make sets $(MAKE)... (cached) yes
          checking for a BSD-compatible install... /usr/bin/install -c

          ---------------------------------------------
          Configuring production
          ---------------------------------------------

          checking wether /usr/bin/g++ accepts -Wno-deprecated... yes
          checking wether /usr/bin/g++ accepts -Wparentheses... yes
          checking wether /usr/bin/g++ accepts -Wreturn-type... yes
          checking wether /usr/bin/g++ accepts -Wmissing-declarations... no
          checking wether /usr/bin/g++ accepts -fmessage-length=0... yes
          checking wether /usr/bin/g++ accepts -Wunused... yes
          checking wether /usr/bin/g++ accepts -pipe... yes

          ---------------------------------------------
          testing libtool
          ---------------------------------------------

          checking for style of include used by make... GNU
          checking for gcc... /usr/bin/gcc
          checking for C compiler default output file name... a.out
          checking whether the C compiler works... yes
          checking whether we are cross compiling... no
          checking for suffix of executables...
          checking for suffix of object files... o
          checking whether we are using the GNU C compiler... yes
          checking whether /usr/bin/gcc accepts -g... yes
          checking for /usr/bin/gcc option to accept ANSI C... none needed
          checking dependency style of /usr/bin/gcc... gcc3
          checking for a sed that does not truncate output... /bin/sed
          checking for egrep... grep -E
          checking for ld used by /usr/bin/gcc... /usr/bin/ld
          checking if the linker (/usr/bin/ld) is GNU ld... yes
          checking for /usr/bin/ld option to reload object files... -r
          checking for BSD-compatible nm... /usr/bin/nm -B
          checking whether ln -s works... yes
          checking how to recognise dependent libraries... pass_all
          checking how to run the C preprocessor... /usr/bin/gcc -E
          checking for ANSI C header files... yes
          checking for sys/types.h... yes
          checking for sys/stat.h... yes
          checking for stdlib.h... yes
          checking for string.h... yes
          checking for memory.h... yes
          checking for strings.h... yes
          checking for inttypes.h... yes
          checking for stdint.h... yes
          checking for unistd.h... yes
          checking dlfcn.h usability... yes
          checking dlfcn.h presence... yes
          checking for dlfcn.h... yes
          checking whether we are using the GNU C++ compiler... yes
          checking whether /usr/bin/g++ accepts -g... yes
          checking dependency style of /usr/bin/g++... gcc3
          checking how to run the C++ preprocessor... /usr/bin/g++ -E
          checking for g77... no
          checking for f77... no
          checking for xlf... no
          checking for frt... no
          checking for pgf77... no
          checking for fort77... no
          checking for fl32... no
          checking for af77... no
          checking for f90... no
          checking for xlf90... no
          checking for pgf90... no
          checking for epcf90... no
          checking for f95... no
          checking for fort... no
          checking for xlf95... no
          checking for ifc... no
          checking for efc... no
          checking for pgf95... no
          checking for lf95... no
          checking for gfortran... no
          checking whether we are using the GNU Fortran 77 compiler... no
          checking whether  accepts -g... no
          checking the maximum length of command line arguments... 32768
          checking command to parse /usr/bin/nm -B output from /usr/bin/gcc object... ok
          checking for objdir... .libs
          checking for ranlib... ranlib
          checking for strip... strip
          checking if /usr/bin/gcc supports -fno-rtti -fno-exceptions... no
          checking for /usr/bin/gcc option to produce PIC... -fPIC
          checking if /usr/bin/gcc PIC flag -fPIC works... yes
          checking if /usr/bin/gcc static flag -static works... yes
          checking if /usr/bin/gcc supports -c -o file.o... yes
          checking whether the /usr/bin/gcc linker (/usr/bin/ld) supports shared libraries... yes
          checking whether -lc should be explicitly linked in... no
          checking dynamic linker characteristics... GNU/Linux ld.so
          checking how to hardcode library paths into programs... immediate
          checking whether stripping libraries is possible... yes
          checking for shl_load... no
          checking for shl_load in -ldld... no
          checking for dlopen... no
          checking for dlopen in -ldl... yes
          checking whether a program can dlopen itself... yes
          checking whether a statically linked program can dlopen itself... no
          checking if libtool supports shared libraries... yes
          checking whether to build shared libraries... yes
          checking whether to build static libraries... no
          configure: creating libtool
          appending configuration tag "CXX" to libtool
          checking for ld used by /usr/bin/g++... /usr/bin/ld
          checking if the linker (/usr/bin/ld) is GNU ld... yes
          checking whether the /usr/bin/g++ linker (/usr/bin/ld) supports shared libraries... yes
          checking for /usr/bin/g++ option to produce PIC... -fPIC
          checking if /usr/bin/g++ PIC flag -fPIC works... yes
          checking if /usr/bin/g++ static flag -static works... yes
          checking if /usr/bin/g++ supports -c -o file.o... yes
          checking whether the /usr/bin/g++ linker (/usr/bin/ld) supports shared libraries... yes
          checking dynamic linker characteristics... GNU/Linux ld.so
          checking how to hardcode library paths into programs... immediate
          appending configuration tag "F77" to libtool

          ---------------------------------------------
          testing C/C++
          ---------------------------------------------

          checking for gcc... (cached) /usr/bin/gcc
          checking whether we are using the GNU C compiler... (cached) yes
          checking whether /usr/bin/gcc accepts -g... (cached) yes
          checking for /usr/bin/gcc option to accept ANSI C... (cached) none needed
          checking dependency style of /usr/bin/gcc... (cached) gcc3
          checking whether we are using the GNU C++ compiler... (cached) yes
          checking whether /usr/bin/g++ accepts -g... (cached) yes
          checking dependency style of /usr/bin/g++... (cached) gcc3
          checking wether /usr/bin/g++ accepts -Wno-deprecated... yes
          checking wether /usr/bin/g++ accepts -Wparentheses... yes
          checking wether /usr/bin/g++ accepts -Wreturn-type... yes
          checking wether /usr/bin/g++ accepts -Wmissing-declarations... no
          checking wether /usr/bin/g++ accepts -Wunused... yes
          checking wether /usr/bin/g++ accepts -ftemplate-depth-42... yes
          checking wether /usr/bin/g++ accepts -tweak... no
          checking which flag for dependency information generation...  C :  /usr/bin/gcc -MM -MG C++ : /usr/bin/g++ -MM -MG
          checking for dlopen in -ldl... (cached) yes
          checking for nanosleep in -lrt... yes
          checking for ceil in -lm... yes
          checking whether the compiler use std iostream... yes
          checking whether the compiler implements namespaces... yes
          checking whether the compiler has stringstream... yes
          configure: checking for LIB_LOCATION_SUFFIX...
          LIB_LOCATION_SUFFIX is
          checking wether /usr/bin/g++ accepts -Xlinker -export-dynamic... yes

          ---------------------------------------------
          testing threads
          ---------------------------------------------

          checking whether pthreads work with -pthread... yes
          checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
          checking if more special flags are required for pthreads... no
          checking for cc_r... /usr/bin/gcc

          ---------------------------------------------
          testing python
          ---------------------------------------------

          checking for python... /usr/local/salome_3.2.2/Python-2.3.5/bin/python
          configure: checking local Python configuration...
          checking if we need libdb... no
          checking if we need libdl... yes
          checking for dlopen in -ldl... (cached) yes
          checking if we need libutil... yes
          checking for openpty in -lutil... yes
          checking if we need tcltk... no
          looks good

          ---------------------------------------------
          testing swig
          ---------------------------------------------

          checking whether /usr/local/salome_3.2.2/Python-2.3.5/bin/python version >= 2.3... yes
          checking for /usr/local/salome_3.2.2/Python-2.3.5/bin/python version... 2.3
          checking for /usr/local/salome_3.2.2/Python-2.3.5/bin/python platform... linux2
          checking for /usr/local/salome_3.2.2/Python-2.3.5/bin/python script directory... ${prefix}/lib/python2.3/site-packages
          checking for /usr/local/salome_3.2.2/Python-2.3.5/bin/python extension module directory... ${exec_prefix}/lib/python2.3/site-packages
          checking for swig... /usr/local/salome_3.2.2/SWIG-1.3.24/bin/swig
          checking python wrapper generation with swig... yes
          for swig: yes

          ---------------------------------------------
          testing HDF5
          ---------------------------------------------

          configure: checking for HDF5...
          checking hdf5.h usability... yes
          checking hdf5.h presence... yes
          checking for hdf5.h... yes
          checking for H5open in -lhdf5... yes
          for hdf5: yes

          ---------------------------------------------
          Testing OpenCascade
          ---------------------------------------------

          configure: checking for OpenCascade...
          checking for OpenCascade directories... yes
          checking wether /usr/bin/g++ accepts -funsigned-char... yes

          testing config.h
          checking config.h usability... yes
          checking config.h presence... yes
          checking for config.h... yes
          config.h file ok
          checking Standard_Type.hxx usability... yes
          checking Standard_Type.hxx presence... yes
          checking for Standard_Type.hxx... yes
          checking for OpenCascade libraries... no
          configure: WARNING: Opencascade libraries not found

          ============================================================
          testing mandatory products for CORBA configurations
          ============================================================


          ---------------------------------------------
          testing sockets
          ---------------------------------------------

          checking for libraries containing socket functions... -lc

          ---------------------------------------------
          Configuration of the ORB
          ---------------------------------------------

          Testing OMNIORB ...
          configure: checking for omniORB...
          checking for omniidl... /usr/local/salome_3.2.2/omniORB-4.0.5/bin/omniidl
          checking CORBA.h usability... yes
          checking CORBA.h presence... yes
          checking for CORBA.h... yes
          checking whether we can link with omnithreads... yes
          checking for socket in -lsocket... no
          checking for gethostbyname in -lnsl... yes
          checking whether we can link with omniORB... yes
          checking omniORBpy... yes
          for omniORBpy: yes
          for omniORB: yes
          checking whether we have double and CORBA::Double compatibility... yes
          checking whether we have int and CORBA::Long compatibility... yes
          Selecting the default ORB
          DEFAULT_ORB : omniORB
          default orb : omniORB

          ---------------------------------------------
          Testing QT
          ---------------------------------------------

          configure: checking for OpenGL...
          configure: checking for OpenGL headers...
          checking GL/gl.h usability... no
          checking GL/gl.h presence... no
          checking for GL/gl.h... no
          checking /usr/openwin/share/include/GL/glxmd.h usability... no
          checking /usr/openwin/share/include/GL/glxmd.h presence... no
          checking for /usr/openwin/share/include/GL/glxmd.h... no
          checking /opt/graphics/OpenGL/include/GL/glxmd.h usability... no
          checking /opt/graphics/OpenGL/include/GL/glxmd.h presence... no
          checking for /opt/graphics/OpenGL/include/GL/glxmd.h... no
          checking /usr/X11R6/include/GL/gl.h usability... no
          checking /usr/X11R6/include/GL/gl.h presence... no
          checking for /usr/X11R6/include/GL/gl.h... no
          for OpenGL_headers_ok: no
          for OpenGL_libs_ok: no
          for OpenGL_ok: no
          configure: checking for Qt...
          configure: WARNING: Qt needs OpenGL correct configuration
          QTDIR is /usr/local/salome_3.2.2/qt-3.3.4
          checking for /usr/local/salome_3.2.2/qt-3.3.4/include/qt3/qglobal.h... no
          Qt version is 3.3.4
          moc found
          uic found
          checking qaction.h usability... yes
          checking qaction.h presence... yes
          checking for qaction.h... yes
          checking include of qt headers... yes
          checking linking qt library... yes
          for Qt: yes

          ---------------------------------------------
          BOOST Library
          ---------------------------------------------

          configure: checking for BOOST Library...
          configure: checking for BOOST location...
          $BOOSTDIR = /usr/local/salome_3.2.2/boost-1.32.0
          configure: checking for BOOST headers...
          checking for /usr/local/salome_3.2.2/boost-1.32.0/include/boost/shared_ptr.hpp... yes
          $BOOST_CPPFLAGS = -I/usr/local/salome_3.2.2/boost-1.32.0/include
          for boost headers: yes
          configure: checking for BOOST binaries...
          checking for /usr/local/salome_3.2.2/boost-1.32.0/lib/libboost_thread-mt.so... yes
          $BOOST_LIBSUFFIX = -mt
          $BOOST_LIBS = -L/usr/local/salome_3.2.2/boost-1.32.0/lib
          for boost binaries: yes
          for boost: yes

          ============================================================
          testing optionnal products
          ============================================================


          ---------------------------------------------
          checking if MPI is requested by user
          ---------------------------------------------


          ---------------------------------------------
          Testing Batch
          ---------------------------------------------

          testing OpenPBS
          ---------------
          configure: WARNING: Environment variable OPENPBS not set. Skipping OpenPBS configuration.
          testing LSF
          -----------
          checking for LSF... no
          lsf =
          testing Local batch system
          --------------------------
          checking for Local... yes
          checking for rm... /bin/rm
          checking for sh... /bin/sh
          checking for cp... /bin/cp
          checking for rsh... /usr/bin/rsh
          checking for rcp... /usr/bin/rcp
          checking for ssh... /usr/bin/ssh
          checking for scp... /usr/bin/scp
          Batch mode = yes

          ----------------------------------------------
          testing CPPUNIT only required for unit testing
          ----------------------------------------------

          configure: checking for cppunit...
          CPPUNITHOME not defined
          checking for /usr/local/lib/libcppunit.so... no
          checking for /usr/lib/libcppunit.so... no
          no
          configure: WARNING: cppunit not found

          ============================================================
          testing products required only for documentation generation
          ============================================================


          ---------------------------------------------
          Testing html generators
          ---------------------------------------------

          checking for doxygen... /usr/local/salome_3.2.2/doxygen-1.4.6/bin/doxygen
          doxygen version 1.4.6
          doxygen with support STL    - yes
          doxygen with support PYTHON - yes
          checking for dot... /usr/local/salome_3.2.2/graphviz-2.2.1/bin/dot
          checking for latex... /usr/bin/latex
          checking for dvips... /usr/bin/dvips
          checking for pdflatex... /usr/bin/pdflatex
          checking for rst2html... /usr/local/salome_3.2.2/docutils-0.3.7/bin/rst2html

          ============================================================
          Summary
          ============================================================

          --- General mandatory products - Light configuration:
                     cc : yes
                threads : yes
                 python : yes
                   swig : yes
                   hdf5 : yes
                    occ : no
          FATAL ERROR: some mandatory products are missing.
          Installing the missing products is required before running the configure script.
          • Re: Compilation KERNEL

            Posted by Vadim SANDLER at January 23. 2007
            Hello,

            To build SALOME modules, it's enough to source only env_build.csh (env_build.sh) file. In your case the problem is likely with incorrect LD_LIBRARY_PATH environment variable setting. To analyze the problem reason you can check config.log file which is generated by configure script in your KERNEL_build directory. Just search for CASCADE check procedure log and try to find the reason why the libraries are not found.
            And do not forget to use --prefix=
            option of the configure script because KERNEL module requires 'make install' step.

            Regards,
            Vadim.
Powered by Ploneboard
Document Actions