Personal tools
You are here: Home Forum Install & build occ libraries

occ libraries

Up to Install & build
  • occ libraries

    Posted by gabriele at November 29. 2006
    hello,
    i am trying to install salome_3.2.2 but i have problem with occ libraries. The configure script is not able to find them.
    My system is a FC6 x86_64.

    this is my config.log:
    configure:23296: checking for OpenCascade libraries
    configure:23325: g++ -o conftest  -g -D_DEBUG_  -Wno-deprecated -Wparentheses -Wreturn-type -Wunused -pthread   -DOCC_VERSION_MAJOR=6 -DOCC_VERSION_MINOR=1 -DOCC_VERSION_MAINTENANCE=0 -DLIN -DLINTEL -DCSFDB -DNo_exception -DHAVE_CONFIG_H -DHAVE_LIMITS_H -DHAVE_WOK_CONFIG_H -DNO_CXX_EXCEPTION -I/home/gabry/OpenCASCADE6.1.0/ros/inc  conftest.cc -lm -lrt -ldl   -L/home/gabry/OpenCASCADE6.1.0/ros/Linux/lib  -lTKernel >&5
    In file included from /home/gabry/OpenCASCADE6.1.0/ros/inc/Standard_Stream.hxx:10,
                     from /home/gabry/OpenCASCADE6.1.0/ros/inc/Standard_TypeDef.hxx:22,
                     from /home/gabry/OpenCASCADE6.1.0/ros/inc/Standard_CString.hxx:13,
                     from /home/gabry/OpenCASCADE6.1.0/ros/inc/TCollection_AsciiString.hxx:26,
                     from conftest.cc:30:
    /home/gabry/OpenCASCADE6.1.0/ros/inc/config.h:277:1: warning: "PACKAGE" redefined
    conftest.cc:8:1: warning: this is the location of the previous definition
    /home/gabry/OpenCASCADE6.1.0/ros/inc/config.h:312:1: warning: "VERSION" redefined
    conftest.cc:9:1: warning: this is the location of the previous definition
    conftest.cc: In function 'int main()':
    conftest.cc:35: warning: unused variable 'size'
    /usr/bin/ld: skipping incompatible /home/gabry/OpenCASCADE6.1.0/ros/Linux/lib/libTKernel.so when searching for -lTKernel
    /usr/bin/ld: skipping incompatible /usr/lib/libTKernel.so when searching for -lTKernel
    /usr/bin/ld: cannot find -lTKernel
    collect2: ld returned 1 exit status
    configure:23331: $? = 1
    configure: failed program was:
    | /* confdefs.h.  */
    |
    | #define PACKAGE_NAME "Salome2 Project"
    | #define PACKAGE_TARNAME "salome"
    | #define PACKAGE_VERSION "3.2.2"
    | #define PACKAGE_STRING "Salome2 Project 3.2.2"
    | #define PACKAGE_BUGREPORT "gboulant@CS"
    | #define PACKAGE "salome"
    | #define VERSION "3.2.2"
    | #define STDC_HEADERS 1
    | #define HAVE_SYS_TYPES_H 1
    | #define HAVE_SYS_STAT_H 1
    | #define HAVE_STDLIB_H 1
    | #define HAVE_STRING_H 1
    | #define HAVE_MEMORY_H 1
    | #define HAVE_STRINGS_H 1
    | #define HAVE_INTTYPES_H 1
    | #define HAVE_STDINT_H 1
    | #define HAVE_UNISTD_H 1
    | #define HAVE_DLFCN_H 1
    | #ifdef __cplusplus
    | extern "C" void std::exit (int) throw (); using std::exit;
    | #endif
    | #define HAVE_LIBDL 1
    | #define HAVE_LIBRT 1
    | #define HAVE_LIBM 1
    | #define HAVE_NAMESPACES
    | #define HAVE_PTHREAD 1
    | /* end confdefs.h.  */
    | #include
    |
    | int
    | main ()
    | {
    | size_t size;
    |     TCollection_AsciiString aStr ("toto";);
    |     aStr.Capitalize();
    |   ;
    |   return 0;
    | }
    configure:23365: result: no
    configure:23367: WARNING: Opencascade libraries not found
    configure:23430: checking for libraries containing socket functions
    configure:23463: gcc -o conftest  -g -D_DEBUG_  -pthread    conftest.c -lm -lrt -ldl   >&5
    configure:23469: $? = 0
    configure:23473: test -z
                 || test ! -s conftest.err
    configure:23476: $? = 0
    configure:23479: test -s conftest
    configure:23482: $? = 0
    configure:23617: result: -lc
    • Re: occ libraries

      Posted by Torsten Sadowski at December 09. 2006
      It seems you need to recompile OCC to get 64bit libs: /usr/bin/ld: skipping incompatible /home/gabry/OpenCASCADE6.1.0/ros/Linux/lib/libTKernel.so when searching for -lTKernel Torsten
Powered by Ploneboard
Document Actions