Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when try go get with go 1.3 #3

Open
UndeRus opened this issue Jul 9, 2014 · 4 comments
Open

Error when try go get with go 1.3 #3

UndeRus opened this issue Jul 9, 2014 · 4 comments

Comments

@UndeRus
Copy link

UndeRus commented Jul 9, 2014

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
Copy link

any solutions ?

@ziutek
Copy link
Owner

ziutek commented Aug 11, 2014

What is the version of glib and gstreamer?

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

@thaniyarasu
Copy link

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
Copy link

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:~$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants