I think I found the problem. On Windows, "cmake --build . --target install" is not copying "C:\qt-gstreamer\src\QGst\Utils\global.h" to the installation dir "C:\qt-gstreamer\install\include\QtGStreamer\QGst\Utils" 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"><<a href="mailto:maxphil@gmail.com">maxphil@gmail.com</a>></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'm having problems writting a minimal application that has "#include <QGst/Utils/ApplicationSink>" 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: 'global.h': 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 "global.h" // <------ error<br>
#include "../element.h"<br> #include "../bufferlist.h"<br><br>The problem seems to be that there's NO global.h at the same directory as applicationsink.h. <br><br>Nevertheless, there'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 "../global.h" // <------ another error<br>
#include "../element.h"<br>
#include "../bufferlist.h"<br><br>Visual Studio throws another error:<br><br>1>------ Build started: Project: qt-gstreamer_test, Configuration: Debug Win32 ------<br>1>Compiling...<br>1>main.cpp<br>
1>c:\qt-gstreamer\install\include\qtgstreamer\qgst\utils\applicationsink.h(67) : error C2470: 'ApplicationSink' : looks like a function definition, but there is no parameter list; skipping apparent body<br>1>Build log was saved at "file://c:\Documents and Settings\karl.phillip\Meus documentos\Visual Studio 2008\Projects\qt-gstreamer_test\qt-gstreamer_test\Debug\BuildLog.htm"<br>
1>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>