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 / Help me install of CASCADE!

Help me install of CASCADE!

Help me install of CASCADE!
Kwan-Heung Oh 2011/10/12 05:22
I'm beginner. I'm trying to configure & install in the linux (ubuntu 10.04 in the virtual box)

My working history is....
1st)
% pwd
/home/ubuntu
%mkdir CASCADE
%mv OpenCASCADE651.tar.gz ./CASCADE
%cd CASCADE
%gunzip -d OpenCASCADE651.tar.gz
%tar -xvf OpenCASCADE651.tar.gz

% cd ./ros
% vi README.txt <===I read this file,And try to execute step by step
%./configure --with-gl-include=/usr/include --with-gl-library=/usr/lib --prefix=$HOME/CAS651
====> Because others of flags be able to make some errors in my system environment, I tried to run simple configure. If I succeed it, I'll run configure with much more flags.

% pwd
/home/ubuntu/CASCADE
% ls
LICENSE README data doc ros samples
% cd ros
% ls
Makefile aclocal.m4 config.status drv env_build.bat src
Makefile.am adm      configure      env.bat inc      stamp-h1
Makefile.in config.h      configure.in env.csh libtool
README.txt config.h.in configure_OKH env.sh make
acinclude.m4 config.log draw.bat      env_DRAW.sh msvc.bat

%make =============>>>> Failed as follows

