Linux and OCC5.2 error i have

hi guys

I am tring to config OCC5.2 on my Suse linux 9.0 and i have gotten this error message

configure: error: CasCade (headers and libraries) not found. Please check your installation!

anyone knows what is the problem?

thanks

very unexperianced peter

Saravana's picture

HI Peter!
I got the same error as you had. Have you solved ur's. If so, pls let me know. Thanks

Laurent's picture

You should execute the "/opt/OpenCASCADE5.2/ros/env.ksh" script in order to define the correct environment variables. Use “source /opt/OpenCASCADE5.2/ros/env.ksh” command.

The script provide with OOC5.2 has some errors (some '=' are missing). You will found my script below :

#!/bin/bash

export CASROOT=/opt/OpenCASCADE5.2/ros

export OS_NAME=`uname`

if [ $?PATH ]; then
export PATH=$CASROOT/../3rdparty/$OS_NAME/TclTk/bin:$CASROOT/$OS_NAME/bin:$PATH
else
export PATH=$CASROOT/../3rdparty/$OS_NAME/TclTk/bin:$CASROOT/$OS_NAME/bin
fi

if [ $?LD_LIBRARY_PATH ]; then
export LD_LIBRARY_PATH=$CASROOT/../3rdparty/$OS_NAME/TclTk/lib:$CASROOT/$OS_NAME/lib:$LD_LIBRARY_PATH
else
export LD_LIBRARY_PATH=$CASROOT/../3rdparty/$OS_NAME/TclTk/lib:$CASROOT/$OS_NAME/lib
fi

export CSF_MDTVFontDirectory=$CASROOT/src/FontMFT
export CSF_LANGUAGE=fr
export MMGT_CLEAR=1
export CSF_EXCEPTION_PROMPT=1
export CSF_SHMessage=$CASROOT/src/SHMessage
export CSF_MDTVTexturesDirectory=$CASROOT/src/Textures
export CSF_XSMessage=$CASROOT/src/XSMessage
export CSF_StandardDefaults=$CASROOT/src/StdResource
export CSF_PluginDefaults=$CASROOT/src/StdResource
export CSF_XCAFDefaults=$CASROOT/src/StdResource
export CSF_GraphicShr=$CASROOT/$OS_NAME/lib/libTKOpenGl.so
export CSF_UnitsLexicon=$CASROOT/src/UnitsAPI/Lexi_Expr.dat
export CSF_UnitsDefinition=$CASROOT/src/UnitsAPI/Units.dat
export CSF_IGESDefaults=$CASROOT/src/XSTEPResource
export CSF_STEPDefaults=$CASROOT/src/XSTEPResource

export TCLHOME=$CASROOT/../3rdparty/$OS_NAME/tcltk
export TCLLIBPATH=$TCLHOME/lib
if [ $OS_NAME == "SunOS" ]; then
export ITK_LIBRARY=$TCLLIBPATH/itk3.2
export ITCL_LIBRARY=$TCLLIBPATH/itcl3.2
export TIX_LIBRARY=$TCLLIBPATH/tix8.1
export TK_LIBRARY=$TCLLIBPATH/tk8.3
export TCL_LIBRARY=$TCLLIBPATH/tcl8.3
else if [ $OS_NAME == "Linux" ]; then
export ITK_LIBRARY=$TCLLIBPATH/itk3.0
export ITCL_LIBRARY=$TCLLIBPATH/itcl3.0
if [ $?TIX_LIBRARY ]; then
unset TIX_LIBRARY
fi
export TK_LIBRARY=$TCLLIBPATH/tk8.0
export TCL_LIBRARY=$TCLLIBPATH/tcl8.0
fi
fi

export PATH LD_LIBRARY_PATH