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">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,<br>
--<br>Karl Phillip<br>