Opened 5 years ago
Closed 5 years ago
Last modified 5 years ago
#13333 closed Bug Report - General (fixed)
mythtv master fails to build with recent changes to ExternalRecorder
Reported by: | Mike Bibbings | Owned by: | Stuart Auchterlonie |
---|---|---|---|
Priority: | major | Milestone: | 30.0 |
Component: | MythTV - General | Version: | Master Head |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
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.
Attachments (1)
Change History (4)
Changed 5 years ago by
Attachment: | add_thread.patch added |
---|
comment:1 Changed 5 years ago by
Owner: | set to Stuart Auchterlonie |
---|---|
Status: | new → accepted |
Thanks for the patch. I was just looking into this issue.
Regards Stuart
Note: See
TracTickets for help on using
tickets.
add_thread patch