Error compiling QtGstreamer for Windows XP with VS2008

Karl Phillip maxphil at gmail.com
Mon Dec 19 04:11:41 PST 2011


Before we close this thread permanently, I need one last help from you
guys.

After successfully building Qt-Gstreamer on Windows I noticed that
examples/player doesn't work right out of the box. Upon execution I get an
error saying "Failed to start in pull mode", "Could not open resource for
reading", "No URI set".

I found a thread on the mailing list from last month where a user had
reported this issue but he forgot to mention how to do the fix:
http://lists.freedesktop.org/archives/gstreamer-devel/2011-November/033919.html

So, how can I fix this issue?

Thank you all
--
Karl Phillip

On Fri, Dec 16, 2011 at 11:02 PM, Maxphil <maxphil at gmail.com> wrote:

> Fantastic!
>
> Thank you all.
>
>
>
> On 16/12/2011, at 22:30, George Kiagiadakis <kiagiadakis.george at gmail.com>
> wrote:
>
> > On Fri, Dec 16, 2011 at 10:17 PM, Karl Phillip <maxphil at gmail.com>
> wrote:
> >> Actually, QtGstreamer is not referencing libxml directly.
> >>
> >> The error happens because QtGstreamer is using gstreamer, which in turn
> is
> >> using libxml. So QtGstreamer finds gstreamer but not libxml headers.
> >>
> >> I can't modify gstconfig.h since it belongs to gstreamer. There must be
> a
> >> way to tell QtGstreamer where to look for libxml. It's a shame that it
> is
> >> ignoring my request in CMAKE_INCLUDE_PATH.
> >
> > No, you have to remove it from gstconfig.h. It's a bug in the
> > gstconfig.h shipped with ossbuild. The QtGStreamer build system was
> > based on the assumption that it is built on top of GStreamer >=
> > 0.10.31 which  has an updated gstconfig.h that doesn't require libxml.
> >
> > Fyi, CMAKE_INCLUDE_PATH is not added to the compiler command line. It
> > is used as a hint for find_file() cmake calls. If you really really
> > want to fix this in QtGStreamer instead of just updating your
> > gstconfig.h, you need to add a FindLibXml2.cmake file, use
> > find_package(LibXml2) in the top level CMakeLists.txt and add the
> > found include path in the compiler include path with the
> > include_directories() call.
> >
> > Regards,
> > George
> > _______________________________________________
> > gstreamer-devel mailing list
> > gstreamer-devel at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20111219/340cf82f/attachment.htm>


More information about the gstreamer-devel mailing list