Qt 6.8 compillation error: No such file or directory #include <gst/gst.h>
-
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? -
Hi and welcome to devnet,
If memory serves well you can use
-I /path/to/include. -
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.