{"id":270,"date":"2013-11-26T22:56:04","date_gmt":"2013-11-26T22:56:04","guid":{"rendered":"http:\/\/ggkarman.de\/tech\/?p=270"},"modified":"2014-08-19T18:57:23","modified_gmt":"2014-08-19T18:57:23","slug":"building-sox-with-mp3-support-works-on-mavericks","status":"publish","type":"post","link":"https:\/\/ggkarman.de\/tech\/building-sox-with-mp3-support-works-on-mavericks\/","title":{"rendered":"Building sox with mp3 support (UPDATED). Works on OSX 10.9 Mavericks."},"content":{"rendered":"<p>This is a revised set of instructions to get sox working on OSX with mp3 support. I recently went through the process that I explained  <a href=http:\/\/ggkarman.de\/tech\/?p=5> in a previous post <\/a> on a fresh OSX 10.9 Mavericks system. It was quite straightforward to get sox+mp3 working based on those instructions. I realized, though, that some small changes were needed to make it work.<\/p>\n<p>1. Download sox, and the lame and libmad tarballs: <a href=\"http:\/\/sourceforge.net\/projects\/sox\/files\/sox\/\">sox-14.4.1<\/a>, <a href=\"http:\/\/sourceforge.net\/projects\/lame\/files\/lame\/3.99\/\">lame-3.99.5<\/a>, <a href=\"http:\/\/sourceforge.net\/projects\/mad\/files\/libmad\/\">libmad-0.15.1b<\/a>. Build all three from source forcing a 32-bit build (libmad is a bit old):<\/p>\n<p>2. Build libmad using the following configure flags:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">.\/configure CFLAGS=&quot;-m32 -arch i386&quot; LDFLAGS=&quot;-arch i386&quot; --enable-shared --disable-static\r\nsudo make\r\nsudo make install\r\n<\/pre>\n<p>3. Build lame\u00a0using the following configure flags:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">.\/configure CFLAGS=&quot;-m32 -arch i386&quot; LDFLAGS=&quot;-arch i386&quot; --enable-shared --disable-static\r\nsudo make\r\nsudo make install\r\n<\/pre>\n<p>4. Build sox with libmad and lame support using the following options:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n.\/configure CFLAGS=&quot;-m32 -arch i386&quot; LDFLAGS=&quot;-L\/usr\/local\/lib&quot; CPPFLAGS=&quot;-I\/path\/to\/your\/libmad-0.15.1b -I\/path\/to\/your\/lame-3.99.5\/include&quot; --with-mad --with-lame\r\nsudo make -s\r\nsudo make install\r\n<\/pre>\n<p>NOTE: You will need to substitute the &#8220;\/path\/to\/your&#8221; bit with the real folders where the libmad and lame sources are located on your hard disk (probably in your Downloads\/ folder if you didn&#8217;t move them).<\/p>\n<p>After running the .\/configure line in step #4 you should check the list of optional file formats to make sure that everything went well, i.e. mp3 is now active (&#8220;mp3=yes&#8221;):<\/p>\n<p><a href=\"http:\/\/ggkarman.de\/tech\/building-sox-with-mp3-support-on-osx\/screen-shot-2013-05-17-at-00-15-43\/\" rel=\"attachment wp-att-238\"><img alt=\"\" src=\"http:\/\/ggkarman.de\/tech\/wp-content\/uploads\/2013\/01\/Screen-shot-2013-05-17-at-00.15.43-226x300.png\" \/><\/a><\/p>\n<p>Disclaimer: this may or may not work for you. On my computer the previous steps produce a fully functional sox binary with mp3 encoding\/decoding capabilities. Good luck and thanks for your feedback.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a revised set of instructions to get sox working on OSX with mp3 support. I recently went through the process that I explained in a previous post on a fresh OSX 10.9 Mavericks system. It was quite straightforward to get sox+mp3 working based on those instructions. I realized, though, that some small changes [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":true,"template":"","format":"standard","meta":[],"categories":[2],"tags":[],"_links":{"self":[{"href":"https:\/\/ggkarman.de\/tech\/wp-json\/wp\/v2\/posts\/270"}],"collection":[{"href":"https:\/\/ggkarman.de\/tech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ggkarman.de\/tech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ggkarman.de\/tech\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ggkarman.de\/tech\/wp-json\/wp\/v2\/comments?post=270"}],"version-history":[{"count":19,"href":"https:\/\/ggkarman.de\/tech\/wp-json\/wp\/v2\/posts\/270\/revisions"}],"predecessor-version":[{"id":298,"href":"https:\/\/ggkarman.de\/tech\/wp-json\/wp\/v2\/posts\/270\/revisions\/298"}],"wp:attachment":[{"href":"https:\/\/ggkarman.de\/tech\/wp-json\/wp\/v2\/media?parent=270"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ggkarman.de\/tech\/wp-json\/wp\/v2\/categories?post=270"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ggkarman.de\/tech\/wp-json\/wp\/v2\/tags?post=270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}