Open CASCADE, the 3D modelling kernel
3D modeling & numerical simulation

Search the Forums
See All Topics
Open CASCADEShowroomGet it!Developer CornerSupport and ProductsAbout us
Technical overview
Areas of use
Advantages
FAQ
Screenshots
Shape factory
Shape gallery
Demonstrations
What's new
System requirements
Download Center
Public license
Documentation
Getting started
Forums
Open Source community
Training and e-learning
A-la Carte Support
Value-added software
Complementary Components
Customer Corner
Company Profile
Marketing Materials
Contact Us
News
Home / Developer Corner / Forums / Installation and building / Problems compiling OCC6.3 in RHEL5

Problems compiling OCC6.3 in RHEL5

Problems compiling OCC6.3 in RHEL5
Adam Compeau 2010/04/27 18:05
When I run configure, it gives me the following error:

configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.

I have the full configure output and config.log if that will be useful. Any help would be greatly appreciated.
Adam Compeau 2010/04/27 21:02
I figured out that the problem was that OCC was looking for g++, but on my system it was called g++34. I just had to get it to work for the g++ command as well.
Adam Compeau 2010/04/27 23:18
I can make OCC now, but when I try to make install, I get this error.


cp: missing destination file operand after `./inc'
Try `cp --help' for more information.
cp: missing destination file operand after `/home/user/Desktop/OpenCASCADE6.3.0/ros/config.h'
Try `cp --help' for more information.
make[2]: *** [install-exec-local] Error 1
make[2]: Leaving directory `/home/user/Desktop/OpenCASCADE6.3.0/ros'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/user/Desktop/OpenCASCADE6.3.0/ros'
make: *** [install-recursive] Error 1
Adam Compeau 2010/04/28 15:53
The full error is:


----------------------------------------------------------------------
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/user/Desktop/OpenCASCADE6.3.0/ros/adm/make/TKjcas'
make[2]: Leaving directory `/home/user/Desktop/OpenCASCADE6.3.0/ros/adm/make/TKjcas'
make[2]: Entering directory `/home/user/Desktop/OpenCASCADE6.3.0/ros/adm/make'
make[3]: Entering directory `/home/user/Desktop/OpenCASCADE6.3.0/ros/adm/make'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/user/Desktop/OpenCASCADE6.3.0/ros/adm/make'
make[2]: Leaving directory `/home/user/Desktop/OpenCASCADE6.3.0/ros/adm/make'
make[1]: Leaving directory `/home/user/Desktop/OpenCASCADE6.3.0/ros/adm/make'
make[1]: Entering directory `/home/user/Desktop/OpenCASCADE6.3.0/ros'
make[2]: Entering directory `/home/user/Desktop/OpenCASCADE6.3.0/ros'
/usr/bin/install -c -d /Linux
if [ -e /bin -a ! -e /Linux/bin ]; then \
cd /Linux && ln -s ../bin bin; \
fi
if [ -e /lib -a ! -e /Linux/lib ]; then \
cd /Linux && ln -s ../lib lib; \
fi
/usr/bin/install -c -d /lin
if [ -e /bin -a ! -e /lin/bin ]; then \
cd /lin && ln -s ../bin bin; \
fi
if [ -e /lib -a ! -e /lin/lib ]; then \
cd /lin && ln -s ../lib lib; \
fi
bd=`pwd`; cd .; sd=`pwd`; cd ; pd=`pwd`; cd $bd; \
if [ "$pd" != "$sd" ]; then \
/usr/bin/install -c -d /inc; \
cp -fr ./inc ; \
fi; \
if [ "$pd" != "$bd" ]; then \
cp -fr $bd/config.h ; \
fi

cp: missing destination file operand after `./inc'
Try `cp --help' for more information.
cp: missing destination file operand after `/home/user/Desktop/OpenCASCADE6.3.0/ros/config.h'
Try `cp --help' for more information.
make[2]: *** [install-exec-local] Error 1
make[2]: Leaving directory `/home/user/Desktop/OpenCASCADE6.3.0/ros'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/user/Desktop/OpenCASCADE6.3.0/ros'
make: *** [install-recursive] Error 1
Denis Barbier 2010/04/28 17:15
Compiling OpenCascade on Linux is not a trivial task, it may be simpler to modify openSUSE packages to build on RHEL 5.
Note that according to the log above, 'make install' did create toplevel /Linux, /lin and /inc directories, you may want to remove them.
Adam Compeau 2010/04/28 18:15
I tried to use the openSUSE package, and got some missing dependencies that I can't find at openSUSE.

Missing Dependency: libstdc++.so.6(GLIBCXX_3.4.9) is needed by package OpenCASCADE-6.3.0-39.1.i586 (/OpenCASCADE-6.3.0-39.1.i586)
Missing Dependency: libtk8.5.so is needed by package OpenCASCADE-6.3.0-39.1.i586 (/OpenCASCADE-6.3.0-39.1.i586)
Missing Dependency: libtcl8.5.so is needed by package OpenCASCADE-6.3.0-39.1.i586 (/OpenCASCADE-6.3.0-39.1.i586)
Missing Dependency: libc.so.6(GLIBC_2.7) is needed by package OpenCASCADE-6.3.0-39.1.i586 (/OpenCASCADE-6.3.0-39.1.i586)
Missing Dependency: /bin/ksh is needed by package OpenCASCADE-6.3.0-39.1.i586 (/OpenCASCADE-6.3.0-39.1.i586)
Missing Dependency: libstdc++.so.6(GLIBCXX_3.4.11) is needed by package OpenCASCADE-6.3.0-39.1.i586 (/OpenCASCADE-6.3.0-39.1.i586)
Denis Barbier 2010/04/28 18:29
I did not suggest to install those packages, but to rebuild the source RPM on your RHEL 5 box. There will surely be some trouble, but I guess that this will be easier than rebuilding OpenCascade from pristine sources.
Roman Lygin 2010/04/28 18:13
Adam,
Quick tip (not sure if it really helps).
Have you run configure with --install-prefix ?
Another problem I met (though symptoms were different) is inconsistency between libtool and ltmain.sh shipped in OCC and pre-installed on the system. The latter is described here - http://opencascade.blogspot.com/2010/04/porting-on-linux.html
Hope this will be helpful in some way.
Roman
Adam Compeau 2010/05/06 23:04
I've tried multiple source versions, the OCC Cmake project, and I just can't get OCC to build for me. The closest is mentioned above, where I can get to the make install step, and that creates about half of the libraries before it exits with an error.
 
 
Latest news
  • Open CASCADE Technology 6.7.0 is available for download!
  • Open CASCADE Technology 6.6.0 is available for download!
  • Open CASCADE Technology 6.5.5 is available for download!

  • © OPEN CASCADE 2000 - 2014  |  Search  |  Contacts   |  Site map