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:
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 :
aclocal
libtoolize --force
autoconf
automake --add-missing
autoreconf
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 \
--enable-debug=no
Up to now without success, it seems that my FTGL installation is wrong... I will work on it and keep you informed!
Nathanaël.
Raymond
2012/10/20 21:44
Hello,
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
2013/02/26 17:05
Dear Raymond,
could please tell me how to install OCCT on centos 6.3.