Hi all,<br><br>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). <br><br>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.<br>
<br>I'm following the instructions from <a href="http://gstreamer.freedesktop.org/wiki/QtGStreamer/BuildingOnWindows">http://gstreamer.freedesktop.org/wiki/QtGStreamer/BuildingOnWindows</a><br><br>Looking at the instructions at section "Building QtGStreamer", after setting the PATH cmake is being configured with:<br>
<br>cmake -G "Visual Studio 9 2008" -DCMAKE_INSTALL_PREFIX="C:\qt-gstreamer\install" ^<br>-DBOOST_ROOT="C:\boost_1_45_0" -DCMAKE_INCLUDE_PATH="C:\ossbuild\Shared\MSVC\Include;C:\ossbuild\Shared\Build\Windows\Win32\include\libxml2" ^<br>
-DCMAKE_PREFIX_PATH="C:\ossbuild\Build\Windows\Win32\Release;C:\ossbuild\Shared\Build\Windows\Win32;C:\automoc\install" ..<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 'gstreamer-0.10'<br>-- package 'gstreamer-0.10' not found<br>-- checking for module 'gstreamer-base-0.10'<br>-- package 'gstreamer-base-0.10' 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 'gstreamer-plugins-base-0.10'<br>-- package 'gstreamer-plugins-base-0.10' not found<br>
-- checking for module 'gstreamer-app-0.10'<br>-- package 'gstreamer-app-0.10' 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 'gstreamer-interfaces-0.10'<br>-- package 'gstreamer-interfaces-0.10' 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 'gstreamer-video-0.10'<br>-- package 'gstreamer-video-0.10' 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 <<a href="http://www.doxygen.org/">http://www.doxygen.org/</a>><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'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:<br>
<br>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<br><br><br>Now, I know for sure the path "C:\ossbuild\Shared\Build\Windows\Win32\include\libxml2\libxml\parser.h" is valid. <br>
<br>I'm not sure how to fix this problem. Hopefully someone can shed a light on this.<br><br>Thanks,<br>--<br>Karl Phillip<br>