Build failure of qtgstreamer on windows using cmake

Diane Trout diane at ghic.org
Thu Nov 5 14:34:26 PST 2015


It looks like the compiler is failing to parse the QTGLIB_EXPORT macro 
correctly.

I don't have access to a MS build environment so can't really help much. Try 
looking in global.h to see if changes to the #define help any.

Diane

On Thursday, November 05, 2015 05:33:16 AM wblgers wrote:
> Hi all,
> 
> Good day!
> 
> I'm trying to build qtgstreamer on windows using cmake, but after I
> successfully generate vs2010 solution project, my build failed on building
> Qt5Gstreamer.
> 
> My install components are as following:
> (1) gstreamer-1.0-x86-1.5.2.msi
> (2) gstreamer-1.0-devel-x86-1.5.2.msi
> (3) qt-gstreamer-1.2.0
> (4) QT5.5
> (5) boost_1_55
> 
> The configure output on Cmake is:
> Using Qt5 (min: 5.0.0)
> Boost version: 1.55.0
> Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)
> Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)
> CMake Warning (dev) at examples/CMakeLists.txt:13 (get_target_property):
>   Policy CMP0045 is not set: Error on non-existent target in
>   get_target_property.  Run "cmake --help-policy CMP0045" for policy
> details.
>   Use the cmake_policy command to set the policy and suppress this warning.
> 
>   get_target_property() called with non-existent target
> "examples_distcheck".
> Call Stack (most recent call first):
>   examples/CMakeLists.txt:22 (example_distcheck)
> This warning is for project developers.  Use -Wno-dev to suppress it.
> 
> 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 - Required for building everything
>    * QtOpenGL - Required for OpenGL acceleration in qtvideosink and
> QtGStreamerUi
>    * QtQuick1 (QtDeclarative) - Required for building QtQuick1 support
>    * QtQuick2 (QtQuick) - Required for building QtQuick2 support
>    * QtQml - Required for building QtQuick2 support
>    * Boost - Required for building QtGLib
>    * GStreamer - Required to build QtGStreamer
>    * GStreamer base library - Used for building the qt5videosink element
>    * GStreamer app library - Required to build QtGStreamerUtils
>    * GStreamer audio library - Required to build QtGStreamer
>    * GStreamer video library - Required to build QtGStreamer
>    * GStreamer pbutils library - Used for building the Discoverer API
>    * GLib - Required to build QtGLib
>    * GObject - Required to build QtGLib
>    * OpenGL - Required for OpenGL rendering support in qt5videosink
> 
> ----------------------------------------------------------------------------
> - -- 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
> 
> 
> Seems everything right, but when I open QtGStreamer.sln to build, I
> encountered those follwing errors:
> 2>d:\qt\gstreamer\qt-gstreamer-1.2.0\qt-gstreamer-1.2.0\src\qglib\wrap.h(37)
> : error C2146: syntax error : missing ';' before identifier
> 'RefCountedObject'
> 2>d:\qt\gstreamer\qt-gstreamer-1.2.0\qt-gstreamer-1.2.0\src\qglib\wrap.h(37
> ): error C4430: missing type specifier - int assumed. Note: C++ does not
> support default-int
> 2>d:\qt\gstreamer\qt-gstreamer-1.2.0\qt-gstreamer-1.2.0\src\qglib\wrap.h(68)
> : error C2146: syntax error : missing ';' before identifier
> 'RefCountedObject'
> 2>d:\qt\gstreamer\qt-gstreamer-1.2.0\qt-gstreamer-1.2.0\src\qglib\wrap.h(68
> ): error C4430: missing type specifier - int assumed. Note: C++ does not
> support default-int
> 2>d:\qt\gstreamer\qt-gstreamer-1.2.0\qt-gstreamer-1.2.0\src\qglib\wrap.h(69)
> : error C2146: syntax error : missing ';' before identifier
> 'RefCountedObject'
> 2>d:\qt\gstreamer\qt-gstreamer-1.2.0\qt-gstreamer-1.2.0\src\qglib\wrap.h(69
> ): error C4430: missing type specifier - int assumed. Note: C++ does not
> support default-int
> 2>d:\qt\gstreamer\qt-gstreamer-1.2.0\qt-gstreamer-1.2.0\src\qglib\wrap.h(69)
> : error C2086: 'int QGlib::Private::QTGLIB_EXPORT' : redefinition
> 2>d:\qt\gstreamer\qt-gstreamer-1.2.0\qt-gstreamer-1.2.0\src\qglib\wrap.h(70)
> : error C2146: syntax error : missing ';' before identifier
> 'RefCountedObject'
> 2>d:\qt\gstreamer\qt-gstreamer-1.2.0\qt-gstreamer-1.2.0\src\qglib\wrap.h(70
> ): error C4430: missing type specifier - int assumed. Note: C++ does not
> support default-int
> 2>d:\qt\gstreamer\qt-gstreamer-1.2.0\qt-gstreamer-1.2.0\src\qglib\wrap.h(70)
> : error C2086: 'int QGlib::Private::QTGLIB_EXPORT' : redefinition
> 
> I can't paste the whole error, it's too long.
> 
> Can u guys help me resolve this issue?thx
> 
> 
> 
> 
> 
> --
> View this message in context:
> http://gstreamer-devel.966125.n4.nabble.com/Build-failure-of-qtgstreamer-on
> -windows-using-cmake-tp4674398.html Sent from the GStreamer-devel mailing
> list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list