I think I found the problem. On Windows, &quot;cmake --build . --target install&quot; is not copying &quot;C:\qt-gstreamer\src\QGst\Utils\global.h&quot; to the installation dir &quot;C:\qt-gstreamer\install\include\QtGStreamer\QGst\Utils&quot; as it does on Linux.<br>
<br>Maybe George can release a proper fix to this issue soon. Meanwhile, just copy global.h to the right place.<br>--<br>Karl Phillip<br><br><div class="gmail_quote">On Mon, Dec 19, 2011 at 3:16 PM, Karl Phillip <span dir="ltr">&lt;<a href="mailto:maxphil@gmail.com">maxphil@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have successfully compiled QtGstreamer on Windows using VS2008, and examples/player works fine after the patch suggested by George in <a href="http://lists.freedesktop.org/archives/gstreamer-devel/2011-December/034351.html" target="_blank">http://lists.freedesktop.org/archives/gstreamer-devel/2011-December/034351.html</a><br>

<br>Now I&#39;m having problems writting a minimal application that has &quot;#include &lt;QGst/Utils/ApplicationSink&gt;&quot; because it causes the compilation to fail with the following error:<br><br>    c:\qt-gstreamer\install\include\qtgstreamer\qgst\utils\applicationsink.h(21) : fatal error C1083: Cannot open include file: &#39;global.h&#39;: No such file or directory<br>

<br>Looking at applicationsink.h reveals that it is including global.h as a local file:<br><br>    #ifndef QGST_UTILS_APPLICATIONSINK_H<br>    #define QGST_UTILS_APPLICATIONSINK_H<br><br>    #include &quot;global.h&quot;             // &lt;------ error<br>

    #include &quot;../element.h&quot;<br>    #include &quot;../bufferlist.h&quot;<br><br>The problem seems to be that there&#39;s NO global.h at the same directory as applicationsink.h. <br><br>Nevertheless, there&#39;s a global.h at the directory above, so if I updated this file accordingly:<br>

<br>    #ifndef QGST_UTILS_APPLICATIONSINK_H<br>
    #define QGST_UTILS_APPLICATIONSINK_H<br>
<br>
    #include &quot;../global.h&quot;             // &lt;------ another error<br>
    #include &quot;../element.h&quot;<br>
    #include &quot;../bufferlist.h&quot;<br><br>Visual Studio throws another error:<br><br>1&gt;------ Build started: Project: qt-gstreamer_test, Configuration: Debug Win32 ------<br>1&gt;Compiling...<br>1&gt;main.cpp<br>

1&gt;c:\qt-gstreamer\install\include\qtgstreamer\qgst\utils\applicationsink.h(67) : error C2470: &#39;ApplicationSink&#39; : looks like a function definition, but there is no parameter list; skipping apparent body<br>1&gt;Build log was saved at &quot;file://c:\Documents and Settings\karl.phillip\Meus documentos\Visual Studio 2008\Projects\qt-gstreamer_test\qt-gstreamer_test\Debug\BuildLog.htm&quot;<br>

1&gt;qt-gstreamer_test - 1 error(s), 0 warning(s)<br>========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========<br><br><br>The same problems happens with applicationsource.h.<br><br><br>Any tips?<br><br>
Thanks guys,<span class="HOEnZb"><font color="#888888"><br>
--<br>Karl Phillip<br>
</font></span></blockquote></div><br>