adrg / libvlc-go

Handcrafted Go bindings for libVLC and high-level media player interface
https://pkg.go.dev/github.com/adrg/libvlc-go/v3
MIT License
437 stars 50 forks source link

Unable to `go get` from raspberry pi #16

Closed kitzin closed 5 years ago

kitzin commented 6 years ago

Current raspbian release: Raspbian GNU/Linux 9 (stretch)

When running go get github.com/adrg/libvlc-go I get the output

../../../src/github.com/adrg/libvlc-go/listplayer.go:58:12: could not determine kind of name for C.libvlc_media_list_player_get_media_player

Libvlc version:

$ apt-cache show libvlc-dev
Package: libvlc-dev
Source: vlc
Version: 2.2.6-1~deb9u1+rpi1
Architecture: armhf
Maintainer: Debian Multimedia Maintainers <pkg-multimedia-maintainers@lists.alioth.debian.org>
Installed-Size: 361
Pre-Depends: dpkg (>= 1.17.14)
Depends: libvlc5 (= 2.2.6-1~deb9u1+rpi1), pkg-config
Multi-Arch: same
Homepage: http://www.videolan.org/vlc/
Priority: optional
Section: libdevel
Filename: pool/main/v/vlc/libvlc-dev_2.2.6-1~deb9u1+rpi1_armhf.deb
Size: 156700
SHA256: 76d23939a78dabf93d23d4fbcecceded33461d91954ec32e6f926d72d8c4d70b
SHA1: 55635ad991d98c2f2299e1ed914ccd355183c578
MD5sum: 5c0a5aa345b2f36eefe93f7c77b95e98
Description: development files for libvlc
 This package contains headers and a static library required to build
 standalone applications that use VLC features.
 .
 VLC is the VideoLAN project's media player. It plays MPEG, MPEG-2, MPEG-4,
 DivX, MOV, WMV, QuickTime, WebM, FLAC, MP3, Ogg/Vorbis files, DVDs, VCDs,
 podcasts, and multimedia streams from various network sources.
Description-md5: 12dd7b707396cd811cd0c9fd70dd8122

When checking the libvlc git repository for version 2.2 (https://github.com/videolan/vlc/blob/2.2.0-git/lib/media_list_player.c) It doesn't seem to have the libvlc_media_list_player_get_media_player function.

So it might be good to specify which 2.X release the library is supported from

adrg commented 6 years ago

@kitzin Thank you for reporting the problem. You are quite right. As far as I can tell, the libvlc_media_list_player_get_media_player function was introduced in v3 of libvlc.

I will get this fixed in the coming days and let you know.

adrg commented 5 years ago

Added build tag for older versions of libvlc (< v3.0.0).

go build -tags legacy