Actually, QtGstreamer is not referencing libxml directly.<br><br>The error happens because QtGstreamer is using gstreamer, which in turn is using libxml. So QtGstreamer finds gstreamer but not libxml headers.<br><br>I can&#39;t modify gstconfig.h since it belongs to gstreamer. There must be a way to tell QtGstreamer where to look for libxml. It&#39;s a shame that it is ignoring my request in CMAKE_INCLUDE_PATH.<br>
<br>[]&#39;s<br>--<br>Karl Phillip<br><br><br><br><div class="gmail_quote">On Fri, Dec 16, 2011 at 5:54 PM, Mailing List SVR <span dir="ltr">&lt;<a href="mailto:lists@svrinformatica.it">lists@svrinformatica.it</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Il 16/12/2011 18:56, Karl Phillip ha scritto:
    <div><div class="h5"><blockquote type="cite"> Hi all,<br>
      <br>
      I&#39;m trying to compile QtGstreamer using VS2008. I already managed
      to compile Gstreamer, and have everything else is properly
      installed (ossbuild, qt, boost, byson/flexm automoc, cmake). <br>
      <br>
      I&#39;ve made a few tests with gst-launch and also succeeded writing a
      &quot;Hello World&quot; Gstreamer to play audio/videos and everything seems
      fine.<br>
      <br>
      I&#39;m following the instructions from <a href="http://gstreamer.freedesktop.org/wiki/QtGStreamer/BuildingOnWindows" target="_blank">http://gstreamer.freedesktop.org/wiki/QtGStreamer/BuildingOnWindows</a><br>
      <br>
      Looking at the instructions at section &quot;Building QtGStreamer&quot;,
      after setting the PATH cmake is being configured with:<br>
      <br>
      cmake -G &quot;Visual Studio 9 2008&quot;
      -DCMAKE_INSTALL_PREFIX=&quot;C:\qt-gstreamer\install&quot; ^<br>
      -DBOOST_ROOT=&quot;C:\boost_1_45_0&quot; 
      -DCMAKE_INCLUDE_PATH=&quot;C:\ossbuild\Shared\MSVC\Include;C:\ossbuild\Shared\Build\Windows\Win32\include\libxml2&quot;
      ^<br>
      -DCMAKE_PREFIX_PATH=&quot;C:\ossbuild\Build\Windows\Win32\Release;C:\ossbuild\Shared\Build\Windows\Win32;C:\automoc\install&quot;
      ..<br>
      <br>
      This outputs:<br>
      <br>
=====================================================================================<br>
      -- Check for working C compiler using: Visual Studio 9 2008<br>
      -- Check for working C compiler using: Visual Studio 9 2008 --
      works<br>
      -- Detecting C compiler ABI info<br>
      -- Detecting C compiler ABI info - done<br>
      -- Check for working CXX compiler using: Visual Studio 9 2008<br>
      -- Check for working CXX compiler using: Visual Studio 9 2008 --
      works<br>
      -- Detecting CXX compiler ABI info<br>
      -- Detecting CXX compiler ABI info - done<br>
      -- Looking for Q_WS_X11<br>
      -- Looking for Q_WS_X11 - not found.<br>
      -- Looking for Q_WS_WIN<br>
      -- Looking for Q_WS_WIN - found<br>
      -- Looking for Q_WS_QWS<br>
      -- Looking for Q_WS_QWS - not found.<br>
      -- Looking for Q_WS_MAC<br>
      -- Looking for Q_WS_MAC - not found.<br>
      -- Found Qt-Version 4.7.4 (using C:/Qt/qt-src/qt/bin/qmake.exe)<br>
      -- Boost version: 1.45.0<br>
      -- checking for module &#39;gstreamer-0.10&#39;<br>
      --   package &#39;gstreamer-0.10&#39; not found<br>
      -- checking for module &#39;gstreamer-base-0.10&#39;<br>
      --   package &#39;gstreamer-base-0.10&#39; not found<br>
      -- Found GSTREAMER_BASE_LIBRARY:
      C:/ossbuild/Build/Windows/Win32/Release/lib/gstbase-0.10.lib<br>
      -- Found GSTREAMER_BASE_INCLUDE_DIR:
      C:/ossbuild/Build/Windows/Win32/Release/include/gstreamer-0.10<br>
      -- Performing Test GSTREAMER_VERSION_COMPATIBLE<br>
      -- Performing Test GSTREAMER_VERSION_COMPATIBLE - Success<br>
      -- Found GStreamer:
      C:/ossbuild/Build/Windows/Win32/Release/lib/gstreamer-0.10.lib<br>
      -- checking for module &#39;gstreamer-plugins-base-0.10&#39;<br>
      --   package &#39;gstreamer-plugins-base-0.10&#39; not found<br>
      -- checking for module &#39;gstreamer-app-0.10&#39;<br>
      --   package &#39;gstreamer-app-0.10&#39; not found<br>
      -- Found GSTREAMER_APP_LIBRARY:
      C:/ossbuild/Build/Windows/Win32/Release/lib/gstapp-0.10.lib<br>
      -- Found GSTREAMER_APP_INCLUDE_DIR:
      C:/ossbuild/Build/Windows/Win32/Release/include/gstreamer-0.10<br>
      -- checking for module &#39;gstreamer-interfaces-0.10&#39;<br>
      --   package &#39;gstreamer-interfaces-0.10&#39; not found<br>
      -- Found GSTREAMER_INTERFACES_LIBRARY:
      C:/ossbuild/Build/Windows/Win32/Release/lib/gstinterfaces-0.10.lib<br>
      -- Found GSTREAMER_INTERFACES_INCLUDE_DIR:
      C:/ossbuild/Build/Windows/Win32/Release/include/gstreamer-0.10<br>
      -- checking for module &#39;gstreamer-video-0.10&#39;<br>
      --   package &#39;gstreamer-video-0.10&#39; not found<br>
      -- Found GSTREAMER_VIDEO_LIBRARY:
      C:/ossbuild/Build/Windows/Win32/Release/lib/gstvideo-0.10.lib<br>
      -- Found GSTREAMER_VIDEO_INCLUDE_DIR:
      C:/ossbuild/Build/Windows/Win32/Release/include/gstreamer-0.10<br>
      -- Found GStreamerPluginsBase: TRUE<br>
      -- Found GLIB2:
      C:/ossbuild/Shared/Build/Windows/Win32/lib/glib-2.0.lib<br>
      -- Found GObject:
      C:/ossbuild/Shared/Build/Windows/Win32/include/glib-2.0<br>
      -- Found FLEX: C:/GnuWin32/bin/flex.exe<br>
      -- Found BISON: C:/GnuWin32/bin/bison.exe<br>
      -- Could NOT find Doxygen  (missing:  DOXYGEN_EXECUTABLE)<br>
      <br>
