Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cubicsdr install fail " unknown type freqdem" #11

Open
rexzz opened this issue Oct 8, 2015 · 6 comments
Open

cubicsdr install fail " unknown type freqdem" #11

rexzz opened this issue Oct 8, 2015 · 6 comments

Comments

@rexzz
Copy link

rexzz commented Oct 8, 2015

Sorry but this recurs. From breakpoint:

"error: unknown type name 'freqdem'; did you mean 'freqmodem'?
freqdem demodFM;"

Gistlog: https://gist.github.com/bf40376dd99c20059921

@0ff
Copy link

0ff commented Jan 22, 2016

This seems to be related to the fact that there were a huge amount of changes in liquid-dsp since the last release (in 2012). I was able to fix it by running brew reinstall --HEAD liquid-dsp and then re-installing cubicsdr as normal - no problems then.

Seems like this might be fixed by this issue: jgaeddert/liquid-dsp#26.

@stuzog
Copy link

stuzog commented Apr 1, 2017

I'm getting this even after reinstalling liquid-dsp as above:

`bash$ brew reinstall --HEAD liquid-dsp
==> Reinstalling dholm/sdr/liquid-dsp
==> Cloning https://github.com/jgaeddert/liquid-dsp.git
Updating /Users/Stuart/Library/Caches/Homebrew/liquid-dsp--git
==> Checking out branch master
==> ./bootstrap.sh
==> ./configure --prefix=/usr/local/Cellar/liquid-dsp/HEAD-97623f5
==> make
==> make install
🍺 /usr/local/Cellar/liquid-dsp/HEAD-97623f5: 8 files, 2MB, built in 1 minute 4 seconds
bash$ brew install cubicsdr
==> Installing cubicsdr from dholm/sdr
==> Downloading https://github.com/cjcliffe/CubicSDR/archive/0.2.0-beta-rc5.tar.gz
Already downloaded: /Users/Stuart/Library/Caches/Homebrew/cubicsdr-0.2.0b5.tar.gz
==> cmake .. -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_IN
==> make
Last 15 lines from /Users/Stuart/Library/Logs/Homebrew/cubicsdr/02.make:
In file included from /usr/local/include/wx-3.0/wx/toplevel.h:20:
In file included from /usr/local/include/wx-3.0/wx/nonownedwnd.h:14:
In file included from /usr/local/include/wx-3.0/wx/window.h:18:
In file included from /usr/local/include/wx-3.0/wx/event.h:14:
In file included from /usr/local/include/wx-3.0/wx/defs.h:27:
/usr/local/include/wx-3.0/wx/platform.h:183:10: fatal error: 'wx/setup.h' file not found
#include "wx/setup.h"
^
1 error generated.
make[2]: *** [CMakeFiles/CubicSDR.dir/src/CubicSDR.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
1 error generated.
make[2]: *** [CMakeFiles/CubicSDR.dir/src/AppFrame.cpp.o] Error 1
make[1]: *** [CMakeFiles/CubicSDR.dir/all] Error 2
make: *** [all] Error 2

@stuzog
Copy link

stuzog commented Apr 15, 2017

No progress? Still cannot build:

Cubicsdr build failure.txt

@stuzog
Copy link

stuzog commented Apr 18, 2017

Tried again (again) building everything locally. Built, but cpack had to be run with 'sudo' and threw lots of complaints:

bash$ cpack
CPack: Create package using DragNDrop
CPack: Install projects
CPack: - Run preinstall target for: CubicSDR
CPack: - Install project: CubicSDR
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: can't open input file: /Users/Stuart/SDR/CubicSDR/build/x64/CubicSDR.app/Contents/MacOS/libfftw3f.3.dylib for writing (Permission denied)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: can't lseek to offset: 0 in file: /Users/Stuart/SDR/CubicSDR/build/x64/CubicSDR.app/Contents/MacOS/libfftw3f.3.dylib for writing (Bad file descriptor)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: can't write new headers in file: /Users/Stuart/SDR/CubicSDR/build/x64/CubicSDR.app/Contents/MacOS/libfftw3f.3.dylib (Bad file descriptor)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: can't close written on input file: /Users/Stuart/SDR/CubicSDR/build/x64/CubicSDR.app/Contents/MacOS/libfftw3f.3.dylib (Bad file descriptor)
CMake Error at /usr/local/Cellar/cmake/3.8.0/share/cmake/Modules/BundleUtilities.cmake:869 (message):
  Command failed:

   'install_name_tool' '-id' '@executable_path/../MacOS/libfftw3f.3.dylib' '/Users/Stuart/SDR/CubicSDR/build/x64/CubicSDR.app/Contents/MacOS/libfftw3f.3.dylib'
Call Stack (most recent call first):
  /usr/local/Cellar/cmake/3.8.0/share/cmake/Modules/BundleUtilities.cmake:943 (fixup_bundle_item)
  /Users/Stuart/SDR/CubicSDR/build/cmake_install.cmake:34 (fixup_bundle)


CPack Error: Error when generating package: CubicSDR
bash$ sudo cpack
Password:
CPack: Create package using DragNDrop
CPack: Install projects
CPack: - Run preinstall target for: CubicSDR
CPack: - Install project: CubicSDR
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: no LC_RPATH load command with path: /Users/Stuart/SDR/wxWidgets/wxWidgets-staticlib/lib found in: /Users/Stuart/SDR/CubicSDR/build/_CPack_Packages/Darwin/DragNDrop/CubicSDR-0.2.2-Darwin/./CubicSDR.app/Contents/MacOS/CubicSDR (for architecture x86_64), required for specified option "-delete_rpath /Users/Stuart/SDR/wxWidgets/wxWidgets-staticlib/lib"
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: no LC_RPATH load command with path: /opt/local/lib found in: /Users/Stuart/SDR/CubicSDR/build/_CPack_Packages/Darwin/DragNDrop/CubicSDR-0.2.2-Darwin/./CubicSDR.app/Contents/MacOS/CubicSDR (for architecture x86_64), required for specified option "-delete_rpath /opt/local/lib"
CPack: Create package
CPack: - package: /Users/Stuart/SDR/CubicSDR/build/CubicSDR-0.2.2-Darwin.dmg generated.
CPack: Create package using STGZ
CPack: Install projects
CPack: - Run preinstall target for: CubicSDR
CPack: - Install project: CubicSDR
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: no LC_RPATH load command with path: /Users/Stuart/SDR/wxWidgets/wxWidgets-staticlib/lib found in: /Users/Stuart/SDR/CubicSDR/build/_CPack_Packages/Darwin/STGZ/CubicSDR-0.2.2-Darwin/./CubicSDR.app/Contents/MacOS/CubicSDR (for architecture x86_64), required for specified option "-delete_rpath /Users/Stuart/SDR/wxWidgets/wxWidgets-staticlib/lib"
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: no LC_RPATH load command with path: /opt/local/lib found in: /Users/Stuart/SDR/CubicSDR/build/_CPack_Packages/Darwin/STGZ/CubicSDR-0.2.2-Darwin/./CubicSDR.app/Contents/MacOS/CubicSDR (for architecture x86_64), required for specified option "-delete_rpath /opt/local/lib"
CPack: Create package
CPack: - package: /Users/Stuart/SDR/CubicSDR/build/CubicSDR-0.2.2-Darwin.sh generated.
CPack: Create package using TGZ
CPack: Install projects
CPack: - Run preinstall target for: CubicSDR
CPack: - Install project: CubicSDR
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: no LC_RPATH load command with path: /Users/Stuart/SDR/wxWidgets/wxWidgets-staticlib/lib found in: /Users/Stuart/SDR/CubicSDR/build/_CPack_Packages/Darwin/TGZ/CubicSDR-0.2.2-Darwin/./CubicSDR.app/Contents/MacOS/CubicSDR (for architecture x86_64), required for specified option "-delete_rpath /Users/Stuart/SDR/wxWidgets/wxWidgets-staticlib/lib"
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: no LC_RPATH load command with path: /opt/local/lib found in: /Users/Stuart/SDR/CubicSDR/build/_CPack_Packages/Darwin/TGZ/CubicSDR-0.2.2-Darwin/./CubicSDR.app/Contents/MacOS/CubicSDR (for architecture x86_64), required for specified option "-delete_rpath /opt/local/lib"
CPack: Create package
CPack: - package: /Users/Stuart/SDR/CubicSDR/build/CubicSDR-0.2.2-Darwin.tar.gz generated.
bash$ 

@stuzog
Copy link

stuzog commented May 7, 2017

After a fresh install of Pothosware brew formulae, I get the following:

bash$ brew install cubicsdr --HEAD
Updating Homebrew...
==> Installing cubicsdr from dholm/sdr
==> Cloning https://github.com/cjcliffe/CubicSDR.git
Updating /Users/Stuart/Library/Caches/Homebrew/cubicsdr--git
==> Checking out branch master
==> cmake .. -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/cubicsdr/HEAD-15d8715 -DCMAKE_BUILD_TYPE=Release -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERB
Last 15 lines from /Users/Stuart/Library/Logs/Homebrew/cubicsdr/01.cmake:
-- Configuring file vera_sans_mono32_0.png
-- Configuring file vera_sans_mono36_0.png
-- Configuring file vera_sans_mono48_0.png
-- Configuring file vera_sans_mono64_0.png
-- Configuring file vera_sans_mono72_0.png
-- Configuring file vera_sans_mono96_0.png
-- Copying /tmp/cubicsdr-20170507-45185-1vu79qr/icon/CubicSDR.ico to directory /tmp/cubicsdr-20170507-45185-1vu79qr/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_LIBRARIES
    linked by target "CubicSDR" in directory /tmp/cubicsdr-20170507-45185-1vu79qr

-- Configuring incomplete, errors occurred!
See also "/tmp/cubicsdr-20170507-45185-1vu79qr/build/CMakeFiles/CMakeOutput.log".

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/dholm/homebrew-sdr/issues

These open issues may also help:
cubicsdr install fail " unknown type freqdem" https://github.com/dholm/homebrew-sdr/issues/11
bash$ 

I was trying to do this because CubicSDR was giving me the following error onstartup:

SDR enumerator starting.
SoapySDR init..
	API Version: v0.6.0
	ABI Version: v0.6-dev
	Install root: /usr/local
	Loading modules... 
[ERROR] SoapySDR::loadModule(/usr/local/lib/SoapySDR/modules0.6-dev/librtlsdrSupport.so)
  dlopen() failed: dlopen(/usr/local/lib/SoapySDR/modules0.6-dev/librtlsdrSupport.so, 1): Library not loaded: @rpath/libSoapySDR.0.6-dev.dylib
  Referenced from: /usr/local/lib/SoapySDR/modules0.6-dev/librtlsdrSupport.so
  Reason: image not found
[ERROR] SoapySDR::loadModule(/usr/local/lib/SoapySDR/modules0.6-dev/libsdrPlaySupport.so)
  dlopen() failed: dlopen(/usr/local/lib/SoapySDR/modules0.6-dev/libsdrPlaySupport.so, 1): Library not loaded: @rpath/libSoapySDR.0.6-dev.dylib
  Referenced from: /usr/local/lib/SoapySDR/modules0.6-dev/libsdrPlaySupport.so
  Reason: image not found
	Available factories...nullJust 'null' factory found.


Reporting enumeration complete.
SDR enumerator done.
Loaded font 'Bitstream Vera Sans Mono' from '/Applications/SDR/CubicSDR.app/Contents/Resources/fonts/vera_sans_mono12_0.png', parsed 255 characters.
Loaded font 'Bitstream Vera Sans Mono' from '/Applications/SDR/CubicSDR.app/Contents/Resources/fonts/vera_sans_mono16_0.png', parsed 255 characters.
Loaded font 'Bitstream Vera Sans Mono' from '/Applications/SDR/CubicSDR.app/Contents/Resources/fonts/vera_sans_mono18_0.png', parsed 255 characters.
Loaded font 'Bitstream Vera Sans Mono' from '/Applications/SDR/CubicSDR.app/Contents/Resources/fonts/vera_sans_mono24_0.png', parsed 255 characters.
Loaded font 'Bitstream Vera Sans Mono' from '/Applications/SDR/CubicSDR.app/Contents/Resources/fonts/vera_sans_mono27_0.png', parsed 255 characters.

However, it would seem from SoapySDRUtil that these relevant files have been installed:

bash$ SoapySDRUtil --probe
######################################################
## Soapy SDR -- the SDR abstraction library
######################################################

Probe device 
Found Rafael Micro R820T tuner

----------------------------------------------------
-- Device identification
----------------------------------------------------
  driver=Audio
  hardware=Audio
  device_id=0
  origin=https://github.com/pothosware/SoapyAudio

----------------------------------------------------
-- Peripheral summary
----------------------------------------------------
  Channels: 1 Rx, 0 Tx
  Timestamps: NO
  Other Settings:
     * Stereo Sample Offset - Offset stereo samples for off-by-one audio inputs.
       [key=sample_offset, default=0, type=string, options=(-2, -1, 0, 1, 2)]
     * Rig Control - Select hamlib rig control type.
       [key=rig, type=string, options=(2901, 2513, 508, 506, 505, 504, 514, 503, 515, 502, 501, 513, 516, 1701, 2506, 2503, 2303, 2304, 902, 903, 221, 229, 2501, 2507, 2512, 2301, 1, 2, 1901, 354, 302, 303, 304, 306, 307, 360, 355, 309, 310, 311, 312, 313, 361, 314, 315, 316, 319, 320, 321, 322, 367, 323, 346, 324, 326, 327, 347, 357, 363, 328, 329, 362, 330, 345, 356, 331, 332, 334, 344, 368, 365, 335, 402, 401, 403, 404, 336, 358, 340, 337, 341, 338, 339, 343, 366, 369, 342, 605, 606, 607, 2511, 1801, 215, 233, 217, 219, 220, 223, 226, 234, 227, 230, 225, 214, 202, 203, 228, 201, 204, 216, 231, 224, 205, 206, 207, 208, 209, 210, 222, 211, 213, 1004, 2514, 353, 352, 2801, 2401, 1105, 1103, 804, 2702, 2701, 2502, 232, 1404, 1402, 2509, 2201, 364, 351, 1603, 1612, 1604, 1605, 1607, 1602, 1601, 1608, 1609, 1611, 1613, 802, 806, 801, 803, 812, 810, 811, 133, 1204, 117, 119, 118, 121, 103, 124, 129, 127, 110, 105, 106, 107, 109, 120, 111, 101, 122, 115, 123, 113, 114, 128, 131, 116, 132, 130, 104, 125, 126, 2508)]
     * Rig Serial Rate - Select hamlib rig serial control rate.
       [key=rig_rate, default=57600, type=string, options=(1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 128000, 256000)]
     * Rig Serial Port - hamlib rig Serial Port dev / COMx / IP-Address
       [key=rig_port, default=/dev/ttyUSB0, type=string]

----------------------------------------------------
-- RX Channel 0
----------------------------------------------------
  Full-duplex: YES
  Supports AGC: YES
  Stream formats: CS8, CS16, CF32
  Native format: CS16 [full-scale=65536]
  Stream args:
     * Channel Setup - Input channel configuration.
       [key=chan, default=mono_l, type=string, options=(mono_l, mono_r, stereo_iq, stereo_qi)]
  Antennas: RX
  Full gain range: [0, 0] dB
  Full freq range: [0, 6000] MHz
    RF freq range: [0, 6000] MHz
  Sample rates: 0.0441, 0.048, 0.096 MSps


bash$ SoapySDRUtil --info
######################################################
## Soapy SDR -- the SDR abstraction library
######################################################

Lib Version: v0.6.0-release
API Version: v0.6.0
ABI Version: v0.6
Install root: /usr/local
Search path: /usr/local/lib/SoapySDR/modules0.6
Module found: /usr/local/lib/SoapySDR/modules0.6/libaudioSupport.so
Module found: /usr/local/lib/SoapySDR/modules0.6/libremoteSupport.so
Module found: /usr/local/lib/SoapySDR/modules0.6/librtlsdrSupport.so
Loading modules... done
Available factories...audio, null, remote, rtlsdr, 
bash$ 

Any ideas?

@alessss
Copy link

alessss commented Jun 1, 2018

BY1-AL-038:gr-scan a_makarevich$ brew install cubicsdr --HEAD
Updating Homebrew...
==> Installing cubicsdr from dholm/sdr
==> Cloning https://github.com/cjcliffe/CubicSDR.git
Updating /Users/a_makarevich/Library/Caches/Homebrew/cubicsdr--git
==> Checking out branch master
==> cmake .. -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/cubicsdr/HEAD-35482a0 -DCMAKE_BUILD_TYPE=Release -DCMAKE_FIND_FRAMEWORK=LAST -DCMA
==> make
Last 15 lines from /Users/a_makarevich/Library/Logs/Homebrew/cubicsdr/02.make:
In file included from /tmp/cubicsdr-20180602-11792-uclt9j/src/AppFrame.h:21:
/tmp/cubicsdr-20180602-11792-uclt9j/src/visual/GainCanvas.h:24:40: error: unknown type name 'wxGLAttributes'
GainCanvas(wxWindow parent, const wxGLAttributes& dispAttrs);
^
In file included from /tmp/cubicsdr-20180602-11792-uclt9j/src/FrequencyDialog.cpp:8:
/tmp/cubicsdr-20180602-11792-uclt9j/src/CubicSDR.h:74:5: error: unknown type name 'wxGLContextAttrs'
wxGLContextAttrs
GetContextAttributes();
^
/tmp/cubicsdr-20180602-11792-uclt9j/src/CubicSDR.h:191:5: error: unknown type name 'wxGLContextAttrs'
wxGLContextAttrs *m_glContextAttributes = nullptr;
^
15 errors generated.
make[2]: *** [CMakeFiles/CubicSDR.dir/src/FrequencyDialog.cpp.o] Error 1
make[1]: *** [CMakeFiles/CubicSDR.dir/all] Error 2
make: *** [all] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/dholm/homebrew-sdr/issues

These open issues may also help:
cubicsdr install fail " unknown type freqdem" #11
Install of CubicSDR (still) fails on OS X 10.11.6 iMac 7,1 #27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants