简体   繁体   English

错误:无法打开源文件x11 \\ xlib.h

[英]ERROR: cannot open source file x11\xlib.h

I'm using openCV 2.4.8 and visual studio Express 2012. I included all the Environmental variable PATH and Additional library etc.For hand gesture recognize sample code i used from here . 我使用的是openCV 2.4.8和Visual Studio Express2012。我包括了所有环境变量PATH和Additional library等。对于手势识别,我在这里使用了示例代码。 when I run the code I get this error: 当我运行代码时,出现此错误:

ERROR: cannot open source file x11\\xlib.h

.I tried in google but i can't able to get a proper solution. 。我在Google中尝试过,但无法获得适当的解决方案。

#include <X11/Xlib.h>
#include <X11/Xutil.h>

you just can't use that code on windows. 您只是无法在Windows上使用该代码。

while opencv itself is pretty portable, above code is clearly not. 虽然opencv本身是可移植的,但是上面的代码显然不是。

(instead of using cv::imshow() etc, jujojujo2003 was using native Xwindow calls to pirate the cursor.) (而不是使用cv :: imshow()等,jujojujo2003使用本地Xwindow调用来盗版光标。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM