Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QtGstreamer on windows
Qt 6.12 LTS is out! See what's new in the release blog

QtGstreamer on windows

Scheduled Pinned Locked Moved Unsolved General and Desktop
16 Posts 2 Posters 10.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi and welcome to devnet,

    Not a definitive guide but AFAIK:

    1. Compiler: the same you are using for Qt
    2. Tools: cmake
    3. gstreamer version: latest 1 version available (devel package)
    4. QtGstreamer: latest available
    5. Dependencies: boost

    You can use Qt Creator to build QtGStreamer, this will simplify the building since you'll already have the Qt version you want to use setup.

    You have several examples with the sources of QtGstreamer.

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    1 Reply Last reply
    1
    • _ Offline
      _ Offline
      __vnv__
      wrote on last edited by
      #3

      Thanks for helping out!

      I have downloaded qt-gstreamer-1.2.0 but there is no pro file in it.
      I have all the tools installed, cmake/boost/gstreamer but how to use QtCreator to open it as project and start compilation?

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #4

        Because it's a cmake project, open the top-level CMakeLists.txt from Qt Creator.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        _ 1 Reply Last reply
        1
        • SGaistS SGaist

          Because it's a cmake project, open the top-level CMakeLists.txt from Qt Creator.

          _ Offline
          _ Offline
          __vnv__
          wrote on last edited by
          #5

          @SGaist

          Did that and selected MSVC 2013 and output was:

          Running "C:\CMake2.8\bin\cmake.exe C:/qt-gstreamer "-GCodeBlocks - NMake Makefiles" "-DCMAKE_CXX_COMPILER:STRING=" "-DQT_QMAKE_EXECUTABLE:STRING="" in C:\build-qt-gstreamer-MSVCC_12_0_2013-Default.
          CMake Warning at CMakeLists.txt:1 (project):
          To use the NMake generator, cmake must be run from a shell that can use the
          compiler cl from the command line. This environment does not contain
          INCLUDE, LIB, or LIBPATH, and these must be set for the cl compiler to
          work.

          -- The C compiler identification is MSVC 18.0.40629.0
          -- The CXX compiler identification is MSVC 18.0.40629.0
          CMake Warning at C:/CMake2.8/share/cmake-2.8/Modules/Platform/Windows-MSVC.cmake:60 (enable_language):
          To use the NMake generator, cmake must be run from a shell that can use the
          compiler cl from the command line. This environment does not contain
          INCLUDE, LIB, or LIBPATH, and these must be set for the cl compiler to
          work.
          Call Stack (most recent call first):
          C:/CMake2.8/share/cmake-2.8/Modules/Platform/Windows-MSVC-C.cmake:1 (include)
          C:/CMake2.8/share/cmake-2.8/Modules/CMakeCInformation.cmake:56 (include)
          CMakeLists.txt:1 (project)

          CMake Error: your RC compiler: "CMAKE_RC_COMPILER-NOTFOUND" was not found. Please set CMAKE_RC_COMPILER to a valid compiler path or name.
          -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/cl.exe
          CMake Warning at CMakeLists.txt:2 (PROJECT):
          To use the NMake generator, cmake must be run from a shell that can use the
          compiler cl from the command line. This environment does not contain
          INCLUDE, LIB, or LIBPATH, and these must be set for the cl compiler to
          work.

          CMake Warning at C:/CMake2.8/share/cmake-2.8/Modules/Platform/Windows-MSVC.cmake:60 (enable_language):
          To use the NMake generator, cmake must be run from a shell that can use the
          compiler cl from the command line. This environment does not contain
          INCLUDE, LIB, or LIBPATH, and these must be set for the cl compiler to
          work.
          Call Stack (most recent call first):
          C:/CMake2.8/share/cmake-2.8/Modules/Platform/Windows-MSVC-C.cmake:1 (include)
          C:/CMake2.8/share/cmake-2.8/Modules/CMakeCInformation.cmake:56 (include)
          CMakeLists.txt:2 (PROJECT)

          CMake Error at C:/CMake2.8/share/cmake-2.8/Modules/CMakeRCInformation.cmake:22 (get_filename_component):
          get_filename_component called with incorrect number of arguments
          Call Stack (most recent call first):
          C:/CMake2.8/share/cmake-2.8/Modules/Platform/Windows-MSVC.cmake:60 (enable_language)
          C:/CMake2.8/share/cmake-2.8/Modules/Platform/Windows-MSVC-C.cmake:1 (include)
          C:/CMake2.8/share/cmake-2.8/Modules/CMakeCInformation.cmake:56 (include)
          CMakeLists.txt:2 (PROJECT)

          CMake Error: CMAKE_RC_COMPILER not set, after EnableLanguage
          CMake Error: Internal CMake error, TryCompile configure of cmake failed
          CMake Error at C:/CMake2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):
          The C compiler "C:/Program Files (x86)/Microsoft Visual Studio
          12.0/VC/bin/cl.exe" is not able to compile a simple test program.

          It fails with the following output:

          CMake will not be able to correctly generate this project.
          Call Stack (most recent call first):
          CMakeLists.txt:1 (project)

          -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/cl.exe -- broken
          -- Configuring incomplete, errors occurred!
          You have changed variables that require your cache to be deleted.
          Configure will be re-run and you may have to reset some variables.
          The following variables have changed:
          CMAKE_CXX_COMPILER= cl

          CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
          Missing variable is:
          CMAKE_MAKE_PROGRAM
          CMake Warning:
          Manually-specified variables were not used by the project:

          QT_QMAKE_EXECUTABLE
          

          -- Generating done
          -- Build files have been written to: C:/build-qt-gstreamer-MSVCC_12_0_2013-Default
          *** cmake process exited with exit code 1.

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #6

            Which version of Qt and Visual Studio do you have installed on your computer ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • _ Offline
              _ Offline
              __vnv__
              wrote on last edited by
              #7

              QtCreator 4.1.0
              Based on QT 5.7.0. (MSVC 2013, 32 bit)

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #8

                That's only Qt Creator.

                The Qt version is the one you use to build your application.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                _ 1 Reply Last reply
                0
                • SGaistS SGaist

                  That's only Qt Creator.

                  The Qt version is the one you use to build your application.

                  _ Offline
                  _ Offline
                  __vnv__
                  wrote on last edited by
                  #9

                  @SGaist

                  Sorry, I have both 5.5 and 5.7 installed.

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #10

                    For which compiler ? MinGW ? MSVC ? If MSVC which version ?

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    _ 1 Reply Last reply
                    0
                    • SGaistS SGaist

                      For which compiler ? MinGW ? MSVC ? If MSVC which version ?

                      _ Offline
                      _ Offline
                      __vnv__
                      wrote on last edited by
                      #11

                      @SGaist

                      MSVC is used from Visual Studio 2013.
                      MinGW is from QtCreator installation.

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #12

                        Did you install Qt for Visual Studio 2013 ?

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        0
                        • _ Offline
                          _ Offline
                          __vnv__
                          wrote on last edited by
                          #13

                          Yes I did just that.

                          1 Reply Last reply
                          0
                          • SGaistS Offline
                            SGaistS Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on last edited by
                            #14

                            Then maybe a silly question: did you install Visual Studio 2013 ?

                            Interested in AI ? www.idiap.ch
                            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                            _ 1 Reply Last reply
                            0
                            • SGaistS SGaist

                              Then maybe a silly question: did you install Visual Studio 2013 ?

                              _ Offline
                              _ Offline
                              __vnv__
                              wrote on last edited by
                              #15

                              @SGaist

                              Of course :D :D

                              1 Reply Last reply
                              0
                              • SGaistS Offline
                                SGaistS Offline
                                SGaist
                                Lifetime Qt Champion
                                wrote on last edited by
                                #16

                                Then there's something strange...

                                Delete any .user file you have in the root folder of your project.

                                Then start from scratch with Qt Creator. Select the correct Qt Kit.

                                I find it strange that you have to explicitly select the Visual Studio compiler. It should be done for you automatically by Qt Creator.

                                Interested in AI ? www.idiap.ch
                                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                1 Reply Last reply
                                0

                                • Login

                                • Login or register to search.
                                • First post
                                  Last post
                                0
                                • Categories
                                • Recent
                                • Tags
                                • Popular
                                • Users
                                • Groups
                                • Search
                                • Get Qt
                                • Unsolved