Notizbl0g.

h4cking, ham radio, fire fighting and m0re

Latest OpenDV on Raspberry Pi

This time just some short notes on how to compile the latest OpenDV [1] software on a Raspberry Pi running Raspbian (Jessie). As I learned from the irdDDBGateway newsgroup the latest versions of OpenDV link against libwx 3.0 instead of 2.8. So it is basically installing the required libraries and then compile OpenDV.

Besides the Raspbian OS you need to install the required libs to successfully compile ircDDBGateway and DStarRepeater. After that you can clone the OpenDV repo and compile ircDDBGateway and DStarRepeater. The steps are outlined below:

$ sudo apt-get install libusb-1.0-0-dev libasound2-dev libwxgtk3.0-dev libwx3.0-dev wx3.0-headers
$ git clone https://github.com/dl5di/OpenDV.git
$ cd OpenDV
$ cd ircDDBGateway/
$ make
$ sudo make install

The dstarrepeater binary configures and compiles without any errors but the binary would not run afterwards - at least in my case. I had to change some options in the make files. Here is the diff:

diff --git a/DStarRepeater/Makefile.am b/DStarRepeater/Makefile.am
index fd3856d..26fc66b 100644
--- a/DStarRepeater/Makefile.am
+++ b/DStarRepeater/Makefile.am
@@ -2,7 +2,7 @@ SUBDIRS = LinuxUSB
 
 DEFS += \
        -DDATA_DIR=\"${datadir}\" \
-       -DLOG_DIR=\"${localstatedir}/log/opendv\" \
+       -DLOG_DIR=\"${localstatedir}/log\" \
         -DCONF_DIR=\"${sysconfdir}\"
 
 CONTROLLER_SRCS =  Common/ArduinoController.cpp \
diff --git a/DStarRepeater/Makefile.in b/DStarRepeater/Makefile.in
index e15fe39..ed5f7eb 100644
--- a/DStarRepeater/Makefile.in
+++ b/DStarRepeater/Makefile.in
@@ -504,7 +504,7 @@ CXXDEPMODE = @CXXDEPMODE@
 CXXFLAGS = @CXXFLAGS@
 CYGPATH_W = @CYGPATH_W@
 DEFS = @DEFS@ -DDATA_DIR=\"${datadir}\" \
-       -DLOG_DIR=\"${localstatedir}/log/opendv\" \
+       -DLOG_DIR=\"${localstatedir}/log\" \
        -DCONF_DIR=\"${sysconfdir}\"
 DEPDIR = @DEPDIR@
 ECHO_C = @ECHO_C@

With these changes my dstarrepeater compiled again. And afterwards both binaries run on my Ubuntu 14.04 box.

$ cd ../DStarRepeater/
$ ./configure --sysconfdir=/etc --datadir=/usr/local/etc
$ make
$ sudo make install

Compiling the two packages required about an hour on a Raspberry Pi 2B. Afterwards you can go on to configure the hotspot or repeater with ircddbgatewayconfig and dstarrepeaterconfig.

References

[1] https://github.com/dl5di/OpenDV