Install the OCC 6.5 on Ubuntu 10.04

Hello, I am trying to install OpenCASCADE on Ubuntu 10.04 with the fallowing script but some error appears:

export CASROOT="your_opencascade_folder/ros"
occFlags="--with-tcl=/usr/lib/tcl8.5"
occFlags="$occFlags --with-tk=/usr/lib/tk8.5"
occFlags="$occFlags --with-gl-include=/usr/include"
occFlags="$occFlags --with-gl-library=/usr/lib"
occFlags="$occFlags --with-xmu-include=/usr/include"
occFlags="$occFlags --with-xmu-library=/usr/lib"
occFlags="$occFlags --enable-wok=no"
occFlags="$occFlags --enable-draw=yes"
occFlags="$occFlags --enable-wrappers=no"
occFlags="$occFlags --enable-static=no"
occFlags="$occFlags --enable-shared=yes"
occFlags="$occFlags --disable-debug --enable-production"
./configure $occFlags --prefix=$CASROOT

The script was found in http://www.opencascade.org/org/forum/thread_15348/ and some of the errors are:
../../../src/OpenGl/OpenGl_FontMgr.cxx:3:37: error: FTGLTextureFont.h: No such file or directory
../../../src/OpenGl/OpenGl_FontMgr.cxx:4:23: error: FTLibrary.h: No such file or directory
../../../src/OpenGl/OpenGl_FontMgr.cxx:5:20: error: FTFace.h: No such file or directory

Regards.

Venugopal Gudimetla's picture

I had the same problem on my machine sometime back with v6.5. The problem is that ftgl latest version, is it 2.1.3r5? not sure doesn't copy the include files into the inlcude directory where you ftgl is installed. So I copied them manually to the installed directory, may be not an elegant solution, but it works, and I am fine with that.

So check if ftgl_installed_dir/include has FTGLTextureFont.h etc files, if not check the directory where you built your ftgl and see if you can fine the files there, copy them to ftgl_installed_include and try building OCC again.

toranzolorca's picture

Thanks to Venugopal and Thomas for the answers, I was trying the first answer. The ftgl include files are copied in /usr/include/FTGL, then I copied this folder to de inc folder of opencascade but I got error again.
I will download the OCE to built it on my Ubuntu 10.04 machine using the CMake builder.

Regards.

Venugopal Gudimetla's picture

Hi Gustavo, That's a better idea, OCE guys have put in lot of effort to fix lot of problems and also have included several patches.

Thomas Paviot's picture

Hi Gustavo,

At OCE, we fixed many issues related to the build system, FTGL support etc. I successfully built it on my Ubuntu 10.04 machine using the CMake builder. May be you'd like to check what we achieved: https://github.com/tpaviot/oce/

The latest 0.2.0 release is available at: https://github.com/tpaviot/oce/zipball/OCE-0.2.0

Regards,

Thomas