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

Karl Phillip maxphil at gmail.com
Mon Dec 19 09:49:32 PST 2011


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.

Maybe George can release a proper fix to this issue soon. Meanwhile, just
copy global.h to the right place.
--
Karl Phillip

On Mon, Dec 19, 2011 at 3: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.
>
> Nevertheless, there's a global.h at the directory above, so if I updated
> this file accordingly:
>
>     #ifndef QGST_UTILS_APPLICATIONSINK_H
>     #define QGST_UTILS_APPLICATIONSINK_H
>
>     #include "../global.h"             // <------ another error
>     #include "../element.h"
>     #include "../bufferlist.h"
>
> Visual Studio throws another error:
>
> 1>------ Build started: Project: qt-gstreamer_test, Configuration: Debug
> Win32 ------
> 1>Compiling...
> 1>main.cpp
> 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
> 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"
> 1>qt-gstreamer_test - 1 error(s), 0 warning(s)
> ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
>
>
> The same problems happens with applicationsource.h.
>
>
> Any tips?
>
> Thanks guys,
> --
> Karl Phillip
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20111219/78225ea7/attachment-0001.htm>


More information about the gstreamer-devel mailing list