homebrew-sdr icon indicating copy to clipboard operation
homebrew-sdr copied to clipboard

brew install gr-osmosdr fails on OSX 10.11.3 at freetype2

Open cjcliffe opened this issue 8 years ago • 6 comments

After a fresh install of homebrew and nothing but the dholm/homebrew-sdr tap added running:

brew install gr-osmosdr

eventually results in:

==> Installing dholm/sdr/gr-osmosdr dependency: gr-fosphor
==> Cloning git://git.osmocom.org/gr-fosphor
Updating /Library/Caches/Homebrew/gr-fosphor--git
==> Checking out branch master
==> cmake .. -DCMAKE_SHARED_LINKER_FLAGS='-Wl,-undefined,dynamic_lookup' -DPYTHON_LIBRARY='/usr/local/lib/libgnuradio-runtime.dylib' -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -
Last 15 lines from /Users/ccliffe/Library/Logs/Homebrew/gr-fosphor/01.cmake:
-- Looking for CL_VERSION_1_1
-- Looking for CL_VERSION_1_1 - not found
-- Looking for CL_VERSION_1_0
-- Looking for CL_VERSION_1_0 - not found
-- Found OpenCL: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/OpenCL.framework  
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29.1") 
-- Checking for module 'freetype2'
--   Found freetype2, version 18.3.12
CMake Error at CMakeLists.txt:109 (message):
  freetype2 required to compile gr-fosphor


-- Configuring incomplete, errors occurred!
See also "/tmp/gr-fosphor20160310-55010-p841l2/build/CMakeFiles/CMakeOutput.log".
See also "/tmp/gr-fosphor20160310-55010-p841l2/build/CMakeFiles/CMakeError.log".
Warning: It appears you have MacPorts or Fink installed.
Software installed with other package managers causes known problems for
Homebrew. If a formula fails to build, uninstall MacPorts/Fink and try again.

READ THIS: https://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/homebrew):
  https://github.com/dholm/homebrew-sdr/issues

freetype2 appears to be installed, I get the same error attempting to install from github source; is this just a gr-fosphor issue or have I missed something?

Thanks!

cjcliffe avatar Mar 11 '16 01:03 cjcliffe

@cjcliffe Run brew update and try again. I added freetype as a dependency to gr-fosphor.

dholm avatar Mar 11 '16 19:03 dholm

@dholm thanks I'd already manually added it thinking that was the issue as well; but it appears that the actual fix is in pull request #16 -- gr-fosphor doesn't actually find the freetype2 install without it.

cjcliffe avatar Mar 11 '16 23:03 cjcliffe

brew install gr-osmosdr now gets past the gr-fosphor hurdle. It still doesn't build because of iqbal and will also fail to build if the python package Cheetah hasn't already been installed. macports disables iqbal, probably for the same reason. Cheetah can be installed with pip install cheetah. Gnu Radio itself installs its own local copy of cheetah. Would it be acceptable to point gr-osmosdr to that?

JayKickliter avatar Mar 15 '16 15:03 JayKickliter

@JayKickliter I have added Cheetah as a dependency. I also reinstalled gr-osmosdr from HEAD but I'm not getting a problem with iqbal. What error are you getting?

dholm avatar Jul 31 '16 16:07 dholm

does anyone managed to find a solution for this issue ? or more generally to install osmosdr on osx ?

vallettea avatar Jun 30 '17 14:06 vallettea

I recently tried installing gr-osmosdr and this is the error message I got:

brew install gr-osmosdr Error: Formulae found in multiple taps: * dholm/sdr/gr-osmosdr * rxseger/hackrf/gr-osmosdr

