Linker error

Edward Anon blakat360 at gmail.com
Wed Aug 4 14:38:02 UTC 2021


I get the following linker errors when building my project using CMake.

undefined reference to `gst_gl_filter_get_type'
undefined reference to `gst_gl_filter_draw_fullscreen_quad'

My CMakeLists.txt is as follows:

```

pkg_check_modules(GST REQUIRED gstreamer-1.0>=1.4
        gstreamer-sdp-1.0>=1.4
        gstreamer-video-1.0>=1.4
        gstreamer-plugins-base-1.0>=1.4
        gstreamer-app-1.0>=1.4
        gstreamer-gl-1.0>=1.4)

add_library(Foo "")

add_subdirectory(src)
add_subdirectory(external)

add_subdirectory(examples)

target_compile_options(Foo PRIVATE -Wall -Wextra -Werror)

target_include_directories(GUI_lib PUBLIC include "${GST_INCLUDE_DIRS}")
target_link_libraries( GUI_lib PUBLIC "${GST_LIBRARIES}" -lglfw -lGL -lepoxy)

```
I also tried adding all the .pc files that came with Gstreamer to no
avail. These are:
gstreamer-net-1.0
gstreamer-bad-audio-1.0
gstreamer-1.0
gstreamer-base-1.0
gstreamer-plugins-bad-1.0
gstreamer-rtsp-1.0
gstreamer-video-1.0
gstreamer-fft-1.0
gstreamer-photography-1.0
gstreamer-insertbin-1.0
gstreamer-audio-1.0
gstreamer-tag-1.0
gstreamer-codecparsers-1.0
gstreamer-riff-1.0
gstreamer-transcoder-1.0
gstreamer-rtp-1.0
gstreamer-gl-x11-1.0
gstreamer-gl-prototypes-1.0
gstreamer-allocators-1.0
gstreamer-sdp-1.0
gstreamer-controller-1.0
gstreamer-gl-wayland-1.0
gstreamer-check-1.0
gstreamer-sctp-1.0
gstreamer-app-1.0
gstreamer-pbutils-1.0
gstreamer-plugins-base-1.0
gstreamer-vulkan-xcb-1.0
gstreamer-gl-1.0
gstreamer-vulkan-1.0
gstreamer-vulkan-wayland-1.0
gstreamer-mpegts-1.0
gstreamer-gl-egl-1.0
gstreamer-player-1.0
gstreamer-webrtc-1.0:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20210804/1c73d273/attachment.htm>


More information about the gstreamer-devel mailing list