{"id":2093,"date":"2017-11-04T22:08:09","date_gmt":"2017-11-05T05:08:09","guid":{"rendered":"http:\/\/rglinuxtech.com\/?p=2093"},"modified":"2017-11-04T22:12:45","modified_gmt":"2017-11-05T05:12:45","slug":"audacity-new-major-release-compile-fix-for-portaudio","status":"publish","type":"post","link":"https:\/\/rglinuxtech.com\/?p=2093","title":{"rendered":"Audacity &#8211; New Major Release &#8211; Compile Fix, for Portaudio.."},"content":{"rendered":"<p>After some considerable time, there is a new major version of Audacity &#8211; <strong>2.2.0<\/strong> &#8211; with a new-improved UI, amongst other things..<\/p>\n<p>As I needed this ASAP, and did not want to wait for the (uncrippled) RPM to come out, I decided to compile it myself, with all useful options included..<\/p>\n<p>I got the following error on compiling:<\/p>\n<pre><span style=\"font-family: courier new,courier;\"><strong>.....<\/strong><\/span>\r\n<span style=\"font-family: courier new,courier;\"><strong>AudioIO.cpp:(.text+0x174): undefined reference to `PaUtil_GetTime'<\/strong><\/span>\r\n<span style=\"font-family: courier new,courier;\"><strong>audacity-AudioIO.o: In function `audacityAudioCallback(void const*, void*, unsigned long, PaStreamCallbackTimeInfo const*, unsigned long, void*)':<\/strong><\/span>\r\n<span style=\"font-family: courier new,courier;\"><strong>AudioIO.cpp:(.text+0xcb8c): undefined reference to `PaUtil_GetTime'<\/strong><\/span>\r\n<span style=\"font-family: courier new,courier;\"><strong>collect2: error: ld returned 1 exit status<\/strong><\/span>\r\n<span style=\"font-family: courier new,courier;\"><strong>make[2]: *** [Makefile:2348: audacity] Error 1<\/strong><\/span><\/pre>\n<p>I tried adding an explicit reference to the portaudio header file in AudIO.cpp, but this did not make any difference..\u00a0\u00a0 After more research, I found that you have to specify <strong><span style=\"font-family: courier new,courier;\">&#8211;with-portaudio=local<\/span> <\/strong>in the configure options.\u00a0\u00a0\u00a0 My configure options were then:<\/p>\n<p><strong><span style=\"font-family: courier new,courier;\">..\/configure &#8211;prefix=\/usr &#8211;enable-shared &#8211;with-ffmpeg &#8211;with-lame &#8211;with-libflac &#8211;with-libid3tag &#8211;with-libmad &#8211;with-libtwolame &#8211;with-libvorbis &#8211;with-lv2 &#8211;with-portaudio=local &#8211;with-midi &#8211;with-portmidi<\/span><\/strong><\/p>\n<p>&#8211; and this now compiled OK, and (so far..) works just fine..\u00a0\u00a0\u00a0 Not sure why this portaudio option was not the <em>default<\/em>&#8230;<\/p>\n<p><em>Robert Gadsdon.\u00a0\u00a0\u00a0 November 4, 2017<\/em><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After some considerable time, there is a new major version of Audacity &#8211; 2.2.0 &#8211; with a new-improved UI, amongst other things.. As I needed this ASAP, and did not want to wait for the (uncrippled) RPM to come out, I decided to compile it myself, with all useful options included.. I got the following error on <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/rglinuxtech.com\/?p=2093\"><span class=\"more-msg\">Continue reading &rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1727,1728,1238,15,19,1535],"tags":[1730,1729,1733,1731,242,271,1732],"class_list":["post-2093","post","type-post","status-publish","format-standard","hentry","category-audacity","category-audio","category-fix","category-linux-2","category-opinion","category-quirks","tag-2-2-0","tag-audacity","tag-audioio-cpp","tag-compile-option-fix","tag-linux","tag-new-release","tag-portaudio"],"_links":{"self":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/2093","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2093"}],"version-history":[{"count":2,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/2093\/revisions"}],"predecessor-version":[{"id":2095,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/2093\/revisions\/2095"}],"wp:attachment":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2093"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2093"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2093"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}