{"id":1388,"date":"2009-03-25T13:36:08","date_gmt":"2009-03-25T18:36:08","guid":{"rendered":"http:\/\/nuxx.net\/blog\/?p=1388"},"modified":"2009-03-25T20:37:43","modified_gmt":"2009-03-26T01:37:43","slug":"building-avrdude-under-os-x","status":"publish","type":"post","link":"https:\/\/nuxx.net\/blog\/2009\/03\/25\/building-avrdude-under-os-x\/","title":{"rendered":"Building AVRDUDE Under OS X"},"content":{"rendered":"<p><strong>NOTE:<\/strong> This doesn&#8217;t work right. See <a href=\"#update\">this update<\/a>.<\/p>\n<p>Since I don&#8217;t do much software development, it took me a bit to understand how to get <a href=\"http:\/\/www.nongnu.org\/avrdude\/\">AVRDUDE<\/a> to compile with <a href=\"http:\/\/libusb.wiki.sourceforge.net\/\">libusb<\/a> under OS X. These steps here have been confirmed to work for AVRDUDE <a href=\"http:\/\/mirror.cinquix.com\/pub\/savannah\/avrdude\/avrdude-5.5.tar.gz\">v5.5<\/a> and <a href=\"http:\/\/mirror.cinquix.com\/pub\/savannah\/avrdude\/avrdude-5.6.tar.gz\">v5.6<\/a>:<\/p>\n<blockquote><p>&#8211; Install <a href=\"http:\/\/trac.macports.org\/browser\/trunk\/dports\/devel\/libusb\/Portfile\">libusb<\/a> from <a href=\"http:\/\/www.macports.org\/\">MacPorts<\/a>: <tt>sudo port install libusb<\/tt><br \/>\n&#8211; Extract the AVRDUDE source, change to that directory.<br \/>\n&#8211; Set <tt>CPPFLAGS<\/tt> so the <tt>libusb<\/tt> headers can be found: <tt>CPPFLAGS=\"-I\/opt\/local\/include\" && export CPPFLAGS<\/tt><br \/>\n&#8211; Set <tt>LDFLAGS<\/tt> so the <tt>libusb<\/tt> libraries can be found: <tt>LDFLAGS=\"-L\/opt\/local\/lib\" && export LDFLAGS<\/tt><br \/>\n&#8211; In the AVRDUDE source directory, run <tt>configure<\/tt> as the <a href=\"http:\/\/trac.macports.org\/browser\/trunk\/dports\/cross\/avrdude\/Portfile\">MacPorts version<\/a> does: <tt>.\/configure --mandir=${prefix}\/share\/man<\/tt><br \/>\n&#8211; Build it: <tt>make<\/tt><br \/>\n&#8211; Win!<\/p><\/blockquote>\n<p><a name=\"update\"><\/a><strong>UPDATE:<\/strong> This doesn&#8217;t actually work. It builds, but attempting to access the AVR Dragon returns the following error: <tt>avrdude: jtagmkII_getsync(): sign-on command: status -1<\/tt>. This also occurs with the version of <a href=\"http:\/\/trac.macports.org\/browser\/trunk\/dports\/cross\/avrdude\/Portfile\">AVRDUDE in MacPorts<\/a>, making me wonder what exactly the <a href=\"http:\/\/www.obdev.at\/products\/avrmacpack\/index.html\">AVR MacPack<\/a> folks had to do to make it build properly for OS X.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>NOTE: This doesn&#8217;t work right. See this update. Since I don&#8217;t do much software development, it took me a bit to understand how to get&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/nuxx.net\/blog\/2009\/03\/25\/building-avrdude-under-os-x\/\">Continue reading<span class=\"screen-reader-text\">Building AVRDUDE Under OS X<\/span><\/a><\/div>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,6],"tags":[],"class_list":["post-1388","post","type-post","status-publish","format-standard","hentry","category-computers","category-electronics","entry"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/posts\/1388","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/comments?post=1388"}],"version-history":[{"count":12,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/posts\/1388\/revisions"}],"predecessor-version":[{"id":1400,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/posts\/1388\/revisions\/1400"}],"wp:attachment":[{"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/media?parent=1388"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/categories?post=1388"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/tags?post=1388"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}