Please use the fully-qualified name e.g. dholm/sdr/gr-osmosdr to refer the formula. MotokoMaku:Desktop ivetto$ brew install dholm/sdr/gr-osmosdr ==> Installing gr-osmosdr from dholm/sdr ==> Downloading http://git.osmocom.org/gr-osmosdr/snapshot/gr-osmosdr-0.1.4.tar.xz Already downloaded: /Users/ivetto/Library/Caches/Homebrew/gr-osmosdr-0.1.4.tar.xz ==> cmake .. -DCMAKE_SHARED_LINKER_FLAGS='-Wl,-undefined,dynamic_lookup' -DPYTHON_LIBRARY='/usr/local/lib/libgnuradio-runtime.dylib' -DCM ==> make install Last 15 lines from /Users/ivetto/Library/Logs/Homebrew/gr-osmosdr/02.make: cd /tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/build/lib && /usr/local/Homebrew/Library/Homebrew/shims/super/clang++ -DBOOST_ALL_DYN_LINK -DHAVE_CONFIG_H=1 -DHAVE_FCD=1 -DHAVE_IQBALANCE=1 -DUSE_SSE2 -Dgnuradio_osmosdr_EXPORTS -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/build/lib -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/include -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/lib -I/usr/local/include -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/lib/fcd -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/lib/file -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/lib/rtl -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/lib/rtl_tcp -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/lib/uhd -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/lib/hackrf -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/lib/rfspace -DNDEBUG -fPIC -Wall -Wextra -Wno-unused-parameter -Wsign-compare -fvisibility=hidden -fvisibility-inlines-hidden -msse2 -o CMakeFiles/gnuradio-osmosdr.dir/uhd/uhd_sink_c.cc.o -c /tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/lib/uhd/uhd_sink_c.cc [ 47%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/uhd/uhd_source_c.cc.o cd /tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/build/lib && /usr/local/Homebrew/Library/Homebrew/shims/super/clang++ -DBOOST_ALL_DYN_LINK -DHAVE_CONFIG_H=1 -DHAVE_FCD=1 -DHAVE_IQBALANCE=1 -DUSE_SSE2 -Dgnuradio_osmosdr_EXPORTS -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/build/lib -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/include -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/lib -I/usr/local/include -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/lib/fcd -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/lib/file -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/lib/rtl -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/lib/rtl_tcp -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/lib/uhd -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/lib/hackrf -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/lib/rfspace -DNDEBUG -fPIC -Wall -Wextra -Wno-unused-parameter -Wsign-compare -fvisibility=hidden -fvisibility-inlines-hidden -msse2 -o CMakeFiles/gnuradio-osmosdr.dir/uhd/uhd_source_c.cc.o -c /tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/lib/uhd/uhd_source_c.cc [ 50%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/hackrf/hackrf_source_c.cc.o cd /tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/build/lib && /usr/local/Homebrew/Library/Homebrew/shims/super/clang++ -DBOOST_ALL_DYN_LINK -DHAVE_CONFIG_H=1 -DHAVE_FCD=1 -DHAVE_IQBALANCE=1 -DUSE_SSE2 -Dgnuradio_osmosdr_EXPORTS -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/build/lib -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/include -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/lib -I/usr/local/include -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/lib/fcd -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/lib/file -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/lib/rtl -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/lib/rtl_tcp -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/lib/uhd -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/lib/hackrf -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/lib/rfspace -DNDEBUG -fPIC -Wall -Wextra -Wno-unused-parameter -Wsign-compare -fvisibility=hidden -fvisibility-inlines-hidden -msse2 -o CMakeFiles/gnuradio-osmosdr.dir/hackrf/hackrf_source_c.cc.o -c /tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/lib/hackrf/hackrf_source_c.cc [ 52%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/hackrf/hackrf_sink_c.cc.o cd /tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/build/lib && /usr/local/Homebrew/Library/Homebrew/shims/super/clang++ -DBOOST_ALL_DYN_LINK -DHAVE_CONFIG_H=1 -DHAVE_FCD=1 -DHAVE_IQBALANCE=1 -DUSE_SSE2 -Dgnuradio_osmosdr_EXPORTS -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/build/lib -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/include -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/lib -I/usr/local/include -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/lib/fcd -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/lib/file -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/lib/rtl -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/lib/rtl_tcp -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/lib/uhd -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/lib/hackrf -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/lib/rfspace -DNDEBUG -fPIC -Wall -Wextra -Wno-unused-parameter -Wsign-compare -fvisibility=hidden -fvisibility-inlines-hidden -msse2 -o CMakeFiles/gnuradio-osmosdr.dir/hackrf/hackrf_sink_c.cc.o -c /tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/lib/hackrf/hackrf_sink_c.cc [ 55%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/rfspace/rfspace_source_c.cc.o cd /tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/build/lib && /usr/local/Homebrew/Library/Homebrew/shims/super/clang++ -DBOOST_ALL_DYN_LINK -DHAVE_CONFIG_H=1 -DHAVE_FCD=1 -DHAVE_IQBALANCE=1 -DUSE_SSE2 -Dgnuradio_osmosdr_EXPORTS -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/build/lib -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/include -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/lib -I/usr/local/include -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/lib/fcd -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/lib/file -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/lib/rtl -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/lib/rtl_tcp -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/lib/uhd -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/lib/hackrf -I/tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/lib/rfspace -DNDEBUG -fPIC -Wall -Wextra -Wno-unused-parameter -Wsign-compare -fvisibility=hidden -fvisibility-inlines-hidden -msse2 -o CMakeFiles/gnuradio-osmosdr.dir/rfspace/rfspace_source_c.cc.o -c /tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/lib/rfspace/rfspace_source_c.cc [ 57%] Linking CXX shared library libgnuradio-osmosdr.dylib cd /tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/build/lib && /usr/local/Cellar/cmake/3.10.0/bin/cmake -E cmake_link_script CMakeFiles/gnuradio-osmosdr.dir/link.txt --verbose=1 /usr/local/Homebrew/Library/Homebrew/shims/super/clang++ -DNDEBUG -dynamiclib -Wl,-headerpad_max_install_names -Wl,-undefined,dynamic_lookup -compatibility_version 0.1.4 -o libgnuradio-osmosdr.0.1.4.dylib -install_name /tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/build/lib/libgnuradio-osmosdr.0.1.4.dylib CMakeFiles/gnuradio-osmosdr.dir/source_impl.cc.o CMakeFiles/gnuradio-osmosdr.dir/sink_impl.cc.o CMakeFiles/gnuradio-osmosdr.dir/ranges.cc.o CMakeFiles/gnuradio-osmosdr.dir/device.cc.o CMakeFiles/gnuradio-osmosdr.dir/fcd/fcd_source_c.cc.o CMakeFiles/gnuradio-osmosdr.dir/file/file_source_c.cc.o CMakeFiles/gnuradio-osmosdr.dir/rtl/rtl_source_c.cc.o CMakeFiles/gnuradio-osmosdr.dir/rtl_tcp/rtl_tcp_source_f.cc.o CMakeFiles/gnuradio-osmosdr.dir/rtl_tcp/rtl_tcp_source_c.cc.o CMakeFiles/gnuradio-osmosdr.dir/uhd/uhd_sink_c.cc.o CMakeFiles/gnuradio-osmosdr.dir/uhd/uhd_source_c.cc.o CMakeFiles/gnuradio-osmosdr.dir/hackrf/hackrf_source_c.cc.o CMakeFiles/gnuradio-osmosdr.dir/hackrf/hackrf_sink_c.cc.o CMakeFiles/gnuradio-osmosdr.dir/rfspace/rfspace_source_c.cc.o /usr/local/lib/libboost_thread-mt.dylib /usr/local/lib/libboost_system-mt.dylib /usr/local/lib/libboost_chrono-mt.dylib /usr/local/lib/libboost_date_time-mt.dylib /usr/local/lib/libboost_atomic-mt.dylib /usr/local/lib/libgnuradio-runtime.dylib /usr/local/lib/libgnuradio-pmt.dylib /usr/local/lib/libgnuradio-blocks.dylib /usr/local/lib/libgnuradio-iqbalance.dylib /usr/local/lib/libgnuradio-fcd.dylib /usr/local/lib/librtlsdr.dylib /usr/local/lib/libgnuradio-uhd.dylib /usr/local/lib/libuhd.dylib /usr/local/lib/libhackrf.dylib cd /tmp/gr-osmosdr-20171206-7170-1vfrmj/gr-osmosdr-0.1.4/build/lib && /usr/local/Cellar/cmake/3.10.0/bin/cmake -E cmake_symlink_library libgnuradio-osmosdr.0.1.4.dylib libgnuradio-osmosdr.0.1.4.dylib libgnuradio-osmosdr.dylib [ 57%] Built target gnuradio-osmosdr 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: brew install gr-osmosdr fails on OSX 10.11.3 at freetype2 https://github.com/dholm/homebrew-sdr/issues/15

hanahana1618 avatar Dec 07 '17 02:12 hanahana1618