public
Created

Patch to make gr-fcd compile on Mac OS X (native)

  • Download Gist
gr-fcd-osx.patch
Diff
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
diff --git a/configure.ac b/configure.ac
index 27c0dc1..26974c0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -44,9 +44,9 @@ m4_include([config/gr_standalone.m4])
GR_STANDALONE
dnl Check for libusb-1.0
-PKG_CHECK_MODULES(LIBUSB, libusb-1.0 >= 1.0)
-LIBS="$LIBS $LIBUSB_LIBS"
-CPPFLAGS="$CPPFLAGS $LIBUSB_CPPFLAGS"
+#PKG_CHECK_MODULES(LIBUSB, libusb-1.0 >= 1.0)
+#LIBS="$LIBS $LIBUSB_LIBS"
+#CPPFLAGS="$CPPFLAGS $LIBUSB_CPPFLAGS"
dnl Check for any libraries you need
dnl AC_CHECK_LIBRARY
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 9d19c3c..03b62ca 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -40,11 +40,14 @@ lib_LTLIBRARIES = libgnuradio-fcd.la
libgnuradio_fcd_la_SOURCES = \
fcd_source_c.cc \
fcd.c \
- hid-libusb.c
+ hidmac.c
+## hid-libusb.c
libgnuradio_fcd_la_LIBADD = \
$(GNURADIO_CORE_LA) \
- $(GNURADIO_AUDIO_LA)
+ $(GNURADIO_AUDIO_LA) \
+ /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation \
+ /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
libgnuradio_fcd_la_LDFLAGS = $(NO_UNDEFINED) $(LTVERSIONFLAGS)

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.