Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Unsupported Software
  • Search

Installation of opencascade, OCE, FreeCAD and pythonocc

This forum covers all Gentoo-related software not officially supported by Gentoo. Ebuilds/software posted here might harm the health and stability of your system(s), and are not supported by Gentoo developers. Bugs/errors caused by ebuilds from overlays.gentoo.org are covered by this forum, too.
Post Reply
Advanced search
1 post • Page 1 of 1
Author
Message
WvR
Apprentice
Apprentice
Posts: 200
Joined: Thu Mar 03, 2011 1:08 pm
Location: Tsuruga, Japan

Installation of opencascade, OCE, FreeCAD and pythonocc

  • Quote

Post by WvR » Mon Dec 09, 2013 8:09 am

I just want to share my experiences installing FreeCAD on my gentoo laptop(s). I am a complete newbie to FreeCAD and everything related to it. I just wanted to check it out, but installation was a bit more complex than I expected.

FreeCAD is an open-source CAD software project: www.freecadweb.org Presently (December 2013), FreeCAD-0.14 is the current version.

FreeCAD is based an open-source CAD library, called OpenCASCADE www.opencascade.org, which is at version 6.6.0 (December 2013). OpenCASCADE is also referred to as OCC and OCCT (OpenCasCade Technology). Note: the OCCT software is licensed with a special license, which may or may not be interpreted as "free" software. Some linux distributions do not accept the OCCT license.

There is a spin-off project from OpenCASCADE, called OCE: OpenCASCADE Community Edition. You need OCE together with OpenCASCADE to compile FreeCAD. OCE can be found at https://github.com/tpaviot/oce Current version is OCE-0.13 but you need to install OCE-0.12.

Finally, there is pythonocc, which is a Python wrapper around the OCCT libraries (which are mostly C++): https://github.com/tpaviot/pythonocc Present version in December 2013 is v0.6, which requires OCE-0.12

Installation steps:

1. Install OpenCASCADE from the gentoo ebuild

Code: Select all

 emerge -auvDN opencascade 
Note here that you may need to set USE-flags. I set the USE-flags "doc examples freeimage gl2ps java qt4 tbb" to get the most complete build

2. Install FreeCAD from the gentoo ebuild

Code: Select all

 emerge -auvDN freecad 
This will pull in the dependencies of FreeCAD (and there are quite a few). Note: the compilation of FreeCAD will fail, but it is the dependencies we are concerned with at the moment.

3. Install OCE-0.12. First, download the archive from https://github.com/tpaviot/oce/releases/tag/OCE-0.12 Extract the archive to a directory of your choice, for instance /home/user/oce-0.12

4.

Code: Select all

user@pc > cd oce-0.12
user@pc > mkdir cmake-build
user@pc > cd cmake-build
user@pc > cmake ..
This should finish without errors, as long as you installed OpenCASCADE before (to get the dependencies). Then

Code: Select all

user@pc > make
user@pc > sudo make install/strip
5. Now that OCE is installed, download the FreeCAD source from https://github.com/FreeCAD/FreeCAD_sf_master/ Make a directory and unpack the archive: for example, from your home directory

Code: Select all

user@pc > mkdir freecad
user@pc > cd freecad
user@pc > tar xvzf ....
user@pc > mkdir cmake-build
user@pc > cd cmake-build
user@pc > cmake -D COIN3D_INCLUDE_DIR=/usr/include/coin/ ..
user@pc > make
user@pc > sudo make install
6. If you are interested in pythonocc, go to the GitHub repository, and download the latest version https://github.com/tpaviot/pythonocc/archive/master.zip Unpack the archive to a directory, for example /home/user/pythonocc.

6a. If you want to have support for the GEOM package in pythonocc:

Code: Select all

user@pc > cd pythonocc/src/contrib/geom-6.3.1.8
user@pc > mkdir cmake-build
user@pc > cd cmake-build
user@pc > cmake ..
user@pc > make
user@pc > sudo make install
6b. If you want to have support for the SMESH package in pythonocc:

Code: Select all

user@pc > cd pythonocc/src/contrib/smesh-5.1.2.2
user@pc > mkdir cmake-build
user@pc > cd cmake-build
user@pc > cmake ..
user@pc > make
user@pc > sudo make install
7. Finally, make the pythonocc library:

Code: Select all

user@pc > cd pythonocc
user@pc > mkdir cmake-build
user@pc > cd cmake-build
user@pc > cmake ..
user@pc > make
user@pc > sudo make install
Top
Post Reply
1 post • Page 1 of 1

Return to “Unsupported Software”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic