Unknown method "find_library" in object with only sample code.

박민호 loca2tango at gmail.com
Fri Jun 9 10:13:06 UTC 2017


 Hello  I have a problem compiling with sample codes. The error is in red
color text.
Thank you for your reply in advance.

1. error message
jts at jts:~/gst-examples/playback/player/gst-play$ meson builddir
The Meson build system
Version: 0.29.0
Source dir: /home/jts/gst-examples/playback/player/gst-play
Build dir: /home/jts/gst-examples/playback/player/gst-play/builddir
Build type: native build
Build machine cpu family: x86_64
Build machine cpu: x86_64
Project name: gst-player
Native c compiler: cc (gcc 5.4.0-6ubuntu1)
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Native dependency gstreamer-1.0 found: YES 1.8.3
Native dependency gstreamer-player-1.0 found: YES 1.8.3

Meson encountered an error in file meson.build, line 6, column 0:
Unknown method "find_library" in object.

2. file: meson.build

jts at jts:~/gst-examples/playback/player/gst-play$ cat *.build
project ('gst-player','c')   => I append this
gst_dep = dependency('gstreamer-1.0')
gstplayer_dep = dependency('gstreamer-player-1.0', version: '>= 1.7.1.1')

cc = meson.get_compiler('c')
*m_dep = cc.find_library('m', required : true)*

executable('gst-play',
    ['gst-play.c',
     'gst-play-kb.c',
     'gst-play-kb.h'],
    dependencies : [gst_dep, gstplayer_dep, m_dep])
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170609/4eda0dec/attachment.html>


More information about the gstreamer-devel mailing list