[mythtv-users] HDPVR intermittent failure

John Hoyt john.hoyt at gmail.com
Fri Jul 31 22:47:49 UTC 2020


>
> If anyone does sort out the required dependencies and gets this to build
> (in Xenial), please post your build adventure to the mailing list (...and
> if you choose to your .dsc file from debuild...).  With that info I can
> probably get a version posted to my ppa.
>

So after staring at this for a few more minutes, I now have a version that
compiles with pbuilder and is also posted to my ppa (
https://launchpad.net/~john-hoyt/+archive/ubuntu/hauppaugeusb/+packages).

The big issues with compiling were

   1. replacing the xxd package with vim-common as that's where Xenial
   hides the xxd executable.
   2. modifying the source in "Common/Rx/audio_CS8416.cpp" to add an
   include statement to cstring and changing the call to memcpy to be
   std::memcpy

Here's the diff for a patch file for "Common/Rx/audio_CS8416.cpp:

--- Common/Rx/audio_CS8416.cpp 2016-09-26 16:35:49.000000000 -0400
+++ Common/Rx/audio_CS8416.cpp 2020-07-31 18:11:02.281056836 -0400
@@ -17,6 +17,7 @@
 #include <cstdint>
 #include <map>
 #include <stdexcept>
+#include <cstring>

 #include "audio_CS8416.h"

@@ -170,7 +171,7 @@
     else {
         sendbuff = static_cast<uint8_t*>(malloc(len + 1));
         *sendbuff = static_cast<uint8_t>(reg);
-        memcpy(sendbuff + 1, data, len);
+        std::memcpy(sendbuff + 1, data, len);
     }

     result = m_fx2.I2CWrite(CS8416_DEVICE_ADDR, sendbuff, len + 1);


@John Poet - it may be worth appending some instructions to your
gitrepo Readme.md noting Ubuntu Xenial users will need to install
dependencies with

"sudo apt-get install libboost-log-dev libboost-program-options-dev
libusb-1.0-0-dev build-essential"


As well as apply the patch.

~John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20200731/f9c6adcd/attachment.htm>


More information about the mythtv-users mailing list