GNOME Bugzilla – Bug 796082
programs in tests/examples/gl/sdl cannot be built
Last modified: 2018-05-14 07:31:25 UTC
I get: make[6] : Entering directory '/sources/gst10-plugins-base/gst-plugins-base-1.14.0/tests/examples/gl/sdl' CC sdlshare-sdlshare.o CCLD sdlshare /usr/bin/ld: cannot find -lgstvideo-1.0 the reason is that the full command is: /bin/sh ../../../../libtool --tag=CC --mode=link gcc -I../../../../gst-libs -I../../../../gst-libs -I../../../../gst-libs -I../../../../gst-libs -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -fno-strict-aliasing -DG_THREADS_MANDATORY -DG_DISABLE_CAST_CHECKS -Wall -Wdeclaration-after-statement -Wvla -Wpointer-arith -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wundef -Wwrite-strings -Wformat-nonliteral -Wformat-security -Winit-self -Wmissing-include-dirs -Waddress -Wno-multichar -Wnested-externs -g -fvisibility=hidden -I/usr/include/libdrm -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -g -O2 -o sdlshare sdlshare-sdlshare.o -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 -lGL -lGLESv2 -lX11-xcb -lX11 -lxcb -lwayland-cursor -lwayland-egl -lwayland-client -lEGL -lEGL -Wl,-rpath,/usr/lib -lSDL -lpthread ../../../../gst-libs/gst/gl/libgstgl-1.0.la -lgstvideo-1.0 but there is no -Ldir to allow finding libgstvideo-1.0.so. I guess the lines: -lgstvideo-$(GST_API_VERSION) should be changed to: $(top_builddir)/gst-libs/gst/video/libgstvideo-$(GST_API_VERSION).la in tests/examples/gl/sdl/Makefile.am
Thanks for the bug report! commit 65c987b4958fb50f7efe2ce54a2151dfcc724716 Author: Pierre Labastie <pierre.labastie@neuf.fr> Date: Sun May 13 23:31:22 2018 +0100 examples: gl: sdl: link to the right in-tree libgstvideo https://bugzilla.gnome.org/show_bug.cgi?id=796082
FWIIW, the link https://git.gnome.org/browse/GStreamer/commit/?id=65c987b4958fb50f7efe2ce54a2151dfcc724716 (after "commit" in comment 1) does not work. Should be: https://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=65c987b4958fb50f7efe2ce54a2151dfcc724716
Yes, the commit links don't work because we have git on freedesktop.org, not gnome.org. It's going to change / be fixed once we move to gitlab.