-
-
Notifications
You must be signed in to change notification settings - Fork 52
Build GTK 3 examples
Adrian-George Bostan edited this page Mar 16, 2020
·
11 revisions
See installation instructions at https://github.com/adrg/libvlc-go/wiki/Install-on-Linux.
See installation instructions at https://github.com/gotk3/gotk3/wiki/Installing-on-Linux.
go get
go build
See installation instructions at https://github.com/adrg/libvlc-go/wiki/Install-on-Windows.
- Download and install MSYS2 package manager to the default location.
- Open
MSYS
shell and install mingw-w64, pkg-config and GTK 3.
pacman --noconfirm --needed -Sy bash pacman pacman-mirrors
pacman --noconfirm -Su
pacman --noconfirm -S mingw-w64-x86_64-gcc mingw64/mingw-w64-x86_64-pkg-config mingw-w64-x86_64-gtk3
bash -c "sed -i -e 's/-Wl,-luuid/-luuid/g' C:/msys64/mingw64/lib/pkgconfig/gdk-3.0.pc"
- Optionally, install Glade, a GUI designer for GTK interfaces. It exports XML files which can be imported using a GTK builder instance.
pacman -S mingw-w64-x86_64-glade
- Add
MSYS2
binary paths to yourPATH
environment variable.
C:\msys64\mingw64\bin
C:\msys64\usr\bin
See full installation instructions at https://github.com/gotk3/gotk3/wiki/Installing-on-Windows.
go get
set CGO_LDFLAGS=-L{your-libvlc-sdk-path}
set CGO_CFLAGS=-I{your-libvlc-sdk-path}\include
go build
See installation instructions at https://github.com/gotk3/gotk3/wiki/Installing-on-macOS.
go get
go build