Missing the big picture

General discussions
sdrplay
Posts: 978
Joined: Wed Jan 07, 2015 7:58 am

Re: Missing the big picture

Post by sdrplay » Thu Feb 25, 2016 8:01 am

If you can paste some of the errors I can try to help you get CubicSDR built.

Here's how I do it. I have created myself a small batch script...

#!/bin/csh
rm -rf CubicSDR
git clone https://github.com/cjcliffe/CubicSDR.git ./CubicSDR
cd CubicSDR
mkdir build
cd build
make ../ -DCMAKE_BUILD_TYPE=Release
make

then I run ./CubicSDR/build/x64/CubicSDR

I would do this in an empty directory so that you don't accidentally remove any existing directories.

Is it complaining about SoapySDR or another dependency? There is also a good group on the http://cubicsdr.com website to help with build issues. If SoapySDRUtil --probe=sdrplay is successful then at least you have the hardware side sorted out.

SDRplay
Last edited by sdrplay on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

Paul47
Posts: 16
Joined: Mon Feb 22, 2016 10:51 pm

Re: Missing the big picture

Post by Paul47 » Fri Feb 26, 2016 11:00 pm

OK. I started from scratch because I didn't know the state of my previous try, installing lubuntu 15.10 on a flash drive, and then following the various recipes, starting with this one:
https://github.com/pothosware/SoapySDR/wiki/BuildGuide

Everything was good until the cmake step for SoapySDR - Doxygen and python3 bindings were missing, but I continued on until I got a final error in running SoapySDRUtil --info to check if everything was OK. You can see the whole mess below. Please tell me what I did wrong, and how to recover.

Code: Select all

paul@sdr:~$ pwd
/home/paul
paul@sdr:~$ ls
Desktop  Documents  Downloads  Music  Pictures  Public  Templates  Videos
paul@sdr:~$ mkdir sdr
paul@sdr:~$ cd sdr
paul@sdr:~/sdr$ ls ../Downloads/
SDRplay_RSP_MiricsAPI-1.9.4.run
paul@sdr:~/sdr$ cp ../Downloads/SDRplay_RSP_MiricsAPI-1.9.4.run .
paul@sdr:~/sdr$ ./SDRplay_RSP_MiricsAPI-1.9.4.run
bash: ./SDRplay_RSP_MiricsAPI-1.9.4.run: Permission denied
paul@sdr:~/sdr$ sudo ./SDRplay_RSP_MiricsAPI-1.9.4.run
[sudo] password for paul: 
sudo: ./SDRplay_RSP_MiricsAPI-1.9.4.run: command not found
paul@sdr:~/sdr$ chmod 755 SDRplay_RSP_MiricsAPI-1.9.4.run
paul@sdr:~/sdr$ sudo ./SDRplay_RSP_MiricsAPI-1.9.4.run
Verifying archive integrity... All good.
Uncompressing SDRplay Mirics API Install Package V1.9.4  100%  
Installing SDRplay RSP Mirics API library...
Architecture: x86_64
API Version: 1.8.1
Remove old libraries...
Install /usr/local/lib/libmirsdrapi-rsp.so
Remove old header files...
Install /usr/local/include/mirsdrapi-rsp.h
Udev rules directory found, adding rules...
Libusb found, continuing...
Installing SoapySDRPlay...
Installing SoapySDR...
Finished.
paul@sdr:~/sdr$ pwd
/home/paul/sdr
paul@sdr:~/sdr$ ls
SDRplay_RSP_MiricsAPI-1.9.4.run
paul@sdr:~/sdr$ lsmod|grep msi
paul@sdr:~/sdr$ ls /etc/default
alsa     apport        console-setup  cron        dbus    grub  im-config   keyboard  networking  ntp  rsync    ufw
anacron  bsdmainutils  crda           cryptdisks  devpts  halt  irqbalance  locale    nss         rcS  rsyslog  useradd
paul@sdr:~/sdr$ ls /etc/modprobe.d
alsa-base.conf          blacklist.conf           blacklist-framebuffer.conf  blacklist-oss.conf           blacklist-watchdog.conf  iwlwifi.conf     mlx4.conf
blacklist-ath_pci.conf  blacklist-firewire.conf  blacklist-modem.conf        blacklist-rare-network.conf  fbdev-blacklist.conf     libpisock9.conf  vmwgfx-fbdev.conf
paul@sdr:~/sdr$ sudo nano /etc/modprobe.d/blacklist.conf
paul@sdr:~/sdr$ 
paul@sdr:~/sdr$ 
paul@sdr:~/sdr$ 
paul@sdr:~/sdr$ 
paul@sdr:~/sdr$ 
paul@sdr:~/sdr$ 
paul@sdr:~/sdr$ sudo apt-get install \
>     cmake g++ \
>     libpython-dev python-numpy swig
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  binutils cmake-data g++-5 gcc gcc-5 libasan2 libatomic1 libblas-common libblas3 libc-dev-bin libc6-dev libcc1-0 libcilkrts5 libexpat1-dev libgcc-5-dev libgfortran3 libitm1
  libjsoncpp0v5 liblapack3 liblsan0 libmpx0 libpython2.7-dev libstdc++-5-dev libtsan0 libubsan0 linux-libc-dev make manpages-dev swig2.0
Suggested packages:
  binutils-doc codeblocks eclipse ninja-build g++-multilib g++-5-multilib gcc-5-doc libstdc++6-5-dbg gcc-multilib autoconf automake libtool flex bison gdb gcc-doc
  gcc-5-multilib gcc-5-locales libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg libasan2-dbg liblsan0-dbg libtsan0-dbg libubsan0-dbg libcilkrts5-dbg libmpx0-dbg
  libquadmath0-dbg glibc-doc libstdc++-5-doc make-doc gfortran python-dev python-nose python-numpy-dbg python-numpy-doc swig-doc swig-examples swig2.0-examples swig2.0-doc
The following NEW packages will be installed:
  binutils cmake cmake-data g++ g++-5 gcc gcc-5 libasan2 libatomic1 libblas-common libblas3 libc-dev-bin libc6-dev libcc1-0 libcilkrts5 libexpat1-dev libgcc-5-dev libgfortran3
  libitm1 libjsoncpp0v5 liblapack3 liblsan0 libmpx0 libpython-dev libpython2.7-dev libstdc++-5-dev libtsan0 libubsan0 linux-libc-dev make manpages-dev python-numpy swig
  swig2.0
0 upgraded, 34 newly installed, 0 to remove and 1 not upgraded.
Need to get 69.9 MB of archives.
After this operation, 200 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://us.archive.ubuntu.com/ubuntu/ wily/main cmake-data all 3.2.2-2ubuntu3 [1,029 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ wily/main libjsoncpp0v5 amd64 0.10.5-1 [74.2 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ wily/main cmake amd64 3.2.2-2ubuntu3 [2,536 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu/ wily-updates/main binutils amd64 2.25.1-6ubuntu2 [2,281 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu/ wily/main libcc1-0 amd64 5.2.1-22ubuntu2 [31.0 kB]                                                                                   
Get:6 http://us.archive.ubuntu.com/ubuntu/ wily/main libitm1 amd64 5.2.1-22ubuntu2 [27.4 kB]                                                                                    
Get:7 http://us.archive.ubuntu.com/ubuntu/ wily/main libatomic1 amd64 5.2.1-22ubuntu2 [8,950 B]                                                                                 
Get:8 http://us.archive.ubuntu.com/ubuntu/ wily/main libasan2 amd64 5.2.1-22ubuntu2 [269 kB]                                                                                    
Get:9 http://us.archive.ubuntu.com/ubuntu/ wily/main liblsan0 amd64 5.2.1-22ubuntu2 [110 kB]                                                                                    
Get:10 http://us.archive.ubuntu.com/ubuntu/ wily/main libtsan0 amd64 5.2.1-22ubuntu2 [249 kB]                                                                                   
Get:11 http://us.archive.ubuntu.com/ubuntu/ wily/main libubsan0 amd64 5.2.1-22ubuntu2 [100 kB]                                                                                  
Get:12 http://us.archive.ubuntu.com/ubuntu/ wily/main libcilkrts5 amd64 5.2.1-22ubuntu2 [40.0 kB]                                                                               
Get:13 http://us.archive.ubuntu.com/ubuntu/ wily/main libmpx0 amd64 5.2.1-22ubuntu2 [9,822 B]                                                                                   
Get:14 http://us.archive.ubuntu.com/ubuntu/ wily/main libgcc-5-dev amd64 5.2.1-22ubuntu2 [2,228 kB]                                                                             
Get:15 http://us.archive.ubuntu.com/ubuntu/ wily/main gcc-5 amd64 5.2.1-22ubuntu2 [6,708 kB]                                                                                    
Get:16 http://us.archive.ubuntu.com/ubuntu/ wily/main gcc amd64 4:5.2.1-3ubuntu1 [5,204 B]                                                                                      
Get:17 http://us.archive.ubuntu.com/ubuntu/ wily-updates/main libc-dev-bin amd64 2.21-0ubuntu4.1 [68.6 kB]                                                                      
Get:18 http://us.archive.ubuntu.com/ubuntu/ wily-updates/main linux-libc-dev amd64 4.2.0-30.36 [829 kB]                                                                         
Get:19 http://us.archive.ubuntu.com/ubuntu/ wily-updates/main libc6-dev amd64 2.21-0ubuntu4.1 [1,958 kB]                                                                        
Get:20 http://us.archive.ubuntu.com/ubuntu/ wily/main libstdc++-5-dev amd64 5.2.1-22ubuntu2 [1,423 kB]                                                                          
Get:21 http://us.archive.ubuntu.com/ubuntu/ wily/main g++-5 amd64 5.2.1-22ubuntu2 [15.3 MB]                                                                                     
Get:22 http://us.archive.ubuntu.com/ubuntu/ wily/main g++ amd64 4:5.2.1-3ubuntu1 [1,506 B]                                                                                      
Get:23 http://us.archive.ubuntu.com/ubuntu/ wily/main libblas-common amd64 1.2.20110419-10 [3,058 B]                                                                            
Get:24 http://us.archive.ubuntu.com/ubuntu/ wily/main libblas3 amd64 1.2.20110419-10 [161 kB]                                                                                   
Get:25 http://us.archive.ubuntu.com/ubuntu/ wily/main libexpat1-dev amd64 2.1.0-7 [115 kB]                                                                                      
Get:26 http://us.archive.ubuntu.com/ubuntu/ wily/main libgfortran3 amd64 5.2.1-22ubuntu2 [258 kB]                                                                               
Get:27 http://us.archive.ubuntu.com/ubuntu/ wily/main liblapack3 amd64 3.5.0-4 [1,844 kB]                                                                                       
Get:28 http://us.archive.ubuntu.com/ubuntu/ wily/main libpython2.7-dev amd64 2.7.10-4ubuntu1 [27.7 MB]                                                                          
Get:29 http://us.archive.ubuntu.com/ubuntu/ wily/main libpython-dev amd64 2.7.9-1 [7,836 B]                                                                                     
Get:30 http://us.archive.ubuntu.com/ubuntu/ wily/main make amd64 4.0-8.2 [149 kB]                                                                                               
Get:31 http://us.archive.ubuntu.com/ubuntu/ wily/main manpages-dev all 3.74-1ubuntu1 [1,865 kB]                                                                                 
Get:32 http://us.archive.ubuntu.com/ubuntu/ wily/main python-numpy amd64 1:1.8.2-1ubuntu2 [1,639 kB]                                                                            
Get:33 http://us.archive.ubuntu.com/ubuntu/ wily/main swig2.0 amd64 2.0.12-1ubuntu1 [875 kB]                                                                                    
Get:34 http://us.archive.ubuntu.com/ubuntu/ wily/main swig amd64 2.0.12-1ubuntu1 [6,320 B]                                                                                      
Fetched 69.9 MB in 1min 24s (823 kB/s)                                                                                                                                          
Extracting templates from packages: 100%
Selecting previously unselected package cmake-data.
(Reading database ... 140037 files and directories currently installed.)
Preparing to unpack .../cmake-data_3.2.2-2ubuntu3_all.deb ...
Unpacking cmake-data (3.2.2-2ubuntu3) ...
Selecting previously unselected package libjsoncpp0v5:amd64.
Preparing to unpack .../libjsoncpp0v5_0.10.5-1_amd64.deb ...
Unpacking libjsoncpp0v5:amd64 (0.10.5-1) ...
Selecting previously unselected package cmake.
Preparing to unpack .../cmake_3.2.2-2ubuntu3_amd64.deb ...
Unpacking cmake (3.2.2-2ubuntu3) ...
Selecting previously unselected package binutils.
Preparing to unpack .../binutils_2.25.1-6ubuntu2_amd64.deb ...
Unpacking binutils (2.25.1-6ubuntu2) ...
Selecting previously unselected package libcc1-0:amd64.
Preparing to unpack .../libcc1-0_5.2.1-22ubuntu2_amd64.deb ...
Unpacking libcc1-0:amd64 (5.2.1-22ubuntu2) ...
Selecting previously unselected package libitm1:amd64.
Preparing to unpack .../libitm1_5.2.1-22ubuntu2_amd64.deb ...
Unpacking libitm1:amd64 (5.2.1-22ubuntu2) ...
Selecting previously unselected package libatomic1:amd64.
Preparing to unpack .../libatomic1_5.2.1-22ubuntu2_amd64.deb ...
Unpacking libatomic1:amd64 (5.2.1-22ubuntu2) ...
Selecting previously unselected package libasan2:amd64.
Preparing to unpack .../libasan2_5.2.1-22ubuntu2_amd64.deb ...
Unpacking libasan2:amd64 (5.2.1-22ubuntu2) ...
Selecting previously unselected package liblsan0:amd64.
Preparing to unpack .../liblsan0_5.2.1-22ubuntu2_amd64.deb ...
Unpacking liblsan0:amd64 (5.2.1-22ubuntu2) ...
Selecting previously unselected package libtsan0:amd64.
Preparing to unpack .../libtsan0_5.2.1-22ubuntu2_amd64.deb ...
Unpacking libtsan0:amd64 (5.2.1-22ubuntu2) ...
Selecting previously unselected package libubsan0:amd64.
Preparing to unpack .../libubsan0_5.2.1-22ubuntu2_amd64.deb ...
Unpacking libubsan0:amd64 (5.2.1-22ubuntu2) ...
Selecting previously unselected package libcilkrts5:amd64.
Preparing to unpack .../libcilkrts5_5.2.1-22ubuntu2_amd64.deb ...
Unpacking libcilkrts5:amd64 (5.2.1-22ubuntu2) ...
Selecting previously unselected package libmpx0:amd64.
Preparing to unpack .../libmpx0_5.2.1-22ubuntu2_amd64.deb ...
Unpacking libmpx0:amd64 (5.2.1-22ubuntu2) ...
Selecting previously unselected package libgcc-5-dev:amd64.
Preparing to unpack .../libgcc-5-dev_5.2.1-22ubuntu2_amd64.deb ...
Unpacking libgcc-5-dev:amd64 (5.2.1-22ubuntu2) ...
Selecting previously unselected package gcc-5.
Preparing to unpack .../gcc-5_5.2.1-22ubuntu2_amd64.deb ...
Unpacking gcc-5 (5.2.1-22ubuntu2) ...
Selecting previously unselected package gcc.
Preparing to unpack .../gcc_4%3a5.2.1-3ubuntu1_amd64.deb ...
Unpacking gcc (4:5.2.1-3ubuntu1) ...
Selecting previously unselected package libc-dev-bin.
Preparing to unpack .../libc-dev-bin_2.21-0ubuntu4.1_amd64.deb ...
Unpacking libc-dev-bin (2.21-0ubuntu4.1) ...
Selecting previously unselected package linux-libc-dev:amd64.
Preparing to unpack .../linux-libc-dev_4.2.0-30.36_amd64.deb ...
Unpacking linux-libc-dev:amd64 (4.2.0-30.36) ...
Selecting previously unselected package libc6-dev:amd64.
Preparing to unpack .../libc6-dev_2.21-0ubuntu4.1_amd64.deb ...
Unpacking libc6-dev:amd64 (2.21-0ubuntu4.1) ...
Selecting previously unselected package libstdc++-5-dev:amd64.
Preparing to unpack .../libstdc++-5-dev_5.2.1-22ubuntu2_amd64.deb ...
Unpacking libstdc++-5-dev:amd64 (5.2.1-22ubuntu2) ...
Selecting previously unselected package g++-5.
Preparing to unpack .../g++-5_5.2.1-22ubuntu2_amd64.deb ...
Unpacking g++-5 (5.2.1-22ubuntu2) ...
Selecting previously unselected package g++.
Preparing to unpack .../g++_4%3a5.2.1-3ubuntu1_amd64.deb ...
Unpacking g++ (4:5.2.1-3ubuntu1) ...
Selecting previously unselected package libblas-common.
Preparing to unpack .../libblas-common_1.2.20110419-10_amd64.deb ...
Unpacking libblas-common (1.2.20110419-10) ...
Selecting previously unselected package libblas3.
Preparing to unpack .../libblas3_1.2.20110419-10_amd64.deb ...
Unpacking libblas3 (1.2.20110419-10) ...
Selecting previously unselected package libexpat1-dev:amd64.
Preparing to unpack .../libexpat1-dev_2.1.0-7_amd64.deb ...
Unpacking libexpat1-dev:amd64 (2.1.0-7) ...
Selecting previously unselected package libgfortran3:amd64.
Preparing to unpack .../libgfortran3_5.2.1-22ubuntu2_amd64.deb ...
Unpacking libgfortran3:amd64 (5.2.1-22ubuntu2) ...
Selecting previously unselected package liblapack3.
Preparing to unpack .../liblapack3_3.5.0-4_amd64.deb ...
Unpacking liblapack3 (3.5.0-4) ...
Selecting previously unselected package libpython2.7-dev:amd64.
Preparing to unpack .../libpython2.7-dev_2.7.10-4ubuntu1_amd64.deb ...
Unpacking libpython2.7-dev:amd64 (2.7.10-4ubuntu1) ...
Selecting previously unselected package libpython-dev:amd64.
Preparing to unpack .../libpython-dev_2.7.9-1_amd64.deb ...
Unpacking libpython-dev:amd64 (2.7.9-1) ...
Selecting previously unselected package make.
Preparing to unpack .../make_4.0-8.2_amd64.deb ...
Unpacking make (4.0-8.2) ...
Selecting previously unselected package manpages-dev.
Preparing to unpack .../manpages-dev_3.74-1ubuntu1_all.deb ...
Unpacking manpages-dev (3.74-1ubuntu1) ...
Selecting previously unselected package python-numpy.
Preparing to unpack .../python-numpy_1%3a1.8.2-1ubuntu2_amd64.deb ...
Unpacking python-numpy (1:1.8.2-1ubuntu2) ...
Selecting previously unselected package swig2.0.
Preparing to unpack .../swig2.0_2.0.12-1ubuntu1_amd64.deb ...
Unpacking swig2.0 (2.0.12-1ubuntu1) ...
Selecting previously unselected package swig.
Preparing to unpack .../swig_2.0.12-1ubuntu1_amd64.deb ...
Unpacking swig (2.0.12-1ubuntu1) ...
Processing triggers for man-db (2.7.4-1) ...
Setting up cmake-data (3.2.2-2ubuntu3) ...
Setting up libjsoncpp0v5:amd64 (0.10.5-1) ...
Setting up cmake (3.2.2-2ubuntu3) ...
Setting up binutils (2.25.1-6ubuntu2) ...
Setting up libcc1-0:amd64 (5.2.1-22ubuntu2) ...
Setting up libitm1:amd64 (5.2.1-22ubuntu2) ...
Setting up libatomic1:amd64 (5.2.1-22ubuntu2) ...
Setting up libasan2:amd64 (5.2.1-22ubuntu2) ...
Setting up liblsan0:amd64 (5.2.1-22ubuntu2) ...
Setting up libtsan0:amd64 (5.2.1-22ubuntu2) ...
Setting up libubsan0:amd64 (5.2.1-22ubuntu2) ...
Setting up libcilkrts5:amd64 (5.2.1-22ubuntu2) ...
Setting up libmpx0:amd64 (5.2.1-22ubuntu2) ...
Setting up libgcc-5-dev:amd64 (5.2.1-22ubuntu2) ...
Setting up gcc-5 (5.2.1-22ubuntu2) ...
Setting up gcc (4:5.2.1-3ubuntu1) ...
Setting up libc-dev-bin (2.21-0ubuntu4.1) ...
Setting up linux-libc-dev:amd64 (4.2.0-30.36) ...
Setting up libc6-dev:amd64 (2.21-0ubuntu4.1) ...
Setting up libstdc++-5-dev:amd64 (5.2.1-22ubuntu2) ...
Setting up g++-5 (5.2.1-22ubuntu2) ...
Setting up g++ (4:5.2.1-3ubuntu1) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
Setting up libblas-common (1.2.20110419-10) ...
Setting up libblas3 (1.2.20110419-10) ...
update-alternatives: using /usr/lib/libblas/libblas.so.3 to provide /usr/lib/libblas.so.3 (libblas.so.3) in auto mode
Setting up libexpat1-dev:amd64 (2.1.0-7) ...
Setting up libgfortran3:amd64 (5.2.1-22ubuntu2) ...
Setting up liblapack3 (3.5.0-4) ...
update-alternatives: using /usr/lib/lapack/liblapack.so.3 to provide /usr/lib/liblapack.so.3 (liblapack.so.3) in auto mode
Setting up libpython2.7-dev:amd64 (2.7.10-4ubuntu1) ...
Setting up libpython-dev:amd64 (2.7.9-1) ...
Setting up make (4.0-8.2) ...
Setting up manpages-dev (3.74-1ubuntu1) ...
Setting up python-numpy (1:1.8.2-1ubuntu2) ...
Setting up swig2.0 (2.0.12-1ubuntu1) ...
Setting up swig (2.0.12-1ubuntu1) ...
Processing triggers for libc-bin (2.21-0ubuntu4.1) ...
paul@sdr:~/sdr$ 
paul@sdr:~/sdr$ 
paul@sdr:~/sdr$ 
paul@sdr:~/sdr$ 
paul@sdr:~/sdr$ 
paul@sdr:~/sdr$ pwd
/home/paul/sdr
paul@sdr:~/sdr$ git clone https://github.com/pothosware/SoapySDR.git
The program 'git' is currently not installed. You can install it by typing:
sudo apt-get install git
paul@sdr:~/sdr$ sudo apt-get install git
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  git-man liberror-perl
Suggested packages:
  git-daemon-run git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-arch git-cvs git-mediawiki git-svn
The following NEW packages will be installed:
  git git-man liberror-perl
0 upgraded, 3 newly installed, 0 to remove and 1 not upgraded.
Need to get 3,759 kB of archives.
After this operation, 24.6 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://us.archive.ubuntu.com/ubuntu/ wily/main liberror-perl all 0.17-1.1 [21.1 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ wily-updates/main git-man all 1:2.5.0-1ubuntu0.1 [728 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ wily-updates/main git amd64 1:2.5.0-1ubuntu0.1 [3,009 kB]
Fetched 3,759 kB in 4s (927 kB/s)
Selecting previously unselected package liberror-perl.
(Reading database ... 147742 files and directories currently installed.)
Preparing to unpack .../liberror-perl_0.17-1.1_all.deb ...
Unpacking liberror-perl (0.17-1.1) ...
Selecting previously unselected package git-man.
Preparing to unpack .../git-man_1%3a2.5.0-1ubuntu0.1_all.deb ...
Unpacking git-man (1:2.5.0-1ubuntu0.1) ...
Selecting previously unselected package git.
Preparing to unpack .../git_1%3a2.5.0-1ubuntu0.1_amd64.deb ...
Unpacking git (1:2.5.0-1ubuntu0.1) ...
Processing triggers for man-db (2.7.4-1) ...
Setting up liberror-perl (0.17-1.1) ...
Setting up git-man (1:2.5.0-1ubuntu0.1) ...
Setting up git (1:2.5.0-1ubuntu0.1) ...
paul@sdr:~/sdr$ 
paul@sdr:~/sdr$ 
paul@sdr:~/sdr$ 
paul@sdr:~/sdr$ git clone https://github.com/pothosware/SoapySDR.git
Cloning into 'SoapySDR'...
remote: Counting objects: 3973, done.
remote: Total 3973 (delta 0), reused 0 (delta 0), pack-reused 3973
Receiving objects: 100% (3973/3973), 1.91 MiB | 472.00 KiB/s, done.
Resolving deltas: 100% (2985/2985), done.
Checking connectivity... done.
paul@sdr:~/sdr$ ls
SDRplay_RSP_MiricsAPI-1.9.4.run  SoapySDR
paul@sdr:~/sdr$ cd SoapySDR
paul@sdr:~/sdr/SoapySDR$ mkdir build
paul@sdr:~/sdr/SoapySDR$ cd build
paul@sdr:~/sdr/SoapySDR/build$ cmake ..
-- The C compiler identification is GNU 5.2.1
-- The CXX compiler identification is GNU 5.2.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Build type not specified: defaulting to release.
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE) 
-- 
-- #############################################
-- ## Begin configuration for Python support...
-- #############################################
-- Enabling optional Python bindings if possible...
-- Found SWIG: /usr/bin/swig2.0 (found version "2.0.12") 
-- SWIG_FOUND: TRUE - 2.0.12
-- Found PythonInterp: /usr/bin/python (found version "2.7.10") 
-- PYTHONINTERP_FOUND: TRUE - 2.7.10
-- PYTHON_EXECUTABLE: /usr/bin/python
-- PYTHON_INSTALL_DIR: ${prefix}/lib/python2.7/dist-packages
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found version "2.7.10") 
-- PYTHONLIBS_FOUND: TRUE - 2.7.10
-- PYTHON_INCLUDE_DIRS: /usr/include/python2.7
-- PYTHON_LIBRARIES: /usr/lib/x86_64-linux-gnu/libpython2.7.so
-- 
-- #############################################
-- ## Begin configuration for Python3 support...
-- #############################################
-- Enabling optional Python3 bindings if possible...
-- SWIG_FOUND: TRUE - 2.0.12
-- Found Python3Interp: /usr/bin/python3  
-- Could NOT find Python3InterpDbg (missing:  PYTHON3_DBG_EXECUTABLE) 
-- PYTHON3INTERP_FOUND: TRUE
-- PYTHON3_EXECUTABLE: /usr/bin/python3
-- PYTHON3_INSTALL_DIR: ${prefix}/lib/python3/dist-packages
-- Could NOT find Python3Libs (missing:  PYTHON3_LIBRARIES PYTHON3_INCLUDE_DIRS) 
-- PYTHON3LIBS_FOUND: FALSE
-- PYTHON3_INCLUDE_DIRS: PYTHON3_INCLUDE_DIR-NOTFOUND
-- PYTHON3_LIBRARIES: PYTHON3_LIBRARY-NOTFOUND
-- 
-- ######################################################
-- ## SoapySDR enabled features
-- ######################################################
-- 
 * Library , runtime library v0.4.1-gaee78eb1
 * Tests , library unit tests
 * Python , python bindings v2.7.10

-- ######################################################
-- ## SoapySDR disabled features
-- ######################################################
-- 
 * Docs , doxygen documentation
 * Python3 , python3 bindings

-- SoapySDR version: v0.4.1-gaee78eb1
-- ABI/so version: v0.4-2
-- Install prefix: /usr/local
-- Configuring done
-- Generating done
-- Build files have been written to: /home/paul/sdr/SoapySDR/build
paul@sdr:~/sdr/SoapySDR/build$ 
paul@sdr:~/sdr/SoapySDR/build$ make -j4
Scanning dependencies of target SoapySDR
[  4%] [  8%] [ 12%] [ 16%] Building CXX object lib/CMakeFiles/SoapySDR.dir/Factory.cpp.o
Building CXX object lib/CMakeFiles/SoapySDR.dir/Device.cpp.o
Building CXX object lib/CMakeFiles/SoapySDR.dir/Registry.cpp.o
Building CXX object lib/CMakeFiles/SoapySDR.dir/Types.cpp.o
[ 20%] Building CXX object lib/CMakeFiles/SoapySDR.dir/NullDevice.cpp.o
[ 24%] Building CXX object lib/CMakeFiles/SoapySDR.dir/Logger.cpp.o
[ 28%] Building CXX object lib/CMakeFiles/SoapySDR.dir/Errors.cpp.o
[ 32%] Building CXX object lib/CMakeFiles/SoapySDR.dir/Formats.cpp.o
[ 36%] Building CXX object lib/CMakeFiles/SoapySDR.dir/Modules.cpp.o
[ 40%] Building CXX object lib/CMakeFiles/SoapySDR.dir/Version.cpp.o
[ 44%] Building CXX object lib/CMakeFiles/SoapySDR.dir/TypesC.cpp.o
[ 48%] Building CXX object lib/CMakeFiles/SoapySDR.dir/ModulesC.cpp.o
[ 52%] Building CXX object lib/CMakeFiles/SoapySDR.dir/VersionC.cpp.o
[ 56%] Building CXX object lib/CMakeFiles/SoapySDR.dir/DeviceC.cpp.o
[ 60%] Building CXX object lib/CMakeFiles/SoapySDR.dir/FactoryC.cpp.o
[ 64%] Building CXX object lib/CMakeFiles/SoapySDR.dir/LoggerC.cpp.o
[ 68%] Building CXX object lib/CMakeFiles/SoapySDR.dir/TimeC.cpp.o
[ 72%] Building CXX object lib/CMakeFiles/SoapySDR.dir/ErrorsC.cpp.o
[ 76%] Building CXX object lib/CMakeFiles/SoapySDR.dir/FormatsC.cpp.o
Linking CXX shared library libSoapySDR.so
[ 76%] Built target SoapySDR
Scanning dependencies of target SoapySDRUtil
[ 80%] Scanning dependencies of target TestTimeConversion
Scanning dependencies of target TestFormatParser
Swig source
[ 84%] Building CXX object apps/CMakeFiles/SoapySDRUtil.dir/SoapySDRUtil.cpp.o
[ 88%] [ 92%] Building CXX object tests/CMakeFiles/TestFormatParser.dir/TestFormatParser.cpp.o
Building CXX object tests/CMakeFiles/TestTimeConversion.dir/TestTimeConversion.cpp.o
Linking CXX executable TestTimeConversion
Linking CXX executable TestFormatParser
[ 92%] Built target TestTimeConversion
[ 96%] Building CXX object apps/CMakeFiles/SoapySDRUtil.dir/SoapySDRProbe.cpp.o
[ 96%] Built target TestFormatParser
Scanning dependencies of target _SoapySDR
[100%] Building CXX object python/CMakeFiles/_SoapySDR.dir/SoapySDRPYTHON_wrap.cxx.o
Linking CXX executable SoapySDRUtil
[100%] Built target SoapySDRUtil
Linking CXX shared module _SoapySDR.so
[100%] Built target _SoapySDR
paul@sdr:~/sdr/SoapySDR/build$ 
paul@sdr:~/sdr/SoapySDR/build$ 
paul@sdr:~/sdr/SoapySDR/build$ sudo make install
[ 76%] Built target SoapySDR
[ 84%] Built target SoapySDRUtil
[ 88%] Built target TestFormatParser
[ 92%] Built target TestTimeConversion
[100%] Built target _SoapySDR
Install the project...
-- Install configuration: "Release"
-- Installing: /usr/local/share/cmake/SoapySDR/SoapySDRConfig.cmake
-- Installing: /usr/local/share/cmake/SoapySDR/SoapySDRUtil.cmake
-- Installing: /usr/local/share/cmake/SoapySDR/SoapySDRConfigVersion.cmake
-- Installing: /usr/local/include/SoapySDR
-- Installing: /usr/local/include/SoapySDR/Types.hpp
-- Installing: /usr/local/include/SoapySDR/Errors.hpp
-- Installing: /usr/local/include/SoapySDR/Time.h
-- Installing: /usr/local/include/SoapySDR/Version.h
-- Installing: /usr/local/include/SoapySDR/Types.h
-- Installing: /usr/local/include/SoapySDR/Registry.hpp
-- Installing: /usr/local/include/SoapySDR/Logger.h
-- Installing: /usr/local/include/SoapySDR/Errors.h
-- Installing: /usr/local/include/SoapySDR/Formats.h
-- Installing: /usr/local/include/SoapySDR/Version.hpp
-- Installing: /usr/local/include/SoapySDR/Modules.h
-- Installing: /usr/local/include/SoapySDR/Time.hpp
-- Installing: /usr/local/include/SoapySDR/Constants.h
-- Installing: /usr/local/include/SoapySDR/Modules.hpp
-- Installing: /usr/local/include/SoapySDR/Logger.hpp
-- Installing: /usr/local/include/SoapySDR/Formats.hpp
-- Installing: /usr/local/include/SoapySDR/Config.h
-- Installing: /usr/local/include/SoapySDR/Device.hpp
-- Installing: /usr/local/include/SoapySDR/Config.hpp
-- Installing: /usr/local/include/SoapySDR/Device.h
-- Installing: /usr/local/lib/libSoapySDR.so.0.4.1
-- Installing: /usr/local/lib/libSoapySDR.so.0.4-2
-- Installing: /usr/local/lib/libSoapySDR.so
-- Installing: /usr/local/lib/pkgconfig/SoapySDR.pc
-- Installing: /usr/local/bin/SoapySDRUtil
-- Removed runtime path from "/usr/local/bin/SoapySDRUtil"
-- Installing: /usr/local/lib/python2.7/dist-packages/_SoapySDR.so
-- Removed runtime path from "/usr/local/lib/python2.7/dist-packages/_SoapySDR.so"
-- Installing: /usr/local/lib/python2.7/dist-packages/SoapySDR.py
paul@sdr:~/sdr/SoapySDR/build$ 
paul@sdr:~/sdr/SoapySDR/build$ 
paul@sdr:~/sdr/SoapySDR/build$ sudo ldconfig
paul@sdr:~/sdr/SoapySDR/build$ 
paul@sdr:~/sdr/SoapySDR/build$ 
paul@sdr:~/sdr/SoapySDR/build$ SoapySDRUtil --info
######################################################
## Soapy SDR -- the SDR abstraction library
######################################################

API Version: v0.4.1-gaee78eb1
ABI Version: v0.4-2
Install root: /usr/local
Module found: /usr/local/lib/SoapySDR/modules/libsdrPlaySupport.so
Loading modules... [ERROR] SoapySDR::loadModule(/usr/local/lib/SoapySDR/modules/libsdrPlaySupport.so)
  dlopen() failed: /usr/local/lib/SoapySDR/modules/libsdrPlaySupport.so: undefined symbol: _ZN8SoapySDR6Device18setFrontendMappingEiRKSs
done
Available factories...null, 
paul@sdr:~/sdr/SoapySDR/build$ 
paul@sdr:~/sdr/SoapySDR/build$ 
paul@sdr:~/sdr/SoapySDR/build$ ls /usr/local/lib/SoapySDR/modules/libsdrPlaySupport.so
/usr/local/lib/SoapySDR/modules/libsdrPlaySupport.so
paul@sdr:~/sdr/SoapySDR/build$ 
paul@sdr:~/sdr/SoapySDR/build$ 
paul@sdr:~/sdr/SoapySDR/build$ 
Last edited by Paul47 on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

sdrplay
Posts: 978
Joined: Wed Jan 07, 2015 7:58 am

Re: Missing the big picture

Post by sdrplay » Fri Feb 26, 2016 11:59 pm

If you are building SoapySDR then you have to build SoapySDRPlay as well: https://github.com/pothosware/SoapySDRPlay/wiki

Best regards,

SDRplay Support
Last edited by sdrplay on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

Paul47
Posts: 16
Joined: Mon Feb 22, 2016 10:51 pm

Re: Missing the big picture

Post by Paul47 » Sat Feb 27, 2016 1:54 am

Are you telling me to ignore the errors??

I was intending to build sdrsoapyplay, just as soon as I got done with sdrsoapy first. There seems no point in going on until I deal with these errors.
Last edited by Paul47 on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

sdrplay
Posts: 978
Joined: Wed Jan 07, 2015 7:58 am

Re: Missing the big picture

Post by sdrplay » Sat Feb 27, 2016 7:51 am

The errors are loading the SoapySDRPlay library. That also has to be built if you are not using the supplied ones that come with the API installation. If you build one, you need to build both. If there is an issue with SoapySDRPlay dependency you will find it by building it.

Hope that makes sense.

Best regards,

SDRplay.
Last edited by sdrplay on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

Paul47
Posts: 16
Joined: Mon Feb 22, 2016 10:51 pm

Re: Missing the big picture

Post by Paul47 » Sun Feb 28, 2016 2:46 am

OK, so invoking SoapySDRUtil at that point was wrong.

