Building OpenCASCADE652 in linux x86_64
After some tinkering, I have a recipe for compiling OpenCASCADE652 for Linux on a 64 bit architecture.
First, download the ftgl library sources from Sourceforge. Build and install it. But all the .h files
from the source directory must be copied manualy to /usr/include/FTGL.
Make a symbolic link from "/usr/include/FTGL/ftgl.h" to "/usr/include/FTGL/FTGL.h"
Install also a recent java jdk from sun.
In a console change to the "ros" subdirectory from the sources.
Then run "build_configure" and later run "configure" with all this bells and whistles :
LDFLAGS="-L/lib64 -L/usr/lib64" CFLAGS="-Ofast -march=native -mavx -m64 -fpermissive"\
CXXFLAGS="-Ofast -march=native -mavx -m64 -fpermissive" ./configure --prefix=/usr\
--libdir=/usr/lib64 --with-qt --with-java-include=/usr/java/jdk1.7.0_03/include\
--with-ftgl=/usr --with-tcl=/usr/lib64 --with-tk=/usr/lib64
I have attached a file that invokes configure with all the flags. Type "source run_configure"
at the command line.