CXXFLAGS, etc. (including flags the configure script
itself attempts to add.)
configure.in : 3 insertions, 3 deletions
configure.in : 2 insertions, 2 deletions
_OCC64
configure.in : 18 insertions
EOF is defined in stdio.h. While
it may also get pulled in with stdlib.h on some systems,
this is not the case for Debian (and derivatives such as Ubuntu).
src/LDOM/LDOM_OSStream.hxx : 1 insertion
inc/LDOM_OSStream.hxx : 1 insertion
src/WOKTools/WOKTools_Options.cxx : 1 insertion
friend declaration
to implicitly provide a forward declaration. In g++ 4.1 and newer,
g++ conforms to the C++ standard in this regard (unless
-ffriend-injection is specified). Provide forward declarations
that are implicitly provided by friend declarations with
other/older compilers.
inc/Units_Dimensions.hxx : 3 insertions
inc/Units_Quantity.hxx : 1 insertion
inc/Units_Token.hxx : 13 insertions
inc/Units_Unit.hxx : 1 insertion
src/Standard/Standard_Persistent.cxx : 1 insertion
src/Standard/Standard_Transient_proto.hxx : 3 insertions
inc/Standard_Transient_proto.hxx : 3 insertions
classname::.
inc/Standard_ErrorHandlerCallback.hxx : 1 insertion, 1 deletion
src/BOPTest/BOPTest_LowCommands.cxx : 1 insertion, 1 deletion
src/Standard/Standard_SStream.cxx : 1 insertion, 1 deletion
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.
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.
--prefix=`pwd`/`uname`
--with-tcl=/usr/lib/tcl
--with-tk=/usr/lib/tk
It will expect the files tclConfig.sh and tkConfig.sh to be in the directories indicated by the above flags, respectively.
gl.h header and the libGL.* library must be specified with the following two options:
--with-gl-include=<somepath>
--with-gl-library=<somepath>
On most newer Linux distributions, these should be specified as:
--with-gl-include=/usr/include
--with-gl-library=/usr/lib
--with-xmu-include=/usr/include/X11
--with-xmu-library=/usr/lib
jni_md.h header in the directory specified with the flag:
--with-java-include=<somepath>
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
The occ-build.patch patch makes
more substantial changes to the OpenCASCADE build system:
--without-* configure flags to disable checks.
prefix defaults to the expected location for in the
source tree.
CPPFLAGS and LDFLAGS.