Opencv 多线程显示错误 [xcb] Unknown request in queue while dequeuing [xcb] Most likely this is a multi-thre
来源:互联网 发布:java毫秒数转时间 在线 编辑:程序博客网 时间:2024/06/07 08:38
本文转自 http://blog.csdn.net/michaelhan3/article/details/54707417
OpenCV 多线程显示出现以下错误:
[xcb] Unknown request in queue while dequeuing
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
Blurring_Images: ../../src/xcb_io.c:178: dequeue_pending_request: Assertion `!xcb_xlib_unknown_req_in_deq' failed.
The program has unexpectedly finished.
解决办法:
通过链接X11,包含xlib库和调用XinitThreads
例如:
// main.cpp#include <thread> #include <X11/Xlib.h>int main() { XInitThreads(); // . . . }
g++ main.cpp -o my_program -std=c++0x -pthread -lX11 /* -pthread if you're on Linux */
阅读全文
0 0
- Opencv 多线程显示错误 [xcb] Unknown request in queue while dequeuing [xcb] Most likely this is a multi-thre
- Opencv 多线程显示错误 [xcb] Unknown request in queue while dequeuing [xcb] Most likely this is a multi-thre
- SDL多线程问题之--Unknown request in queue while dequeuing
- XCB
- xcb
- XCB
- Capturing 'request' strongly in this block is likely to lead to a retain cycle
- 什么是XCB
- iOS--错误集锦--Capturing 'self' strongly in this block is likely to lead to a retain cycle
- This application failed to start because it could not find or load the Qt platform plugin "xcb" in "
- This application failed to start because it could not find or load the Qt platform plugin "xcb" in "
- This application failed to start because it could not find or load the Qt platform plugin "xcb" in "
- Springmvc rest 传递json报415错误(The server refused this request because the request entity is in a forma
- Capturing 'self' strongly in this block is likely to lead to a retain cycle
- capturing self strongly in this block is likely to lead to a retain cycle
- Capturing self strongly in this block is likely to lead to a retain cycle
- Capturing 'self' strongly in this block is likely to lead to a retain cycle
- Capturing 'self' strongly in this block is likely to lead to a retain cycle
- Vue.js组件化开发实践
- caffe 相关--Blobs, Layers, and Nets: anatomy of a Caffe model
- Leetcode: linked-list-cycle-ii
- Q&A——资源管理(四)
- spark 2.1 CallerContext
- Opencv 多线程显示错误 [xcb] Unknown request in queue while dequeuing [xcb] Most likely this is a multi-thre
- &和global的妙用
- redis 学习笔记
- 索引
- REACT NATIVE 真正的路线,其实没那么难
- 项目部署到远程Linux服务器
- HDU_2838_Cow Sorting_树状数组
- Java实现Spark词配对Wordcount计数
- 视频直播质量的评测和实现分享---很好视频评测知识