Including QGst/Utils/ApplicationSink causes "fatal error C1083: Cannot open include file: 'global.h': No such file or directory"

George Kiagiadakis kiagiadakis.george at gmail.com
Mon Dec 19 09:52:23 PST 2011


On Mon, Dec 19, 2011 at 7:16 PM, Karl Phillip <maxphil at gmail.com> wrote:
> I have successfully compiled QtGstreamer on Windows using VS2008, and
> examples/player works fine after the patch suggested by George in
> http://lists.freedesktop.org/archives/gstreamer-devel/2011-December/034351.html
>
> 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:
>
>
> 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
>
> Looking at applicationsink.h reveals that it is including global.h as a
> local file:
>
>     #ifndef QGST_UTILS_APPLICATIONSINK_H
>     #define QGST_UTILS_APPLICATIONSINK_H
>
>     #include "global.h"             // <------ error
>     #include "../element.h"
>     #include "../bufferlist.h"
>
> The problem seems to be that there's NO global.h at the same directory as
> applicationsink.h.

This was a bug in the 0.10.1 release, which was fixed afterwards:

http://cgit.freedesktop.org/gstreamer/qt-gstreamer/commit/?id=771aea1176625987b6e3038c222899a83ecbcbd5

The global.h from the parent directory will not work.

Regards,
George


More information about the gstreamer-devel mailing list