From 690ed3e1d6f20fbbd7236ed0984b21c67bce406e Mon Sep 17 00:00:00 2001 From: wb2osz Date: Sat, 23 Nov 2019 20:06:57 -0500 Subject: [PATCH] CentOS build issues. --- README.md | 11 ++++++++++- src/ptt.c | 18 ++++++++++++++++-- 2 files changed, 26 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1895005..9597c24 100644 --- a/README.md +++ b/README.md @@ -125,7 +125,16 @@ On Debian / Ubuntu / Raspbian: Or on Red Hat / Fedora / Centos: - sudo yum install cmake +CentOS 6 & 7 currently have cmake 2.8 but we need 3.1 or later. +First you need to enable the EPEL repository. Add a symlink if you want to type cmake rather than cmake3. + + sudo yum install epel-release + sudo rpm -e cmake + sudo yum install cmake3 + sudo ln -s /usr/bin/cmake3 /usr/bin/cmake + +Continue with the other required packages: + sudo yum install alsa-lib-devel sudo yum install libudev-devel diff --git a/src/ptt.c b/src/ptt.c index 74dd6b6..5cc3392 100644 --- a/src/ptt.c +++ b/src/ptt.c @@ -62,8 +62,8 @@ *---------------------------------------------------------------*/ /* - A growing number of people have been asking about support for the DMK URI - or the similar RB-USB RIM. + A growing number of people have been asking about support for the DMK URI, + RB-USB RIM, etc. These use a C-Media CM108/CM119 with an interesting addition, a GPIO pin is used to drive PTT. Here is some related information. @@ -78,6 +78,15 @@ http://www.repeater-builder.com/products/usb-rim-lite.html http://www.repeater-builder.com/voip/pdf/cm119-datasheet.pdf + RA-35: + + http://www.masterscommunications.com/products/radio-adapter/ra35.html + + DINAH: + + https://hamprojects.info/dinah/ + + Homebrew versions of the same idea: http://images.ohnosec.org/usbfob.pdf @@ -147,6 +156,11 @@ #include #include #include + +#ifndef __USE_BSD +#define __USE_BSD // Needed for gcc 4.8.5 to find definitions for scandir + // and alphasort. Newer compilers don't have this issue. +#endif #include #ifdef USE_HAMLIB