Patch to make gr-fcd compile on Mac OS X (native)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment