After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 796082 - programs in tests/examples/gl/sdl cannot be built
programs in tests/examples/gl/sdl cannot be built
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
1.14.0
Other Linux
: Normal normal
: 1.14.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2018-05-13 21:14 UTC by pierre.labastie
Modified: 2018-05-14 07:31 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description pierre.labastie 2018-05-13 21:14:05 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
Comment 1 Tim-Philipp Müller 2018-05-13 22:34:06 UTC
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
Comment 3 Tim-Philipp Müller 2018-05-14 07:31:25 UTC
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.