Updated by Andrey Kamaev almost 13 years ago
More specifically, please add something like this in @modules/highgui/src/window_QT.cpp@: modules/highgui/src/window_QT.cpp :
<pre><code class="cpp"> @
#ifdef _WIN32
#include <windows.h>
#else
#include <unistd.h>
#endif
</code></pre> #endif@
Otherwise it doesn't compile in newer gcc:
<pre>
.../opencv/modules/highgui/src/window_QT.cpp: In function âint cvWaitKey(int)â:
.../opencv/modules/highgui/src/window_QT.cpp:321:28: error: âusleepâ was not declared in this scope
</pre>
<pre><code class="cpp"> @
#ifdef _WIN32
#include <windows.h>
#else
#include <unistd.h>
#endif
</code></pre> #endif@
Otherwise it doesn't compile in newer gcc:
<pre>
.../opencv/modules/highgui/src/window_QT.cpp: In function âint cvWaitKey(int)â:
.../opencv/modules/highgui/src/window_QT.cpp:321:28: error: âusleepâ was not declared in this scope
</pre>