I built SoapySDRPlay. It generated several warnings about uninitialized or unused variables. :roll: But anyway when done SoapySDRUtil then worked as predicted.

Then I tried your recipe to generate CubicSDR. That first "make" should be "cmake" by the way... Then when I fixed that it got an error about OpenGL missing. So I went to that other recipe here:
https://github.com/cjcliffe/CubicSDR/wiki/Build-Linux

I got the base dependencies and the freeglut things (a LOT of stuff). Then I tried the Cubic cmake again and got a complaint about liquid libraries. So I went to their recipe for that farther down the page, and did the git and bootstrap.sh. The latter failed as aclocal, autoconf and autoheader was not there. So now I'm stuck at that point.
Last edited by Paul47 on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

Paul47
Posts: 16
Joined: Mon Feb 22, 2016 10:51 pm

Re: Missing the big picture

Post by Paul47 » Mon Feb 29, 2016 10:19 pm

Perhaps you want the error messages!

The first error about opengl:

Code: Select all

CMake Error at /usr/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
  Could NOT find OpenGL (missing: OPENGL_gl_LIBRARY OPENGL_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:374 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.2/Modules/FindOpenGL.cmake:168 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:128 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/paul/sdr/CubicSDR/build/CMakeFiles/CMakeOutput.log".
The second error about liquid (opengl problem apparently fixed):

Code: Select all

paul@sdr:~/sdr/CubicSDR/build$ cmake ../ -DCMAKE_BUILD_TYPE=Release
64 bit compiler detected
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so  
-- Found FFTW: /usr/lib/x86_64-linux-gnu/libfftw3.so  
-- Could NOT find LIQUID (missing:  LIQUID_LIBRARIES LIQUID_INCLUDES) 
-- Found wxWidgets: TRUE  
-- Copying /home/paul/sdr/CubicSDR/font/*.fnt to directory /home/paul/sdr/CubicSDR/build/x64
-- Configuring file vera_sans_mono48.fnt
-- Configuring file vera_sans_mono24.fnt
-- Configuring file vera_sans_mono12.fnt
-- Configuring file vera_sans_mono18.fnt
-- Configuring file vera_sans_mono32.fnt
-- Configuring file vera_sans_mono16.fnt
-- Copying /home/paul/sdr/CubicSDR/font/*.png to directory /home/paul/sdr/CubicSDR/build/x64
-- Configuring file vera_sans_mono48_0.png
-- Configuring file vera_sans_mono16_0.png
-- Configuring file vera_sans_mono18_0.png
-- Configuring file vera_sans_mono32_0.png
-- Configuring file vera_sans_mono12_0.png
-- Configuring file vera_sans_mono24_0.png
-- Copying /home/paul/sdr/CubicSDR/icon/CubicSDR.ico to directory /home/paul/sdr/CubicSDR/build/x64
-- Configuring file CubicSDR.ico
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LIQUID_INCLUDES
   used as include directory in directory /home/paul/sdr/CubicSDR
   used as include directory in directory /home/paul/sdr/CubicSDR
LIQUID_LIBRARIES
    linked by target "CubicSDR" in directory /home/paul/sdr/CubicSDR

-- Configuring incomplete, errors occurred!
See also "/home/paul/sdr/CubicSDR/build/CMakeFiles/CMakeOutput.log".
For the part about attempting to install the liquid-dsp stuff:

Code: Select all

paul@sdr:~/sdr/liquid-dsp$ ls
autotest  bench  bootstrap.sh  configure.ac  examples  HISTORY  include  LICENSE  makefile.in  README.md  sandbox  scripts  src  TROUBLESHOOTING
paul@sdr:~/sdr/liquid-dsp$ sudo ./bootstrap.sh
[sudo] password for paul: 
./bootstrap.sh: 30: ./bootstrap.sh: aclocal: not found
./bootstrap.sh: 31: ./bootstrap.sh: autoconf: not found
./bootstrap.sh: 32: ./bootstrap.sh: autoheader: not found
paul@sdr:~/sdr/liquid-dsp$
Last edited by Paul47 on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

sdrplay
Posts: 978
Joined: Wed Jan 07, 2015 7:58 am

Re: Missing the big picture

Post by sdrplay » Tue Mar 01, 2016 9:21 am

Hello,

aclocal, autoconf and autoheader are part of automake. To get automake...

sudo apt-get install automake

Best regards,

SDRplay Support
Last edited by sdrplay on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

Paul47
Posts: 16
Joined: Mon Feb 22, 2016 10:51 pm

Re: Missing the big picture

Post by Paul47 » Tue Mar 01, 2016 11:59 pm

OK, finally getting somewhere. Got CubicSDR built.

I plugged in sdrplay and ran the probe:

Code: Select all

paul@sdr:~/sdr/CubicSDR/build$ SoapySDRUtil --probe=sdrplay
######################################################
## Soapy SDR -- the SDR abstraction library
######################################################

Probe device sdrplay
mir_sdr_Init: starting hardware initialization
mir_sdr_Init: gR=40dB fs=2.048MHz rf=222.064MHz bw=1.536MHz if=0.000MHz

mir_sdr_usb_USB DLL: Revision 0.1.1

mir_sdr_2500_Init: fnaddr = 2 detected, trying to change...

mir_sdr_2500_Init: fnaddr = 6

mir_sdr_2500_Init: adjusting squelch trim 0x1, rx gating enable 1, tx_trim 0, reg2 = 0x4801
initHw: Register7 = 0x000005
initHw: Tuner Register0 = 0x04f440
mir_sdr_SetFs: Sample Freq requested 2047999.978065
mir_sdr_SetFs: Fs->FsNomHz+dFsHz=2048000.0+0.0Hz=2048000.0Hz FsToggle->1
mir_sdr_SetRf: f->222064000.000Hz (int=25 frac=20 afc=0) fSynth:3553024000.000
mir_sdr_SetRf: Rf->RfNomHz+dRfHz+LifHz+Lif1Hz=222064000.0+0.0+0.0Hz+0.0Hz=222064000.0Hz RfToggle->1
mir_sdr_SetGr: GR->40[16,24,0,0] gRset->0x210 DCCALmode=4 DCCALspd=1 GrToggle->1
mir_sdr_usb_StreamRead: Read failed to read sufficient data: requested 393216 read 0

mir_sdr_2500_StreamRead: Read failed
mir_sdr_usb_StreamRead: Read failed to read sufficient data: requested 393216 read 0

mir_sdr_2500_StreamRead: Read failed again
setToggleStates: failed mir_sdr_2500_StreamRead err=1
initHw: setToggleStates() Error 1
mir_sdr_Init: initState returns error 7
mir_sdr_2500_Readback001Trim: readback = 0xe30180f
mir_sdr_2500_Bypass001Trim: reg13=0x1ed reg14=0x6c018e

----------------------------------------------------
-- Device identification
----------------------------------------------------
  driver=null
  hardware=null

----------------------------------------------------
-- Peripheral summary
----------------------------------------------------
  Channels: 0 Rx, 0 Tx
  Timestamps: NO


paul@sdr:~/sdr/CubicSDR/build$
I have those two drivers blacklisted already and they don't show in lsmod. Are the errors shown here normal for this device, or is there more to be done?

I ran CubicSDR and it seem to be close. I got the waterfall once but no sound, I guess I need to figure out how to pipe it somewhere. Anyway I need to figure out how it is supposed to be run. It's quite different from gqrx.
Last edited by Paul47 on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

Paul47
Posts: 16
Joined: Mon Feb 22, 2016 10:51 pm

Re: Missing the big picture

Post by Paul47 » Wed Mar 02, 2016 12:37 am

Also I noticed inside CubicSDR there was no device shown.
Last edited by Paul47 on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

Post Reply