pothosware / SoapyUHD

Soapy SDR plugins for UHD supported SDR devices
https://github.com/pothosware/SoapyUHD/wiki
GNU General Public License v3.0
55 stars 29 forks source link

Issue at amke step while building SoapyUHD #9

Closed janemba closed 7 years ago

janemba commented 7 years ago

Hi,

I have an issue at make step:

$ make
[ 25%] Linking CXX shared module libuhdSupport.so
CMakeFiles/uhdSupport.dir/SoapyUHDDevice.cpp.o: In function `find_uhd(std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > > const&)':
SoapyUHDDevice.cpp:(.text+0xae0): undefined reference to `uhd::device::find(uhd::device_addr_t const&, uhd::device::device_filter_t)'
CMakeFiles/uhdSupport.dir/SoapyUHDDevice.cpp.o: In function `SoapyUHDDevice::getFrequencyRange(int, unsigned int, std::string const&) const':
SoapyUHDDevice.cpp:(.text._ZNK14SoapyUHDDevice17getFrequencyRangeEijRKSs[_ZNK14SoapyUHDDevice17getFrequencyRangeEijRKSs]+0x84): undefined reference to `uhd::device::get_tree() const'
CMakeFiles/uhdSupport.dir/SoapyUHDDevice.cpp.o: In function `SoapyUHDDevice::getHardwareInfo() const':
SoapyUHDDevice.cpp:(.text._ZNK14SoapyUHDDevice15getHardwareInfoEv[_ZNK14SoapyUHDDevice15getHardwareInfoEv]+0x1440): undefined reference to `uhd::device::get_tree() const'
collect2: error: ld returned 1 exit status
CMakeFiles/uhdSupport.dir/build.make:101: recipe for target 'libuhdSupport.so' failed
make[2]: *** [libuhdSupport.so] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/uhdSupport.dir/all' failed
make[1]: *** [CMakeFiles/uhdSupport.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

Also I installed SoapyUtil and the device is detected:

$ SoapySDRUtil --probe="driver=novena"       

######################################################
## Soapy SDR -- the SDR abstraction library
######################################################

Probe device driver=novena
GPIO122: set to 1
GPIO122: set to 1
spi mode: 0x0
bits per word: 8
max speed: 4000000 Hz (4000 KHz)
[INFO] Connected to Board on SPI | Firmware: ?  Device: UNSPECIFIED ID  Protocol: ?

[INFO] LMS6002: ver=0x2, rev=0x0

----------------------------------------------------
-- Device identification
----------------------------------------------------
  driver=NOVENA-RF
  hardware=NOVENA

----------------------------------------------------
-- Peripheral summary
----------------------------------------------------
  Channels: 1 Rx, 1 Tx
  Timestamps: YES

----------------------------------------------------
-- RX Channel 0
----------------------------------------------------
  Full-duplex: YES
  Supports AGC: NO
  Native format: CS16 [full-scale=32768]
  Antennas: LB, HB, BB
  Full gain range: [0, 66] dB
    LNA gain range: [0, 6] dB
    VGA1 gain range: [0, 30] dB
    VGA2 gain range: [0, 30] dB
  Full freq range: [292.32, 3807.68] MHz
    RF freq range: [300, 3800] MHz
    BB freq range: [-7.68, 7.68] MHz
  Tune args:
     * LO Offset - Tune the LO with an offset and compensate with the baseband CORDIC.
       [key=OFFSET, units=Hz, default=0.0, type=float, range=[-7.68e+06, 7.68e+06]]
     * BB - Specify a specific value for this component or IGNORE to skip tuning it.
       [key=BB, units=Hz, default=DEFAULT, type=float, range=[-7.68e+06, 7.68e+06], options=(DEFAULT, IGNORE)]
  Sample rates: 0.48, 0.96, 1.92, 3.84, 7.68, 15.36 MSps
  Filter bandwidths: 28, 20, 14, 12, 10, ..., 3, 2.75, 2.5, 1.75, 1.5 MHz

----------------------------------------------------
-- TX Channel 0
----------------------------------------------------
  Full-duplex: YES
  Supports AGC: NO
  Native format: CS16 [full-scale=32768]
  Antennas: HB, BB
  Full gain range: [0, 56] dB
    VGA2 gain range: [0, 25] dB
    VGA1 gain range: [-35, -4] dB
  Full freq range: [292.32, 3807.68] MHz
    RF freq range: [300, 3800] MHz
    BB freq range: [-7.68, 7.68] MHz
  Tune args:
     * LO Offset - Tune the LO with an offset and compensate with the baseband CORDIC.
       [key=OFFSET, units=Hz, default=0.0, type=float, range=[-7.68e+06, 7.68e+06]]
     * BB - Specify a specific value for this component or IGNORE to skip tuning it.
       [key=BB, units=Hz, default=DEFAULT, type=float, range=[-7.68e+06, 7.68e+06], options=(DEFAULT, IGNORE)]
  Sample rates: 0.48, 0.96, 1.92, 3.84, 7.68, 15.36 MSps
  Filter bandwidths: 28, 20, 14, 12, 10, ..., 3, 2.75, 2.5, 1.75, 1.5 MHz

An idea about how to fix this ?

guruofquality commented 7 years ago

Not sure. Perhaps there is both a source install and package install of libuhd? What is the output of cmake (it prints the uhd development paths). And can you share the install paths of libuhd.so? like updatedb && locate libuhd.so

janemba commented 7 years ago

Hi,

Thank you !! I solved it, I just noticed I have two uhd libs installed :(