{"id":374,"date":"2011-04-07T16:33:23","date_gmt":"2011-04-07T21:33:23","guid":{"rendered":"http:\/\/bardagjy.com\/?p=374"},"modified":"2011-04-07T16:33:23","modified_gmt":"2011-04-07T21:33:23","slug":"mit-cba-fab-modules-on-osx","status":"publish","type":"post","link":"https:\/\/bardagjy.com\/?p=374","title":{"rendered":"MIT CBA Fab Modules on OSX"},"content":{"rendered":"<p>So, I&#8217;ve managed to build the MIT CBA <a href=\"http:\/\/kokompe.cba.mit.edu\/dist\/index.html\">Fab Modules<\/a> on OSX. After many requests, I&#8217;ve put up a brief description of how I did it.<\/p>\n<p>In Niel&#8217;s code, the <code>makefab<\/code> script builds the <code>makefile<\/code> which in turn builds the code used to generate tool paths for the Modella, vinyl sign cutter etc. <\/p>\n<p>First, using Macports I installed<br \/>\n<code><br \/>\nsudo macports install python python-wxgtk2.8 gcc libpng12-dev<br \/>\n<\/code><\/p>\n<p>Then, I modified the compile flags to point to the macports <code>lib<\/code> and <code>include<\/code> locations. Since the <code>makefab<\/code> script builds the makefile, I modified the cflags line as such<br \/>\n<code><br \/>\necho \"cflags=-g -I\/opt\/local\/include -L\/opt\/local\/lib -fnested-functions\" > src\/makefile<br \/>\n<\/code><\/p>\n<p>I also added a clean option to aid development<br \/>\n<code><br \/>\nelif [ $1 == clean ]; then<br \/>\n      find src \\( \\! -name \"*\\.c\" \\! -name \"*\\.h\" \\! -name \"makefile\" \\! -name \"*\\.py\" \\! -name \"*\\.pyc\" -type f \\) -print0 | xargs -0 rm -f<br \/>\n<\/code><\/p>\n<p>I&#8217;ve uploaded all of the tools <a href='http:\/\/bardagjy.com\/wp-content\/uploads\/2011\/04\/fab.zip'>here<\/a>, so they can be available in the future.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So, I&#8217;ve managed to build the MIT CBA Fab Modules on OSX. After many requests, I&#8217;ve put up a brief description of how I did it. In Niel&#8217;s code, the makefab script builds the makefile which in turn builds the code used to generate tool paths for the Modella, vinyl sign cutter etc. First, using [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":377,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[19],"tags":[32,33],"_links":{"self":[{"href":"https:\/\/bardagjy.com\/index.php?rest_route=\/wp\/v2\/posts\/374"}],"collection":[{"href":"https:\/\/bardagjy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bardagjy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bardagjy.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bardagjy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=374"}],"version-history":[{"count":3,"href":"https:\/\/bardagjy.com\/index.php?rest_route=\/wp\/v2\/posts\/374\/revisions"}],"predecessor-version":[{"id":379,"href":"https:\/\/bardagjy.com\/index.php?rest_route=\/wp\/v2\/posts\/374\/revisions\/379"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bardagjy.com\/index.php?rest_route=\/wp\/v2\/media\/377"}],"wp:attachment":[{"href":"https:\/\/bardagjy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=374"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bardagjy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=374"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bardagjy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=374"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}