ziutek / gst

Go bindings for GStreamer (retired: currently I don't use/develop this package)
Other
169 stars 48 forks source link

'g_type_init' is deprecated #2

Closed mahmoudhossam closed 9 years ago

mahmoudhossam commented 11 years ago

I get the following error when trying to go get this library:

# github.com/ziutek/glib
type.go:19:1: error: 'g_type_init' is deprecated (declared at /usr/include/glib-2.0/gobject/gtype.h:669) [-Werror=deprecated-declarations]
 )
 ^
cc1: all warnings being treated as errors

I also tried running the examples, they don't work either, giving the same error.

I'm on Arch Linux x64, Go 1.1, GCC 4.8.1.

ziutek commented 11 years ago

You probably have newer libglib version than I have (libglib2.0-dev). Try install using git command (git clone) comment g_type_init line in type.go and check if you can run 'go install' without any errors.

mahmoudhossam commented 11 years ago

Commenting the g_type_init line did work for me, thanks! :cake:

For the record, I have glib 2.36.3, which is the default on Arch.