FreeCAD

Mark Brethen mark.brethen at gmail.com
Fri Jun 20 07:36:26 PDT 2014


There are a few things I'm not sure of:

1. FreeCAD.app template
An archive contains an application bundle template for FreeCAD. This is not strictly necessary, but it makes working with FreeCAD more convenient than the default installation configuration. They recommend an install location for the bundle in the /Applications folder, but you should be able to put it anywhere you want -- however the bundle can't be moved after FreeCAD is complied and installed without further modifications. Running make install with the configuration below will install into this bundle.
http://dl.getdropbox.com/u/103808/FreeCAD/FreeCAD_bundle_template_20091128.tar.gz
./autogen.sh
PREFIX=/Applications/FreeCAD.app/Contents
2. Some FreeCAD components won't work without Pivy
Pivy is a needed by several modules to access the 3D view of FreeCAD. On MacOSX, need to compile pivy . Before compiling Pivy want to have Coin and SoQt installed. Attempting to install coin from MacPorts was problematic: a ticket was added 6 months ago with a patch that has not been committed ( https://trac.macports.org/ticket/41786). 

These instructions may not be complete. Something close to this worked for OS 10.7 as of March 2012.
Get the latest source:
hg clone http://hg.sim.no/Pivy/default Pivy
Then you need SWIG. It should be a matter of:
port install swig
This is needed also:
port install swig-python
3. Compile
Configure, compile, and install FreeCAD using the following commands from within the root FreeCAD folder.
./configure --with-xercesc-lib=/opt/local/lib --with-xercesc-include=/opt/local/include \
--with-boost-lib=/opt/local/lib --with-boost-include=/opt/local/include \
lltech/Qt-4.8.0/lib \ --with-qt4-include=/usr/local/Trolltech/Qt-4.8.0/include --with-qt4-frame
--with-qt4-dir=/usr/local/Trolltech/Qt-4.8.0 --with-qt4-lib=/usr/local/Tr
owork=/Library/Frameworks \ --with-qt4-bin=/usr/local/Trolltech/Qt-4.8.0/bin --with-occ-lib=/usr/local/lib \
--prefix=/Applications/FreeCAD.app/Contents \ --bindir=/Applications/FreeCAD
--with-occ-include=/usr/local/include/oce --with-coin=/Library/Frameworks \ --with-soqt=/Library/Frameworks
.app/Contents/MacOS --libdir=/Applications/FreeCAD.app/Contents/Frameworks/FreeCAD \ --includedir=/Applications/FreeCAD.app/Contents/Resources/include \
rsions/2.5/Headers
--datarootdir=/Applications/FreeCAD.app/Contents/Resources/share --enable-debug=no \ --with-python-include=/System/Library/Frameworks/Python.framework/Versions/2.5/Headers
Paths will be different for a port install. I have python 2.7 installed. There was a discussion on the freecad forum regarding a homebrew formula. 
    # Brewed python include and lib info
    # TODO: Don't hardcode bin path
    python_prefix = `/usr/local/bin/python-config --prefix`.strip
    python_library = "#{python_prefix}/Python"
    python_include_dir = "#{python_prefix}/Headers"


    # Set up needed cmake args
    args = std_cmake_args + %W[
-DFREECAD_BUILD_ROBOT=OFF
-DPYTHON_LIBRARY=#{python_library}
-DPYTHON_INCLUDE_DIR=#{python_include_dir}
-DOCE_DIR=#{oce_dir}
-DFREETYPE_INCLUDE_DIRS=#{Formula.factory('freetype').opt_prefix}/include/freetype2/
]




Sent from my iPad

> On Jun 19, 2014, at 11:47 PM, Sean Farley <sean at macports.org> wrote:
> 
> 
> Mark Brethen writes:
> 
>>> On Jun 14, 2014, at 5:36 PM, Sean Farley <sean at macports.org> wrote:
>>> 
>>> You should probably make a ticket at trac.macports.org so you can upload
>>> your portfile and get some feedback.
>> 
>> https://trac.macports.org/ticket/44097
> 
> Cool, I'll take a look tomorrow :-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-dev/attachments/20140620/ef27387e/attachment-0001.html>


More information about the macports-dev mailing list