Error compiling QtGstreamer for Windows XP with VS2008

Mailing List SVR lists at svrinformatica.it
Fri Dec 16 11:54:10 PST 2011


Il 16/12/2011 18:56, Karl Phillip ha scritto:
>  Hi all,
>
> I'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).
>
> I've made a few tests with gst-launch and also succeeded writing a 
> "Hello World" Gstreamer to play audio/videos and everything seems fine.
>
> I'm following the instructions from 
> http://gstreamer.freedesktop.org/wiki/QtGStreamer/BuildingOnWindows
>
> Looking at the instructions at section "Building QtGStreamer", after 
> setting the PATH cmake is being configured with:
>
> cmake -G "Visual Studio 9 2008" 
> -DCMAKE_INSTALL_PREFIX="C:\qt-gstreamer\install" ^
> -DBOOST_ROOT="C:\boost_1_45_0"  
> -DCMAKE_INCLUDE_PATH="C:\ossbuild\Shared\MSVC\Include;C:\ossbuild\Shared\Build\Windows\Win32\include\libxml2" 
> ^
> -DCMAKE_PREFIX_PATH="C:\ossbuild\Build\Windows\Win32\Release;C:\ossbuild\Shared\Build\Windows\Win32;C:\automoc\install" 
> ..
>
> This outputs:
>
> =====================================================================================
> -- Check for working C compiler using: Visual Studio 9 2008
> -- Check for working C compiler using: Visual Studio 9 2008 -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Check for working CXX compiler using: Visual Studio 9 2008
> -- Check for working CXX compiler using: Visual Studio 9 2008 -- works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> -- Looking for Q_WS_X11
> -- Looking for Q_WS_X11 - not found.
> -- Looking for Q_WS_WIN
> -- Looking for Q_WS_WIN - found
> -- Looking for Q_WS_QWS
> -- Looking for Q_WS_QWS - not found.
> -- Looking for Q_WS_MAC
> -- Looking for Q_WS_MAC - not found.
> -- Found Qt-Version 4.7.4 (using C:/Qt/qt-src/qt/bin/qmake.exe)
> -- Boost version: 1.45.0
> -- checking for module 'gstreamer-0.10'
> --   package 'gstreamer-0.10' not found
> -- checking for module 'gstreamer-base-0.10'
> --   package 'gstreamer-base-0.10' not found
> -- Found GSTREAMER_BASE_LIBRARY: 
> C:/ossbuild/Build/Windows/Win32/Release/lib/gstbase-0.10.lib
> -- Found GSTREAMER_BASE_INCLUDE_DIR: 
> C:/ossbuild/Build/Windows/Win32/Release/include/gstreamer-0.10
> -- Performing Test GSTREAMER_VERSION_COMPATIBLE
> -- Performing Test GSTREAMER_VERSION_COMPATIBLE - Success
> -- Found GStreamer: 
> C:/ossbuild/Build/Windows/Win32/Release/lib/gstreamer-0.10.lib
> -- checking for module 'gstreamer-plugins-base-0.10'
> --   package 'gstreamer-plugins-base-0.10' not found
> -- checking for module 'gstreamer-app-0.10'
> --   package 'gstreamer-app-0.10' not found
> -- Found GSTREAMER_APP_LIBRARY: 
> C:/ossbuild/Build/Windows/Win32/Release/lib/gstapp-0.10.lib
> -- Found GSTREAMER_APP_INCLUDE_DIR: 
> C:/ossbuild/Build/Windows/Win32/Release/include/gstreamer-0.10
> -- checking for module 'gstreamer-interfaces-0.10'
> --   package 'gstreamer-interfaces-0.10' not found
> -- Found GSTREAMER_INTERFACES_LIBRARY: 
> C:/ossbuild/Build/Windows/Win32/Release/lib/gstinterfaces-0.10.lib
> -- Found GSTREAMER_INTERFACES_INCLUDE_DIR: 
> C:/ossbuild/Build/Windows/Win32/Release/include/gstreamer-0.10
> -- checking for module 'gstreamer-video-0.10'
> --   package 'gstreamer-video-0.10' not found
> -- Found GSTREAMER_VIDEO_LIBRARY: 
> C:/ossbuild/Build/Windows/Win32/Release/lib/gstvideo-0.10.lib
> -- Found GSTREAMER_VIDEO_INCLUDE_DIR: 
> C:/ossbuild/Build/Windows/Win32/Release/include/gstreamer-0.10
> -- Found GStreamerPluginsBase: TRUE
> -- Found GLIB2: C:/ossbuild/Shared/Build/Windows/Win32/lib/glib-2.0.lib
> -- Found GObject: C:/ossbuild/Shared/Build/Windows/Win32/include/glib-2.0
> -- Found FLEX: C:/GnuWin32/bin/flex.exe
> -- Found BISON: C:/GnuWin32/bin/bison.exe
> -- Could NOT find Doxygen  (missing:  DOXYGEN_EXECUTABLE)
>
> -----------------------------------------------------------------------------
> -- The following external packages were located on your system.
> -- This installation will have the extra features provided by these 
> packages.
> -----------------------------------------------------------------------------
>    * Qt 4 - Required for building everything
>    * Boost - Required for building QtGLib
>    * Automoc 4 - Required for the build system to generate moc files 
> properly
>    * GStreamer - Required to build QtGStreamer
>    * GStreamer base library - Used for building the qwidgetvideosink 
> element
>    * GStreamer app library - Required to build QtGStreamerUtils
>    * GStreamer interfaces library - Required to build QtGStreamer
>    * GStreamer video library - Used for building the qwidgetvideosink 
> element
>    * GLib - Required to build QtGLib
>    * GObject - Required to build QtGLib
>    * Flex - Required to build codegen, a helper code generator
>    * Bison - Required to build codegen, a helper code generator
>
> -----------------------------------------------------------------------------
> -- The following OPTIONAL packages could NOT be located on your system.
> -- Consider installing them to enable more features from this software.
> -----------------------------------------------------------------------------
>    * Doxygen <http://www.doxygen.org/>
>      Used to generate the API documentation
>
> -----------------------------------------------------------------------------
>
> -- Configuring done
> -- Generating done
> -- Build files have been written to: C:/qt-gstreamer/build
> =====================================================================================
>
>
> 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'll see that the include path for 
> libxml2 is also being added. That's because I'm trying to fix the 
> errors which are all related to:
>
> 9>C:\ossbuild\Build\Windows\Win32\Release\include\gstreamer-0.10\gst/gstconfig.h(131) 
> : fatal error C1083: Cannot open include file: 'libxml/parser.h': No 
> such file or directory
>
>
> Now, I know for sure the path 
> "C:\ossbuild\Shared\Build\Windows\Win32\include\libxml2\libxml\parser.h" 
> is valid.

remove the reference to libxml from gstconfig.h, comment out line 131, 
qtgstreamer not need libxml,

Nicola

>
> I'm not sure how to fix this problem. Hopefully someone can shed a 
> light on this.
>
> Thanks,
> --
> Karl Phillip
>
>
> _______________________________________________
> 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/20111216/42e2bbec/attachment.htm>


More information about the gstreamer-devel mailing list