{"id":20063,"date":"2021-02-02T21:45:51","date_gmt":"2021-02-03T02:45:51","guid":{"rendered":"https:\/\/reactivemusic.net\/?p=20063"},"modified":"2021-02-03T00:31:30","modified_gmt":"2021-02-03T05:31:30","slug":"building-soapysdr-and-cubicsdr-from-source-linux","status":"publish","type":"post","link":"https:\/\/reactivemusic.net\/?p=20063","title":{"rendered":"Building SoapySDR and CubicSDR with Linux"},"content":{"rendered":"<h3>How to build SoapySDR and CubicSDR from source in Ubuntu 20.04<\/h3>\n<p>After unsuccessful attempts to compile SoapySDR and CubicSDR on Mac OS and Windows, I was able to get it running in Ubuntu 20.04.\u00a0 The whole process took about 2 hours but could be done in less time if you know what you are doing.<\/p>\n<p>It wasn&#8217;t really necessary to install CubicSDR to test SoapySDR. But CubicSDR is the only SoapySDR app that consistently works when it comes to devices, I\/Q, files and TCP frequency control.<\/p>\n<p>After completing this install I was also able to compile and run the SoapySDR example code here:\u00a0 <a href=\"https:\/\/github.com\/pothosware\/SoapySDR\/wiki\/Cpp_API_Example\">https:\/\/github.com\/pothosware\/SoapySDR\/wiki\/Cpp_API_Example<\/a><\/p>\n<h4>Build<\/h4>\n<p>There are excellent instructions at the CubicSDR wiki on github:\u00a0<a href=\"https:\/\/github.com\/cjcliffe\/CubicSDR\/wiki\/Build-Linux\">https:\/\/github.com\/cjcliffe\/CubicSDR\/wiki\/Build-Linux<\/a><\/p>\n<p>I also added the rtlsdr driver and the airspyhf driver. Instructions for rtlsdr are on the wiki. Instructions for airspyhf are below. You can add these drivers\/libraries at any time, after SoapySDR is installed.<\/p>\n<p>There were several missing libraries &#8211; described here.<\/p>\n<h4>hamlib<\/h4>\n<p>Hamlib is an option in CubicSDR. It was included because we&#8217;re using it to send frequency data to the devices via rigctld. You&#8217;ll need to install hamlib before you try to compile CubicSDR<\/p>\n<p>Instructions and source code here:\u00a0<a href=\"https:\/\/github.com\/Hamlib\/Hamlib\">https:\/\/github.com\/Hamlib\/Hamlib<\/a><\/p>\n<p>Instructions are somewhat vague. Here&#8217;s what I did.<\/p>\n<p>Install libtool:<\/p>\n<pre>sudo apt install libtool<\/pre>\n<p>Clone the repository, build, and install:<\/p>\n<pre>git clone https:\/\/github.com\/Hamlib\/Hamlib.git\r\ncd Hamlib\r\n.\/bootstrap\r\n.\/configure\r\nmake\r\nsudo make install<\/pre>\n<h4><\/h4>\n<h4>airspyhf<\/h4>\n<p>airspyhf library code from Airspy. Instructions here:\u00a0<a href=\"https:\/\/github.com\/airspy\/airspyhf\">https:\/\/github.com\/airspy\/airspyhf<\/a><\/p>\n<p>This is what I did, if I can remember correctly. You may need to install libusb, but if you have done all the stuff above you probably already have it.<\/p>\n<pre>git clone https:\/\/github.com\/airspy\/airspyhf\r\ncd airspyhf\r\nmkdir build\r\ncd build\r\ncmake ..\/ -DINSTALL_UDEV_RULES=ON&lt;\r\nmake\r\nsudo make install\r\nsudo ldconfig<\/pre>\n<h4><\/h4>\n<h4>SoapyAirspyHF<\/h4>\n<p>Now you can add the Soapy AirspyHF drivers. Instructions here:\u00a0\u00a0<a href=\"https:\/\/github.com\/pothosware\/SoapyAirspyHF\/wiki\">https:\/\/github.com\/pothosware\/SoapyAirspyHF\/wiki<\/a><\/p>\n<pre>git clone https:\/\/github.com\/pothosware\/SoapyAirspyHF.git\r\ncd SoapyAirspyHF\r\nmkdir build\r\ncd build\r\ncmake ..\r\nmake\r\nsudo make install\r\n\r\n<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to build SoapySDR and CubicSDR from source in Ubuntu 20.04 After unsuccessful attempts to compile SoapySDR and CubicSDR on Mac OS and Windows, I was able to get it running in Ubuntu 20.04.\u00a0 The whole process took about 2 hours but could be done in less time if you know what you are doing. &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/reactivemusic.net\/?p=20063\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Building SoapySDR and CubicSDR with Linux&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","footnotes":""},"categories":[230,332],"tags":[344,57,243],"class_list":["post-20063","post","type-post","status-publish","format-standard","hentry","category-development","category-radio-2","tag-dsp","tag-radio","tag-software-defined-radio"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Building SoapySDR and CubicSDR with Linux - reactive music<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/reactivemusic.net\/?p=20063\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Building SoapySDR and CubicSDR with Linux - reactive music\" \/>\n<meta property=\"og:description\" content=\"How to build SoapySDR and CubicSDR from source in Ubuntu 20.04 After unsuccessful attempts to compile SoapySDR and CubicSDR on Mac OS and Windows, I was able to get it running in Ubuntu 20.04.\u00a0 The whole process took about 2 hours but could be done in less time if you know what you are doing. &hellip; Continue reading &quot;Building SoapySDR and CubicSDR with Linux&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/reactivemusic.net\/?p=20063\" \/>\n<meta property=\"og:site_name\" content=\"reactive music\" \/>\n<meta property=\"article:published_time\" content=\"2021-02-03T02:45:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-02-03T05:31:30+00:00\" \/>\n<meta name=\"author\" content=\"Tom Zicarelli\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tom Zicarelli\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=20063#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=20063\"},\"author\":{\"name\":\"Tom Zicarelli\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#\\\/schema\\\/person\\\/56224d281582df7e5518e037ca63e571\"},\"headline\":\"Building SoapySDR and CubicSDR with Linux\",\"datePublished\":\"2021-02-03T02:45:51+00:00\",\"dateModified\":\"2021-02-03T05:31:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=20063\"},\"wordCount\":302,\"keywords\":[\"DSP\",\"radio\",\"software defined radio\"],\"articleSection\":[\"development\",\"Radio\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=20063\",\"url\":\"https:\\\/\\\/reactivemusic.net\\\/?p=20063\",\"name\":\"Building SoapySDR and CubicSDR with Linux - reactive music\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#website\"},\"datePublished\":\"2021-02-03T02:45:51+00:00\",\"dateModified\":\"2021-02-03T05:31:30+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#\\\/schema\\\/person\\\/56224d281582df7e5518e037ca63e571\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=20063#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/reactivemusic.net\\\/?p=20063\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=20063#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/reactivemusic.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Building SoapySDR and CubicSDR with Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#website\",\"url\":\"https:\\\/\\\/reactivemusic.net\\\/\",\"name\":\"reactive music\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/reactivemusic.net\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#\\\/schema\\\/person\\\/56224d281582df7e5518e037ca63e571\",\"name\":\"Tom Zicarelli\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0da58cf21a2707dd335b204b8ed3cd9194dcbf9d9814ac5d71195a65c76c8a72?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0da58cf21a2707dd335b204b8ed3cd9194dcbf9d9814ac5d71195a65c76c8a72?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0da58cf21a2707dd335b204b8ed3cd9194dcbf9d9814ac5d71195a65c76c8a72?s=96&d=mm&r=g\",\"caption\":\"Tom Zicarelli\"},\"sameAs\":[\"http:\\\/\\\/tomzicarelli.com\"],\"url\":\"https:\\\/\\\/reactivemusic.net\\\/?author=2\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Building SoapySDR and CubicSDR with Linux - reactive music","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/reactivemusic.net\/?p=20063","og_locale":"en_US","og_type":"article","og_title":"Building SoapySDR and CubicSDR with Linux - reactive music","og_description":"How to build SoapySDR and CubicSDR from source in Ubuntu 20.04 After unsuccessful attempts to compile SoapySDR and CubicSDR on Mac OS and Windows, I was able to get it running in Ubuntu 20.04.\u00a0 The whole process took about 2 hours but could be done in less time if you know what you are doing. &hellip; Continue reading \"Building SoapySDR and CubicSDR with Linux\"","og_url":"https:\/\/reactivemusic.net\/?p=20063","og_site_name":"reactive music","article_published_time":"2021-02-03T02:45:51+00:00","article_modified_time":"2021-02-03T05:31:30+00:00","author":"Tom Zicarelli","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Tom Zicarelli","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/reactivemusic.net\/?p=20063#article","isPartOf":{"@id":"https:\/\/reactivemusic.net\/?p=20063"},"author":{"name":"Tom Zicarelli","@id":"https:\/\/reactivemusic.net\/#\/schema\/person\/56224d281582df7e5518e037ca63e571"},"headline":"Building SoapySDR and CubicSDR with Linux","datePublished":"2021-02-03T02:45:51+00:00","dateModified":"2021-02-03T05:31:30+00:00","mainEntityOfPage":{"@id":"https:\/\/reactivemusic.net\/?p=20063"},"wordCount":302,"keywords":["DSP","radio","software defined radio"],"articleSection":["development","Radio"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/reactivemusic.net\/?p=20063","url":"https:\/\/reactivemusic.net\/?p=20063","name":"Building SoapySDR and CubicSDR with Linux - reactive music","isPartOf":{"@id":"https:\/\/reactivemusic.net\/#website"},"datePublished":"2021-02-03T02:45:51+00:00","dateModified":"2021-02-03T05:31:30+00:00","author":{"@id":"https:\/\/reactivemusic.net\/#\/schema\/person\/56224d281582df7e5518e037ca63e571"},"breadcrumb":{"@id":"https:\/\/reactivemusic.net\/?p=20063#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/reactivemusic.net\/?p=20063"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/reactivemusic.net\/?p=20063#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/reactivemusic.net\/"},{"@type":"ListItem","position":2,"name":"Building SoapySDR and CubicSDR with Linux"}]},{"@type":"WebSite","@id":"https:\/\/reactivemusic.net\/#website","url":"https:\/\/reactivemusic.net\/","name":"reactive music","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/reactivemusic.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/reactivemusic.net\/#\/schema\/person\/56224d281582df7e5518e037ca63e571","name":"Tom Zicarelli","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0da58cf21a2707dd335b204b8ed3cd9194dcbf9d9814ac5d71195a65c76c8a72?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0da58cf21a2707dd335b204b8ed3cd9194dcbf9d9814ac5d71195a65c76c8a72?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0da58cf21a2707dd335b204b8ed3cd9194dcbf9d9814ac5d71195a65c76c8a72?s=96&d=mm&r=g","caption":"Tom Zicarelli"},"sameAs":["http:\/\/tomzicarelli.com"],"url":"https:\/\/reactivemusic.net\/?author=2"}]}},"_links":{"self":[{"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/posts\/20063","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=20063"}],"version-history":[{"count":7,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/posts\/20063\/revisions"}],"predecessor-version":[{"id":20070,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/posts\/20063\/revisions\/20070"}],"wp:attachment":[{"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=20063"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=20063"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=20063"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}