[mythtv-commits] Ticket #13333: mythtv master fails to build with recent changes to ExternalRecorder

MythTV noreply at mythtv.org
Wed Oct 17 09:55:10 UTC 2018


#13333: mythtv master fails to build with recent changes to ExternalRecorder
--------------------------------------+-------------------------
     Reporter:  Mike Bibbings         |      Owner:  (none)
         Type:  Bug Report - General  |     Status:  new
     Priority:  major                 |  Milestone:  30.0
    Component:  MythTV - General      |    Version:  Master Head
     Severity:  medium                |   Keywords:
Ticket locked:  0                     |
--------------------------------------+-------------------------
 Local source build on master fails to build on Xubuntu 18.04 and Debian
 Stretch at commit f46e781a04ec2ac345dbf7ceda08ae91362d9081

 First build failure is at :

 {{{
 recorders/ExternalStreamHandler.cpp: In member function ‘int
 ExternIO::Read(QByteArray&, int, int)’:
 recorders/ExternalStreamHandler.cpp:146:22: error: ‘std::this_thread’ has
 not been declared
 std::this_thread::sleep_for(std::chrono::milliseconds(100));
                       ^~~~~~~~~~~
 recorders/ExternalStreamHandler.cpp: In member function ‘virtual void
 ExternalStreamHandler::run()’:
 recorders/ExternalStreamHandler.cpp:640:30: error: ‘std::this_thread’ has
 not been declared
 std::this_thread::sleep_for(std::chrono::seconds(5));
                               ^~~~~~~~~~~
 recorders/ExternalStreamHandler.cpp:664:30: error: ‘std::this_thread’ has
 not been declared
 std::this_thread::sleep_for(std::chrono::seconds(5));
                               ^~~~~~~~~~~
 Makefile:18135: recipe for target 'obj/ExternalStreamHandler.o' failed
 make[2]: *** [obj/ExternalStreamHandler.o] Error 1
 make[2]: Leaving directory '/srv/mike/build/mythtv/mythtv/libs/libmythtv'
 Makefile:265: recipe for target 'sub-libmythtv-make_first' failed
 make[1]: *** [sub-libmythtv-make_first] Error 2
 make[1]: Leaving directory '/srv/mike/build/mythtv/mythtv/libs'
 Makefile:68: recipe for target 'libs' failed
 make: *** [libs] Error 2

 }}}

 It appears that <thread> include is missing. Attached is a patch which
 adds #include <thread> to two files. I don't know if this general
 solution, it fixes Xubuntu 18.04 and Debian Stretch.

-- 
Ticket URL: <https://code.mythtv.org/trac/ticket/13333>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list