Building OpenCASCADE on Solaris with GCC - newbie

I have just started with OpenCASCADE. I am adding STEP and native geometry support to a CAE application that runs on WIN32 and Sun Solaris. We are using Qt as the user interface library and currently using HOOPS for graphics.

Due to cost restrictions and other library requirements, I a need to compile with GCC (currently 2.95). Unfortunately, OpenCASCADE on Solaris uses the Sun CC compiler. I have tried to use automake and autoconf to rebuild with the compiler I desire, but keep hitting obstacles.

Has anyone already done something like this?
Are there any detailed instructions on building CASCADE on a new or different UNIX platform?

Any help would be greatly appreciated.


Robert Boehne's picture


Get the 4.0 branch version from sourceforge. The CVS repository at Matra has not been kept up to date, and may not work.
Go to

for more info.

Rob Bachrach's picture

Thanks, I can't currently access this through our company firewall, but I have submitted a request. I will try it as soon as it comes through.

In my attempts to get a successful build, I wrote the following little script that runs along side the build. It deletes the temporary files and allows the build to occur in about 3-4 GB of disk.

cd $DIR/src
while true; do
FILES=`find */.libs -name "*.la-*.o" -print | sort -r -n -t'-' -k 2,2 | tail +
3 | tr -s '\012' ' '`
if [ -n "$FILES" ]; then
echo "Removing: $FILES"
rm -f $FILES;
sleep 120

Rob Bachrach's picture

Well, I never was able to get permission to download the autoconf files from sourceforge. However, I was able to get CASCADE to build successfully. Here is the configuration for future Solaris builders:

Solaris 2.6
GCC 2.95.3 (3.2 won't work)
Binutils 2.12.1 (2.13 won't work)
GNU sed 3.02
GNU m4 1.4
GNU make 3.79.1
autoconf 2.53
libtool 1.4.2

I still had to tweak some makefiles and had to modify some of the RWStl code so the compiler wouldn't crash. I also used the script in my previous e-mail to get the compile to run in 3-4 GB of disk.

The CASCADE demo programs are unstable (but no more so than the pre-compiled libraries from the web site), but my program seems to work fine.