For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings


Need to speed up your development?
Have a look at our:

Samples & Tools


Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Build Open Cascade on Centos-6.2 64

Nathanaël Geng's picture

Hello All,

I'm trying to build OCC, without success up to now...
I think my trouble come from FTGL and Freetype.

Here you can see the command ran for configure:
./configure --enable-production=yes --with-tcl=/usr/lib64 --with-tk=/usr/lib64 --with-freetype=/usr/include/freetype2 --enable-draw=yes --with-ftgl=/usr/include/FTGL

And here some extract of the output:

-> 3rdparty mandatory products
-> ---------------------------------
-> freetype : (--with-freetype=DIR option was not defined)
-> ftgl : no (ftgl was not found)
-> tcltk : yes

In case of need I can post the log file.

If I run the make, the build stop with theses lines:

-> libtool: link: (cd ".libs" && rm -f "" && ln -s "" "")
-> libtool: link: (cd ".libs" && rm -f "" && ln -s "" "")
-> libtool: link: ( cd ".libs" && rm -f "" && ln -s "../" "" )
-> make[3]: Leaving directory `/opt/OpenCascade-6.5/ros/adm/make/TKOffset'
-> make[3]: Entering directory `/opt/OpenCascade-6.5/ros/adm/make'
-> make[3]: Nothing to be done for `all-am'.
-> make[3]: Leaving directory `/opt/OpenCascade-6.5/ros/adm/make'
-> make[2]: Leaving directory `/opt/OpenCascade-6.5/ros/adm/make'
-> make[2]: Entering directory `/opt/OpenCascade-6.5/ros'
-> make[2]: Leaving directory `/opt/OpenCascade-6.5/ros'
-> make[1]: Leaving directory `/opt/OpenCascade-6.5/ros'

rpm -ql freetype ftgl give me the directory used in the ./configure function.

Could one guide me for solving this?

Thanks in advance for your help!


thomas's picture

Hi Nathanaël

I'm interested to know whether it's possible to compile OpenCascade for RedHat Enterprise 6.2 (I guess CentOS 6.2 is similar ?).

If anyone know if it's possible, please tell me. I cannot try it right now but I will have to do it soon enough.

On topic, did you see the related thread concerning OCC compilation and FTGL issue ?

Nathanaël Geng's picture


Thank you for the reply and sorry for the delay (I just finish my holidays).
I missed this post and plan to use it for changing my set-up.

Here you will find the commands I enter for Centos 6.2 64 :
libtoolize --force
automake --add-missing
mkdir build
cd build
LDFLAGS="-L/lib64 -L/usr/lib64" \
CFLAGS="-march=native -mavx -m64 -fpermissive" \
CXXFLAGS="-march=native -mavx -m64 -fpermissive" \
../configure \
--prefix=/opt/OpenCascade-6.5 \
--libdir=/usr/lib64 \
--with-java-include=/usr/lib/jvm/java/include \
--with-ftgl=/usr/include \
--with-tcl=/usr/lib64 \
--with-tk=/usr/lib64 \
--with-freetype=/usr/include/freetype2 \
--with-qt \
--with-qt=/usr/lib64/ \
--with-x=yes \
--x-includes=/usr/include/xorg \
--x-libraries=/usr/lib64/xorg \
--enable-production=yes \
--enable-draw=yes \

Up to now without success, it seems that my FTGL installation is wrong... I will work on it and keep you informed!


Sébastien's picture


I had intended to compile on centos 6 (6.3 actually), it seems you should download, as suggested in OCCT_Build3rdParty_Linux.pdf, Ftgl 2.1.2 and FreeType 2.3.7. The versions on centos are too recent.

Then use the install directory you specified for these libs for the --with-ftgl and --with-freetype switches.

I hope it will help. It worked for me.

Ali's picture

Dear Raymond,

could please tell me how to install OCCT on centos 6.3.