-----------------------------------------------------------------------------<br>
      -- The following external packages were located on your system.<br>
      -- This installation will have the extra features provided by
      these packages.<br>
-----------------------------------------------------------------------------<br>
         * Qt 4 - Required for building everything<br>
         * Boost - Required for building QtGLib<br>
         * Automoc 4 - Required for the build system to generate moc
      files properly<br>
         * GStreamer - Required to build QtGStreamer<br>
         * GStreamer base library - Used for building the
      qwidgetvideosink element<br>
         * GStreamer app library - Required to build QtGStreamerUtils<br>
         * GStreamer interfaces library - Required to build QtGStreamer<br>
         * GStreamer video library - Used for building the
      qwidgetvideosink element<br>
         * GLib - Required to build QtGLib<br>
         * GObject - Required to build QtGLib<br>
         * Flex - Required to build codegen, a helper code generator<br>
         * Bison - Required to build codegen, a helper code generator<br>
      <br>
-----------------------------------------------------------------------------<br>
      -- The following OPTIONAL packages could NOT be located on your
      system.<br>
      -- Consider installing them to enable more features from this
      software.<br>
-----------------------------------------------------------------------------<br>
         * Doxygen  &lt;<a href="http://www.doxygen.org/" target="_blank">http://www.doxygen.org/</a>&gt;<br>
           Used to generate the API documentation<br>
      <br>
-----------------------------------------------------------------------------<br>
      <br>
      -- Configuring done<br>
      -- Generating done<br>
      -- Build files have been written to: C:/qt-gstreamer/build<br>
=====================================================================================<br>
      <br>
      <br>
      I have to use Boost 1.45.0 as suggested by the site because 1.48.0
      gave me compiling erros inside Boost. Anyway, if you notice the
      variable CMAKE_INCLUDE_PATH you&#39;ll see that the include path for
      libxml2 is also being added. That&#39;s because I&#39;m trying to fix the
      errors which are all related to:<br>
      <br>
      9&gt;C:\ossbuild\Build\Windows\Win32\Release\include\gstreamer-0.10\gst/gstconfig.h(131)
      : fatal error C1083: Cannot open include file: &#39;libxml/parser.h&#39;:
      No such file or directory<br>
      <br>
      <br>
      Now, I know for sure the path
      &quot;C:\ossbuild\Shared\Build\Windows\Win32\include\libxml2\libxml\parser.h&quot;
      is valid. <br>
    </blockquote>
    <br></div></div>
    remove the reference to libxml from gstconfig.h, comment out line
    131, qtgstreamer not need libxml,<br>
    <br>
    Nicola<br>
    <br>
    <blockquote type="cite"><div class="im">
      <br>
      I&#39;m not sure how to fix this problem. Hopefully someone can shed a
      light on this.<br>
      <br>
      Thanks,<br>
      --<br>
      Karl Phillip<br>
      <br>
      <fieldset></fieldset>
      <br>
      </div><pre>_______________________________________________
gstreamer-devel mailing list
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
    </blockquote>
    <br>
  </div>

<br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br>