g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../inc -I../../../drv/FSD -I../../../src/FSD -I../../../drv/MMgt -I../../../src/MMgt -I../../../drv/OSD -I../../../src/OSD -I../../../drv/Plugin -I../../../src/Plugin -I../../../drv/Quantity -I../../../src/Quantity -I../../../drv/Resource -I../../../src/Resource -I../../../drv/SortTools -I../../../src/SortTools -I../../../drv/Standard -I../../../src/Standard -I../../../drv/StdFail -I../../../src/StdFail -I../../../drv/Storage -I../../../src/Storage -I../../../drv/TColStd -I../../../src/TColStd -I../../../drv/TCollection -I../../../src/TCollection -I../../../drv/TShort -I../../../src/TShort -I../../../drv/Units -I../../../src/Units -I../../../drv/UnitsAPI -I../../../src/UnitsAPI -I../../../drv/IncludeLibrary -I../../../src/IncludeLibrary -I../../../drv/Dico -I../../../src/Dico -I../../../drv/NCollection -I../../../src/NCollection -I../../../drv/Message -I../../../src/Message -DNDEBUG -DNo_Exception -DCSFDB -DOCC_CONVERT_SIGNALS -DLIN -DLININTEL -D_GNU_SOURCE=1 -O2 -MT OSD_MAllocHook.lo -MD -MP -MF .deps/OSD_MAllocHook.Tpo -c ../../../src/OSD/OSD_MAllocHook.cxx -fPIC -DPIC -o OSD_MAllocHook.lo
../../../src/OSD/OSD_MAllocHook.cxx: In static member function 'static Standard_Boolean OSD_MAllocHook::LogFileHandler::MakeReport(const char*, const char*, Standard_Boolean)':
../../../src/OSD/OSD_MAllocHook.cxx:283:24: error: 'atol' was not declared in this scope
../../../src/OSD/OSD_MAllocHook.cxx:346:45: warning: unknown conversion type character 'I' in format
../../../src/OSD/OSD_MAllocHook.cxx:346:45: warning: unknown conversion type character 'I' in format
../../../src/OSD/OSD_MAllocHook.cxx:346:45: warning: unknown conversion type character 'I' in format
../../../src/OSD/OSD_MAllocHook.cxx:360:41: warning: unknown conversion type character 'I' in format
../../../src/OSD/OSD_MAllocHook.cxx:360:41: warning: unknown conversion type character 'I' in format
../../../src/OSD/OSD_MAllocHook.cxx:360:41: warning: unknown conversion type character 'I' in format
../../../src/OSD/OSD_MAllocHook.cxx: In member function 'Standard_Boolean OSD_MAllocHook::CollectBySize::MakeReport(const char*)':
../../../src/OSD/OSD_MAllocHook.cxx:483:47: warning: unknown conversion type character 'I' in format
../../../src/OSD/OSD_MAllocHook.cxx:483:47: warning: unknown conversion type character 'I' in format
../../../src/OSD/OSD_MAllocHook.cxx:483:47: warning: unknown conversion type character 'I' in format
../../../src/OSD/OSD_MAllocHook.cxx:492:43: warning: unknown conversion type character 'I' in format
../../../src/OSD/OSD_MAllocHook.cxx:492:43: warning: unknown conversion type character 'I' in format
../../../src/OSD/OSD_MAllocHook.cxx:492:43: warning: unknown conversion type character 'I' in format
make[3]: *** [OSD_MAllocHook.lo] 오류(Error) 1
make[3]: Leaving directory `/home/ubuntu/CASCADE/ros/adm/make/TKernel'
make[2]: *** [all-recursive] 오류(Error) 1
make[2]: Leaving directory `/home/ubuntu/CASCADE/ros/adm/make'
make[1]: *** [all-recursive] 오류(Error) 1
make[1]: Leaving directory `/home/ubuntu/CASCADE/ros'
make: *** [all] 오류(Error) 2
Dennis G. 2011/10/14 09:06
Hello Kwan-Heung Oh,

The error is that 'atol', which is part of the C standard library 'stdlib', could not be found.

>> ../../../src/OSD/OSD_MAllocHook.cxx:283:24: error: 'atol' was not declared in this scope

Could you include <stdlib.h> into .../CASCADE/ros/src/OSD/OSD_MAllocHook.cxx manually?

Dennis
Kwan-Heung Oh 2011/10/17 04:22
Thanks for your reply, Dennis G.

I included <stdlib.h>, and execute "make" in the ../CAS/CADE/ros.

and, After it had been running for 1 and half hour, I think it would be recursive loop. and, I stopped the process by Ctrl^z and killed it.

I think Making CASCADE environment is difficult and too complex.

Do you have any recommandation or comment for my problem?.

Best Reagrds.
Thomas Paviot 2011/10/17 06:49
You can try the alternative OCE (OpenCascade Community Edition), which as been succesfully tested on Win32/64-Mac OSX-Linux Debian/Ubuntu. It fixes many compilation issues. You can get the latest 0.6.0 release source code at:
https://github.com/tpaviot/oce

FYI, Henning Meyer also contributed a precompiled package for Ubuntu Natty:
sudo apt-add-repository ppa:hmeyer/3d
sudo apt-get update
sudo apt-get install liboce [or liboce-dev]

Best Regards,

Thomas
Kwan-Heung Oh 2011/10/17 10:46
Thanks Thomas Paviot.
I tried to follow your reply. but I failed at the 2. Configure step in Instal.Unix. In particular,when I execute "cmake ..".

I tahe down my full working process as follow:


I downloaded the "tpaviot-oce-OCE-0.6.0-6-gf52c1f5.zip" from https://github.com/tpaviot/oce to /data/OCE (local directory), and

% pwd
/data/OCE
% ls
tpaviot-oce-OCE-0.6.0-6-gf52c1f5.zip
% unzip tpaviot-oce-OCE-0.6.0-6-gf52c1f5.zip => dispaly messages be skipped
% ls
tpaviot-oce-OCE-0.6.0-6-gf52c1f5.zip
tpaviot-oce-f52c1f5

% cd tpaviot-oce-f52c1f5
% ls
AUTHORS                README.txt      env_build.bat
BUILD.MSVC.txt           Version.rc.cmake examples
CMakeLists.txt           adm           inc
CTestConfig.cmake      build           msvc.bat
INSTALL.MSVC.txt      draw.bat           oce_build_config.h.cmake
INSTALL.Unix           drv           oce_install_config.h.cmake
LICENSE.txt           env.bat           src
NEWS                env.csh.cmake      test
ProjectConfig.cmake.in      env.sh.cmake
ProjectConfigVersion.cmake.in env_DRAW.sh

%cat INTSALL.TXT ==> I read
.......... <be skipped> ......
First ensure you have installed
CMake 2.6 or higher (http://www.cmake.org) before going further in the
compilation process.
......... <be skipped> ....

Therefore I download cmake from "http://www.cmake.org"


% pwd
/data/OCE
% ls
cmake-2.8.6-Linux-i386
tpaviot-oce-OCE-0.6.0-6-gf52c1f5.zip
tpaviot-oce-f52c1f5
% cd /data/OCE/cmake-2.8.6-Linux-i386/bin
% pwd
/data/OCE/cmake-2.8.6-Linux-i386/bin
% ls
ccmake     cmake cmake-gui cpack ctest

%cd /data/OCE/tpaviot-oce-f52c1f5
%mkdir build <=== 2. Configure step
%cd build
% pwd
/data/OCE/tpaviot-oce-f52c1f5/build
% /data/OCE/cmake-2.8.6-Linux-i386/bin/cmake ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Build 32bit
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Looking for XOpenDisplay in /usr/lib/i386-linux-gnu/libX11.so;/usr/lib/i386-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/i386-linux-gnu/libX11.so;/usr/lib/i386-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/i386-linux-gnu/libX11.so
-- Found OpenGL: /usr/lib/libGL.so
CMake Error at /data/OCE/cmake-2.8.6-Linux-i386/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91 (MESSAGE):
Could NOT find Freetype (missing: FREETYPE_LIBRARY FREETYPE_INCLUDE_DIRS)
Call Stack (most recent call first):
/data/OCE/cmake-2.8.6-Linux-i386/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:252 (_FPHSA_FAILURE_MESSAGE)
/data/OCE/cmake-2.8.6-Linux-i386/share/cmake-2.8/Modules/FindFreetype.cmake:83 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:279 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!
%
Thomas Paviot 2011/10/17 14:14
You need libfreetype6-dev.
yeon cheol Kang 2011/10/18 05:15
Hi. i'm not user in linux. but i have some advise for you

first, plz read a documentation about Open CASCADE.

but, i please to recommend you don't confuse how to install OCC.

1. open the documentation about introduction html file

2. if you open it. you may find the split window, left side take a contents, and right side takes explanation.


i think it's very important to try this order

1. read the "OpenCASCADE Technology Installation"
it contain explaination about installed folder

2. then HardWare and Software Requirements
in this case, you have to read Linux intel.


i think that maybe you skip this order <3 step> causes the problem.

3. Open CASCADE 6.5.1 is updated by other library likes freetype, freeimage, tbb ..etc. so if you want to use these, please read the "Compilation of third-party products used for OCCT - Recommendations for compliation"

this contents explain how to compile the library which is used in OCC

if you don't want to it, just read "Building modules - Building Modules" and with "Open CASCADE Technology Installation - System Environment Variables"

because if you success the install and use Open CASCADE, you must compile the project file of Open CASCADE.

i'm a window user, but if you need some help about installation Open CASCADE, please send me a e-mail sting01@naver.com

Kwan-Heung Oh 2011/10/27 03:33
I'm working for another project. and I'll be busy to the end of this year.
Please give me a your e-mail ID to my email: okwanh2hanmail.net.
In the beginning of next year, when I'll retry to install the OCC, I hope help me again.
Best Regards.
 
 
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