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
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.
Gustavo Toranzo Lorca
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.
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.
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/