ziutek / gst

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

Error when try go get with go 1.3 #3

Open UndeRus opened 10 years ago

UndeRus commented 10 years ago

When I try instal gst, I see this error: cannot use o.g() (type C.struct__GstObject) as type C.GstObject in argument to _Cfunc_gst_object_set_name

Here is reason: http://golang.org/doc/go1.3#cgo

thaniyarasu commented 10 years ago

any solutions ?

ziutek commented 10 years ago

What is the version of glib and gstreamer?

I can build without any problem (go 1.3, glib 2.0, gstreamer 0.10).

thaniyarasu commented 10 years ago

i use ubuntu 13.10, amd 64

dev@dev:~$ go version go version go1.3 linux/amd64

dev@dev:~$ glib-genmarshal -v glib-genmarshal version 2.38.1 glib-genmarshal comes with ABSOLUTELY NO WARRANTY. You may redistribute copies of glib-genmarshal under the terms of the GNU General Public License which can be found in the GLib source package. Sources, examples and contact information are available at http://www.gtk.org

i don't know how to find gstreamer version i have installed it through synaptic package manager i have multiple packages installed with the name prefixed as gstreamer0.10. like gstreamer0.10-ffmpeg 0.10.13-5,etc

but i have these files in my /usr/include directory

/usr/include/gstreamer-0.10/ /usr/include/gstreamer-1.0/ /usr/include/glib-2.0/

thaniyarasu commented 10 years ago

dev@dev:~$ go install github.com/ziutek/gdk dev@dev:~$ go install github.com/ziutek/glib dev@dev:~$ go install github.com/ziutek/gst

github.com/ziutek/gst

golab/ws/src/github.com/ziutek/gst/object.go:31: cannot use o.g() (type C.struct__GstObject) as type C.GstObject in argument to _Cfunc_gst_object_set_name golab/ws/src/github.com/ziutek/gst/object.go:36: cannot use o.g() (type C.struct__GstObject) as type C.GstObject in argument to _Cfunc_gst_object_get_name golab/ws/src/github.com/ziutek/gst/object.go:47: cannot use o.g() (type C.struct__GstObject) as type C.GstObject in argument to _Cfunc_gst_object_set_parent golab/ws/src/github.com/ziutek/gst/object.go:47: cannot use p.g() (type C.struct__GstObject) as type C.GstObject in argument to _Cfunc_gst_object_set_parent golab/ws/src/github.com/ziutek/gst/object.go:54: cannot use o.g() (type C.struct__GstObject) as type C.GstObject in argument to _Cfunc_gst_object_get_parent golab/ws/src/github.com/ziutek/gst/object.go:61: cannot use o.g() (type C.struct__GstObject) as type C.GstObject in argument to _Cfunc_gst_object_unparent golab/ws/src/github.com/ziutek/gst/object.go:67: cannot use o.g() (type C.struct__GstObject) as type C.GstObject in argument to _Cfunc_gst_object_get_path_string dev@dev:~$ go install github.com/ziutek/gtk

github.com/ziutek/gtk

golab/ws/src/github.com/ziutek/gtk/box.go:32: cannot use child.g() (type C.struct__GtkWidget) as type C.GtkWidget in argument to _Cfunc_gtk_box_pack_start golab/ws/src/github.com/ziutek/gtk/box.go:43: cannot use child.g() (type C.struct__GtkWidget) as type C.GtkWidget in argument to _Cfunc_gtk_box_pack_end golab/ws/src/github.com/ziutek/gtk/container.go:21: cannot use w.g() (type C.struct__GtkWidget) as type C.GtkWidget in argument to _Cfunc_gtk_container_add dev@dev:~$