FreeCAD 10 on gentoo

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
chrisb123
Posts: 14
Joined: Mon May 31, 2010 7:03 am

FreeCAD 10 on gentoo

Post by chrisb123 »

Hi

There is an ebuild for FreeCAD on gentoo but it is for V9 rev 2646
Will there be an update to a newer version?
User avatar
jriegel
Founder
Posts: 3369
Joined: Sun Feb 15, 2009 5:29 pm
Location: Ulm, Germany
Contact:

Re: FreeCAD 10 on gentoo

Post by jriegel »

This is done by a third party, so we dont know....
Stop whining - start coding!
psi13art
Posts: 50
Joined: Sat Oct 02, 2010 4:01 pm

Re: FreeCAD 10 on gentoo

Post by psi13art »

These are the official ebuilds
  • dev-util/boost-build
    dev-libs/boost
    app-admin/eselect-boost
    dev-python/PyQt4
    dev-libs/xerces-c
    media-libs/coin
I've used Overlay "science" (with the help of layman)

sci-libs/opencascade 6.3-r2

cmake didn't configure freecad becaue it couldn't detect coin3d, OOC. As a solution I bluntly changed the paths in the /freecad/CMakeCache.txt file.
  • COIN3D_DOC_PATH:PATH=/usr/share/doc/coin-3.1.3-r1/
    COIN3D_INCLUDE_DIR:PATH=/usr/include/coin
    OCC_INCLUDE_DIR:PATH=/opt/opencascade-6.3/ros/inc
    OCC_LIBRARY:FILEPATH=/opt/opencascade-6.3/ros/Linux/lib

Code: Select all

~/source/freecad $ cmake .
-- Found Xerces-C: /usr/lib64/libxerces-c.so
-- checking for module 'ode'
--   package 'ode' not found
-- Platform is 64-bit, set -D_OCC64
-- DEBUG: -g -DFC_DEBUG
/home/valber/source/freecad/src/Build/Version.h written
-- Boost found: TRUE
-- OpenCASCADE include directory: /opt/opencascade-6.3/ros/inc
-- OpenCASCADE shared libraries directory: /opt/opencascade-6.3/ros/Linux
-- Build 64bit
-- Coin3D doc is installed
--   Tag file: /home/valber/source/freecad/src/Doc/coin.tag
--   Location: /usr/share/doc/coin-3.1.3-r1/
-- Configuring done
-- Generating done
-- Build files have been written to: /home/valber/source/freecad
What's ODE? At the moment, I couldn't repack (compile) freecad because of this following error:

Code: Select all

[  1%] Building CXX object src/3rdParty/salomesmesh/CMakeFiles/SMDS.dir/src/SMDS/SMDS_Mesh0DElement.cpp.o
In file included from /home/valber/source/freecad/src/3rdParty/salomesmesh/inc/SMDS_MeshElement.hxx:34,
                 from /home/valber/source/freecad/src/3rdParty/salomesmesh/inc/SMDS_Mesh0DElement.hxx:31,
                 from /home/valber/source/freecad/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh0DElement.cpp:31:
/home/valber/source/freecad/src/3rdParty/salomesmesh/inc/SMDS_MeshElementIDFactory.hxx:34:35: error: NCollection_DataMap.hxx: No such file or directory
In file included from /home/valber/source/freecad/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh0DElement.cpp:33:
/home/valber/source/freecad/src/3rdParty/salomesmesh/inc/SMDS_MeshNode.hxx:33:32: error: NCollection_List.hxx: No such file or directory
In file included from /home/valber/source/freecad/src/3rdParty/salomesmesh/inc/SMDS_MeshElement.hxx:34,
                 from /home/valber/source/freecad/src/3rdParty/salomesmesh/inc/SMDS_Mesh0DElement.hxx:31,
                 from /home/valber/source/freecad/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh0DElement.cpp:31:
/home/valber/source/freecad/src/3rdParty/salomesmesh/inc/SMDS_MeshElementIDFactory.hxx:38: error: expected initializer before ‘<’ token
/home/valber/source/freecad/src/3rdParty/salomesmesh/inc/SMDS_MeshElementIDFactory.hxx:60: error: ‘SMDS_IdElementMap’ does not name a type
In file included from /home/valber/source/freecad/src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh0DElement.cpp:33:
/home/valber/source/freecad/src/3rdParty/salomesmesh/inc/SMDS_MeshNode.hxx:72: error: ISO C++ forbids declaration of ‘NCollection_List’ with no type
/home/valber/source/freecad/src/3rdParty/salomesmesh/inc/SMDS_MeshNode.hxx:72: error: expected ‘;’ before ‘<’ token
make[2]: *** [src/3rdParty/salomesmesh/CMakeFiles/SMDS.dir/src/SMDS/SMDS_Mesh0DElement.cpp.o] Error 1
make[1]: *** [src/3rdParty/salomesmesh/CMakeFiles/SMDS.dir/all] Error 2
make: *** [all] Error 2
I'll be looking for a solution at this forum now.
chrisb123
Posts: 14
Joined: Mon May 31, 2010 7:03 am

Re: FreeCAD 10 on gentoo

Post by chrisb123 »

I had to make a change with something to do with opencascade
There is a freecad10 ebuild floating around somewhere on bugzilla, it works for me
psi13art
Posts: 50
Joined: Sat Oct 02, 2010 4:01 pm

Re: FreeCAD 10 on gentoo

Post by psi13art »

Thank you very much!
http://bugs.gentoo.org/show_bug.cgi?id=312063 - is that it?

Everything installed properly and works fine, which is great.
And how did you overcome Pivy?

Code: Select all

Pivy and PyQt4 python modules must be installed on your system to use the 2D Drafting module.<type 'exceptions.AttributeError'>
chrisb123
Posts: 14
Joined: Mon May 31, 2010 7:03 am

Re: FreeCAD 10 on gentoo

Post by chrisb123 »

I wouldnt know as I dont use 2d drafting
If anything I might have used the unstable pivy and pyqt4 bindings, but i dont use 2d drafting
User avatar
yorik
Founder
Posts: 13665
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: FreeCAD 10 on gentoo

Post by yorik »

I'm pretty sure some people already managed to run pivy on gentoo in the past...
Have a search on this forum, you might find more info
wmayer
Founder
Posts: 20324
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: FreeCAD 10 on gentoo

Post by wmayer »

What's ODE?
Open Dynamic Engine is a library which will be used when starting with the Assembly module. But for the moment you can silently ignore it.

Code: Select all

At the moment, I couldn't repack (compile) freecad because of this following error:

Code: Select all

error: NCollection_DataMap.hxx: No such file or directory
NCollection_DataMap.hxx is an OCC header file.
And how did you overcome Pivy?
With the latest source tarball we also provider the generated source files for pivy. Actually it should build the pivy python module without further tweaks.
psi13art
Posts: 50
Joined: Sat Oct 02, 2010 4:01 pm

Re: FreeCAD 10 on gentoo

Post by psi13art »

NCollection_DataMap.hxx is an OCC header file.
I'm Sorry

I rechecked the path to the libraries

Code: Select all

//Path to a file.
OCC_INCLUDE_DIR:PATH=/opt/opencascade-6.3/ros/lin/inc

//Path to a library.
OCC_LIBRARY:FILEPATH=/opt/opencascade-6.3/ros/lin/lib
And there is a new error

Code: Select all

[ 1%] Building CXX object src/3rdParty/salomesmesh/CMakeFiles/SMDS.dir/src/SMDS/SMDS_QuadraticVolumeOfNodes.cpp.o
[ 1%] Building CXX object src/3rdParty/salomesmesh/CMakeFiles/SMDS.dir/src/SMDS/SMDS_MeshVolume.cpp.o
Linking CXX shared library ../../../lib/libSMDS.so
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lTKernel
collect2: ld returned 1 exit status
make[2]: *** [lib/libSMDS.so] Error 1
make[1]: *** [src/3rdParty/salomesmesh/CMakeFiles/SMDS.dir/all] Error 2
make: *** [all] Error 2
I'm using very unstable ebuild 9999999 http://bugs.gentoo.org/show_bug.cgi?id=291161 and it worked (all! include draft! FreeCAD 0.11)!
wmayer
Founder
Posts: 20324
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: FreeCAD 10 on gentoo

Post by wmayer »

TKernel is one of the OCC libs. Make sure that you add the right path to your linker.
Post Reply