<p dir="ltr">Yes, you need to specify the CMake generator.  "MinGW Makefiles" you will need for Windows.  You will also need a GCC version of the Qt 5 SDK installed.  Usually Qt will have a command prompt mode that has all the environment setup ready.</p>
<div class="gmail_quote">On 20 Jun 2015 02:52, "Dmitri Afanasjev" <<a href="mailto:adimas@gmail.com">adimas@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Looks like Visual Studio build-way is buggy. I have a lot of places where error below exists:<br><br><div>LINK : fatal error LNK1104: cannot open file '..\..\src\QGst\Debug\Qt5GStreamer-1.0.lib'</div><div>17>  graphicsvideosurface.cpp</div><div>18>E:\gstreamer\1.0\x86_64\include\gstreamer-1.0\gst/gstobject.h(172): error C2079: '_GstObject::lock' uses undefined struct '_GMutex'</div><div>18>E:\gstreamer\1.0\x86_64\include\gstreamer-1.0\gst/gstdatetime.h(111): error C2143: syntax error : missing ';' before '*'</div><div>18>E:\gstreamer\1.0\x86_64\include\gstreamer-1.0\gst/gstdatetime.h(111): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int</div><div>18>E:\gstreamer\1.0\x86_64\include\gstreamer-1.0\gst/gstdatetime.h(113): error C2065: 'dt' : undeclared identifier</div><div>18>E:\gstreamer\1.0\x86_64\include\gstreamer-1.0\gst/gstdatetime.h(113): fatal error C1903: unable to recover from previous error(s); stopping compilation</div><div>18>  Qt5GStreamerUtils_automoc.cpp</div><br><br><span style="font-size:13.1999998092651px;line-height:15.8399991989136px"><b> '_GstObject::lock' uses undefined struct '_GMutex' </b>error if repaired including code below to gst/gstobject.h</span><br><br><div><div>struct _GMutex</div><div>{</div><div>  gpointer p;</div><div>  guint i[2];</div><div>}; </div></div><div><br></div><div>Is there any way to force cmake to create not VS make files but traditional makfile? After generating makefile, I'll try to <b>make && make install</b> as suggested in QtGstreamer lib documentation.</div><div><br></div><div>What i'm doing wrong?</div><div><br></div><div>Regards, Dmitri</div><div><br></div><div><br></div><div><br></div><div><br></div><br><div class="gmail_quote"><div dir="ltr">сб, 20 июня 2015 г. в 2:42, Dmitri Afanasjev <<a href="mailto:adimas@gmail.com" target="_blank">adimas@gmail.com</a>>:<br></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I have opened my MS VS Community 2013 and tried to build_all. <br><br><div>========== Build: 3 succeeded, 20 failed, 0 up-to-date, 5 skipped ==========</div><div><br></div><div>I have attached full VS build log</div><div><br></div><div>Regards, Dmitri</div><br><div class="gmail_quote"><div dir="ltr">сб, 20 июня 2015 г. в 2:32, Ceri Coburn <<a href="mailto:ceri.coburn@gmail.com" target="_blank">ceri.coburn@gmail.com</a>>:<br></div></div></div><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Ah, looks like CMake has defaulted to Visual Studio project file for building.  Open up the QtGSreamer.sln in Visual Studio and compile.  </p>
<div class="gmail_quote">On 20 Jun 2015 00:22, "Dmitri Afanasjev" <<a href="mailto:adimas@gmail.com" target="_blank">adimas@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks for your reply but ihave no makefile in my build folder. After runing make, it tells that nothing to make. The content of build folder after previous cmake build:<br><div><div>E:\gstreamer\qt-gstreamer\build>dir</div><div> Volume in drive E is Storage</div><div> Volume Serial Number is 958E-92BC</div><div><br></div><div> Directory of E:\gstreamer\qt-gstreamer\build</div><div><br></div><div>19.06.2015  23:41    <DIR>          .</div><div>19.06.2015  23:41    <DIR>          ..</div><div>19.06.2015  23:41            79 003 ALL_BUILD.vcxproj</div><div>19.06.2015  23:41               280 ALL_BUILD.vcxproj.filters</div><div>19.06.2015  23:41            39 377 CMakeCache.txt</div><div>19.06.2015  23:41    <DIR>          CMakeFiles</div><div>19.06.2015  23:41             1 611 cmake_install.cmake</div><div>19.06.2015  23:41               936 cmake_uninstall.cmake</div><div>19.06.2015  23:41               327 CTestTestfile.cmake</div><div>19.06.2015  23:41            76 513 doc.vcxproj</div><div>19.06.2015  23:41               280 doc.vcxproj.filters</div><div>19.06.2015  23:41            67 744 Doxyfile</div><div>19.06.2015  23:41            80 199 doxygen.vcxproj</div><div>19.06.2015  23:41               694 doxygen.vcxproj.filters</div><div>19.06.2015  23:41    <DIR>          elements</div><div>19.06.2015  23:41    <DIR>          examples</div><div>19.06.2015  23:41            11 213 INSTALL.vcxproj</div><div>19.06.2015  23:41               522 INSTALL.vcxproj.filters</div><div>19.06.2015  23:41            30 793 QtGStreamer.sln</div><div>19.06.2015  23:41            11 033 RUN_TESTS.vcxproj</div><div>19.06.2015  23:41               524 RUN_TESTS.vcxproj.filters</div><div>19.06.2015  23:41    <DIR>          src</div><div>19.06.2015  23:41            80 269 uninstall.vcxproj</div><div>19.06.2015  23:41               698 uninstall.vcxproj.filters</div><div>19.06.2015  23:41            63 012 ZERO_CHECK.vcxproj</div><div>19.06.2015  23:41               523 ZERO_CHECK.vcxproj.filters</div><div>              20 File(s)        545 551 bytes</div><div>               6 Dir(s)  3 138 498 637 824 bytes free</div></div><div><br></div><div>I think somtething wrong with previous cmake build with command:</div><div><b style="font-size:13.1999998092651px;line-height:15.8399991989136px">cmake .. -DCMAKE_INSTALL_PREFIX=e:/gstreamer/qt-gstreamer -DQT_VERSION=5 -Wno-dev </b><span style="font-size:13.1999998092651px;line-height:15.8399991989136px">because as i said there are some warnings during build</span><br></div><div><span style="font-size:13.1999998092651px;line-height:15.8399991989136px"><br></span></div><div><span style="font-size:13.1999998092651px;line-height:15.8399991989136px">Regards, Dmitri</span></div><div><span style="font-size:13.1999998092651px;line-height:15.8399991989136px"><br></span></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">сб, 20 июня 2015 г. в 0:10, Ceri Coburn <<a href="mailto:ceri.coburn@gmail.com" target="_blank">ceri.coburn@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">The Makefile is generated inside the build folder. If you cd into the build folder then issue the make command you should be good to go.<br>
</p>
<div class="gmail_quote"></div><div class="gmail_quote">On 19 Jun 2015 21:52, "Dmitri Afanasjev" <<a href="mailto:adimas@gmail.com" target="_blank">adimas@gmail.com</a>> wrote:<br type="attribution"></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello!<div><br></div><div>I want to develop Qt application to use with gstreamer1.0</div><div><br></div><div>1. Gstreamer1.0 binaries are installed and PATH is updated works fine.</div><div>2. Downloaded QtGstremer sources from Git (<a href="https://github.com/detrout/qt-gstreamer" target="_blank">https://github.com/detrout/qt-gstreamer</a>) but unable to build it correctly. When I do: <b>cmake .. -DCMAKE_INSTALL_PREFIX=e:/gstreamer/qt-gstreamer -DQT_VERSION=5 -Wno-dev </b>I see this outpur:</div><div><br></div><div><div>-- Building for: Visual Studio 12 2013</div><div>-- The C compiler identification is MSVC 18.0.31101.0</div><div>-- The CXX compiler identification is MSVC 18.0.31101.0</div><div>-- Check for working C compiler using: Visual Studio 12 2013</div><div>-- Check for working C compiler using: Visual Studio 12 2013 -- works</div><div>-- Detecting C compiler ABI info</div><div>-- Detecting C compiler ABI info - done</div><div>-- Check for working CXX compiler using: Visual Studio 12 2013</div><div>-- Check for working CXX compiler using: Visual Studio 12 2013 -- works</div><div>-- Detecting CXX compiler ABI info</div><div>-- Detecting CXX compiler ABI info - done</div><div>-- Detecting CXX compile features</div><div>-- Detecting CXX compile features - done</div><div>-- Using Qt5 (min: 5.0.0)</div><div>-- Found Qt4or5: 1  found components:  Core Gui Widgets OpenGL Quick1 Quick2 Qml Test</div><div>-- Boost version: 1.58.0</div><div>-- Found PkgConfig: E:/gstreamer/gtk-bundle_3.6.4/bin/pkg-config.exe (found version "0.28")</div><div>-- checking for module 'gstreamer-1.0'</div><div>--   package 'gstreamer-1.0' not found</div><div>-- checking for module 'gstreamer-base-1.0'</div><div>--   package 'gstreamer-base-1.0' not found</div><div>-- Found GSTREAMER_BASE_LIBRARY: E:/gstreamer/1.0/x86_64/lib/gstbase-1.0.lib</div><div>-- Found GSTREAMER_BASE_INCLUDE_DIR: E:/gstreamer/1.0/x86_64/include/gstreamer-1.0</div><div>-- Found GStreamer: E:/gstreamer/1.0/x86_64/lib/gstreamer-1.0.lib (Required is at least version "1.2.0")</div><div>-- checking for module 'gstreamer-plugins-base-1.0'</div><div>--   package 'gstreamer-plugins-base-1.0' not found</div><div>-- checking for module 'gstreamer-app-1.0'</div><div>--   package 'gstreamer-app-1.0' not found</div><div>-- Found GSTREAMER_APP_LIBRARY: E:/gstreamer/1.0/x86_64/lib/gstapp-1.0.lib</div><div>-- Found GSTREAMER_APP_INCLUDE_DIR: E:/gstreamer/1.0/x86_64/include/gstreamer-1.0</div><div>-- checking for module 'gstreamer-audio-1.0'</div><div>--   package 'gstreamer-audio-1.0' not found</div><div>-- Found GSTREAMER_AUDIO_LIBRARY: E:/gstreamer/1.0/x86_64/lib/gstaudio-1.0.lib</div><div>-- Found GSTREAMER_AUDIO_INCLUDE_DIR: E:/gstreamer/1.0/x86_64/include/gstreamer-1.0</div><div>-- checking for module 'gstreamer-video-1.0'</div><div>--   package 'gstreamer-video-1.0' not found</div><div>-- Found GSTREAMER_VIDEO_LIBRARY: E:/gstreamer/1.0/x86_64/lib/gstvideo-1.0.lib</div><div>-- Found GSTREAMER_VIDEO_INCLUDE_DIR: E:/gstreamer/1.0/x86_64/include/gstreamer-1.0</div><div>-- checking for module 'gstreamer-pbutils-1.0'</div><div>--   package 'gstreamer-pbutils-1.0' not found</div><div>-- Found GSTREAMER_PBUTILS_LIBRARY: E:/gstreamer/1.0/x86_64/lib/gstpbutils-1.0.lib</div><div>-- Found GSTREAMER_PBUTILS_INCLUDE_DIR: E:/gstreamer/1.0/x86_64/include/gstreamer-1.0</div><div>-- Found GStreamerPluginsBase: TRUE (Required is at least version "1.2.0")</div><div>-- Found GLIB2: E:/gstreamer/OSSBuild/GStreamer/v0.10.6/sdk/lib/glib-2.0.lib</div><div>-- Found GObject: E:/gstreamer/OSSBuild/GStreamer/v0.10.6/sdk/include/glib-2.0</div><div>-- Performing Test USE_OPENGLES</div><div>-- Performing Test USE_OPENGLES - Failed</div><div>-- Found OpenGL: opengl32</div><div>-- Found Doxygen: E:/gstreamer/doxygen/bin/doxygen.exe (found version "1.8.9.1")</div><div>-- Found DOXYFILE_IN: E:/gstreamer/qt-gstreamer/Doxy<a href="http://file.in" target="_blank">file.in</a></div><div><br></div><div>-----------------------------------------------------------------------------</div><div>-- The following external packages were located on your system.</div><div>-- This installation will have the extra features provided by these packages.</div><div>-----------------------------------------------------------------------------</div><div>   * Qt - Required for building everything</div><div>   * QtOpenGL - Required for OpenGL acceleration in qtvideosink and QtGStreamerUi</div><div>   * QtQuick1 (QtDeclarative) - Required for building QtQuick1 support</div><div>   * QtQuick2 (QtQuick) - Required for building QtQuick2 support</div><div>   * QtQml - Required for building QtQuick2 support</div><div>   * Boost - Required for building QtGLib</div><div>   * GStreamer - Required to build QtGStreamer</div><div>   * GStreamer base library - Used for building the qt5videosink element</div><div>   * GStreamer app library - Required to build QtGStreamerUtils</div><div>   * GStreamer audio library - Required to build QtGStreamer</div><div>   * GStreamer video library - Required to build QtGStreamer</div><div>   * GStreamer pbutils library - Used for building the Discoverer API</div><div>   * GLib - Required to build QtGLib</div><div>   * GObject - Required to build QtGLib</div><div>   * OpenGL - Required for OpenGL rendering support in qt5videosink</div><div>   * Doxygen - Used to generate the API documentation</div><div><br></div><div>-----------------------------------------------------------------------------</div><div>-- Congratulations! All external packages have been found.</div><div>-----------------------------------------------------------------------------</div><div><br></div><div>-- Configuring done</div><div>-- Generating done</div><div>-- Build files have been written to: E:/gstreamer/qt-gstreamer/build</div></div><div>===================================================</div><div>Seems like build is done well, but i see some warnings in the output. Using build procedure described in README i should do make. But i cannot do make without .makefile. Are these filed missing due to errors listed in output? Is is possible to build Gstreamer1.0 libs for Qt5? </div><div><br></div><div>I cannot find any working solution</div><div><br></div><div>Please help!</div><div><br></div><div>Regards, Dmitri</div><div><br></div><div><br></div></div>
<br></blockquote></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div>
<br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div></div></blockquote></div></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" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div>