Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt 6.8 compillation error: No such file or directory #include <gst/gst.h>
Forum Updated to NodeBB v4.3 + New Features

Qt 6.8 compillation error: No such file or directory #include <gst/gst.h>

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
3 Posts 3 Posters 514 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.
  • S Offline
    S Offline
    SalothS
    wrote on last edited by
    #1

    I would like to compile QT 6.8 from sources on RPi5. I get an error like
    "No such file or directory #include <gst/gst.h>"
    I have gstreamer headers in /usr/include/gstreamer-1.0 directory.
    Wanted to add INCLUDEPATH in some qmake files, but cmake is used by QT. My steps:
    configure -init-submodules
    cmake --build . --parallel 4
    Is it possible to add some header paths painlessly to QT build? How?

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

      Hi and welcome to devnet,

      If memory serves well you can use -I /path/to/include.

      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
      • T Offline
        T Offline
        Tommi
        wrote on last edited by
        #3

        Try adding these to your CMakeLists.txt:

        find_package(PkgConfig)
        pkg_check_modules(GST REQUIRED gstreamer-1.0>=1.4
                                       gstreamer-app-1.0>=1.4)
        
        target_link_libraries(
            ${MODULE_NAME}
            PUBLIC
               . . .
                ${GST_LIBRARIES}
        )
        
        target_include_directories(
            ${MODULE_NAME}
            PUBLIC
                . . .
                ${GST_INCLUDE_DIRS}
        )
        

        I hope this helps.

        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 Extensions
        • Unsolved