Hey, great to hear from both Dan Falck and Anders, you two plus Dan Heeks all have projects I'm interested in... Dan (Falck), I left a couple comments on your blog about FreeCAD, more on that later.
I cloned Anders's git repo and after editing CMakeLists.txt to change a switch on sed for the Mac, I got through the cmake stage and it found boost:
...
-- Boost version: 1.51.0
-- Found the following Boost libraries:
-- python
-- found Boost: 1_51
-- boost-incude dirs are: /usr/local/include
-- boost-python lib is: /usr/local/lib/libboost_python-mt.dylib
-- boost_LIBRARY_DIRS is: /usr/local/lib
-- Boost_LIBRARIES is: /usr/local/lib/libboost_python-mt.dylib
-- Python libraries will be installed to: /Library/Python/2.7/site-packages
...
make produces a number of warnings regarding unary operator:
warning: use of unary operator that may be intended as compound assignment (-=)
then symbol errors:
Undefined symbols for architecture x86_64:
"_PyBool_FromLong", referenced from:
boost::python::objects::caller_py_function_impl<boost::python::detail::caller<bool (*)(), boost::python::default_call_policies, boost::mpl::vector1<bool> > >::operator()(_object*, _object*) in PythonStuff.o
[snip]
boost::python::objects::caller_py_function_impl<boost::python::detail::caller<void (CArea::*)(), boost::python::default_call_policies, boost::mpl::vector2<void, CArea&> > >::operator()(_object*, _object*) in PythonStuff.o
boost::python::detail::caller_arity<2u>::impl<void (CArea::*)(double), boost::python::default_call_policies, boost::mpl::vector3<void, CArea&, double> >::operator()(_object*, _object*) in PythonStuff.o
...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [area.so] Error 1
make[1]: *** [CMakeFiles/area.dir/all] Error 2
make: *** [all] Error 2
So it appears I'm moving forward. Any more hints? Google isn't helpful.
I said earlier I want to incorporate libarea in my project, but what I really want is libarea (CAM stuff) in FreeCAD. Dan Falck, I know you've done some work on that. I imagine I need to start by getting libarea built and installed as a Python module, then there is some script I could plug in to FreeCAD to make calls to libarea? I don't need backplotting, just GCode output.