Open Cascade 6.2 Build Fixes

Combined Patch: occ6.2.patch

Applying patches

To apply any of these patches, in the directory where you installed Open CASCADE execute the command patch -p1 < occ6.2.patch, replacing occ6.2.patch with the complete path to whichever patch file you wish to apply.

If the patches that modify configure.in are applied, you will need to regenerate configure and other files. Most likely you will need to apply the configure-autoconf.patch and issue the command autoreconf -fi to ensure that all files are updated with the versions of the GNU autotools you have installed. Failure to update all the files will most likely result in a broken build system due to version incompatibilities.

Configuration

The configure script included with OpenCascade is broken in that it does not check in default locations for required libraries automatically. For example, even though every system one is ever likely to build it on has libXmu installed in /usr/lib, it is still necessary to tell the configure script to look there using a flag.

Summary

The complete OpenCascade installation process, including building from source, is analogous to the following:
wget 'http://www.opencascade.org/ex/stats/cnt2.php?code=Occ62Linux&usr=&chw=BWZVF1194990141'
mkdir occtmp
cd occtmp
gunzip < ../OpenCASCADE_Linux.tgz | tar xvf -
java -cp Linux/setup.jar run
# Assuming /opt/occ6.2 as install directory specified in GUI tool
cd /opt/occ6.2/ros
wget http://homepages.cae.wisc.edu/~kraftche/OCC/occ6.2.patch
patch -p2 < occ6.2.patch
autoreconf -fi
./configure --prefix=`pwd`/`uname` \
--with-tcl=/usr/lib/tcl8.4 --with-tk=/usr/lib/tk8.4 \
--with-gl-include=/usr/include --with-gl-library=/usr/lib \
--with-xmu-include=/usr/include/X11 --with-xmu-library=/usr/lib \
--with-java-include=/usr/lib/jvm/java-1.5.0-sun/include
make
make install

Other Patches

Added Jan. 18. 2008.

The occ-build.patch patch makes more substantial changes to the OpenCASCADE build system:

This patch conflicts with the above patches affecting the configure script, and incorporates equivalent changes. Conflicting patches: