conformal / gotk3

Go bindings for GTK3
ISC License
470 stars 81 forks source link

Install fails with undeclared identifiers #4

Closed pebbe closed 11 years ago

pebbe commented 11 years ago

Tried and failed to install

go version go1.1.1 linux/amd64
glib-2.0      version 2.32.1
gobject-2.0   version 2.32.1
gtk+-3.0      version 3.4.1

go get github.com/conformal/gotk3/gtk

error: 'GTK_INPUT_PURPOSE_NUMBER' undeclared (first use in this function)
error: (Each undeclared identifier is reported only once
error: 'GTK_INPUT_HINT_LOWERCASE' undeclared (first use in this function)
error: 'GTK_INPUT_HINT_INHIBIT_OSK' undeclared (first use in this function)
error: 'gtk_entry_set_input_hints' undeclared (first use in this function)
error: 'GtkInputHints' undeclared (first use in this function)
error: 'GTK_INPUT_HINT_WORD_COMPLETION' undeclared (first use in this function)
error: 'GTK_INPUT_PURPOSE_URL' undeclared (first use in this function)
error: 'GTK_INPUT_HINT_NONE' undeclared (first use in this function)
error: 'gtk_entry_get_input_hints' undeclared (first use in this function)
error: 'gtk_button_get_always_show_image' undeclared (first use in this function)
error: 'GTK_INPUT_HINT_UPPERCASE_CHARS' undeclared (first use in this function)
error: 'GTK_INPUT_PURPOSE_NAME' undeclared (first use in this function)
error: 'gtk_entry_set_input_purpose' undeclared (first use in this function)
error: 'GtkInputPurpose' undeclared (first use in this function)
error: 'GTK_INPUT_HINT_NO_SPELLCHECK' undeclared (first use in this function)
error: 'GTK_INPUT_PURPOSE_EMAIL' undeclared (first use in this function)
error: 'GTK_INPUT_PURPOSE_PIN' undeclared (first use in this function)
error: 'gtk_entry_get_input_purpose' undeclared (first use in this function)
error: 'GTK_INPUT_HINT_SPELLCHECK' undeclared (first use in this function)
error: 'gtk_button_set_always_show_image' undeclared (first use in this function)
error: 'GTK_INPUT_PURPOSE_DIGITS' undeclared (first use in this function)
error: 'GTK_INPUT_PURPOSE_FREE_FORM' undeclared (first use in this function)
error: 'GTK_INPUT_PURPOSE_ALPHA' undeclared (first use in this function)
error: 'GTK_INPUT_PURPOSE_PASSWORD' undeclared (first use in this function)
error: 'GTK_INPUT_PURPOSE_PHONE' undeclared (first use in this function)
error: 'GTK_INPUT_HINT_UPPERCASE_SENTENCES' undeclared (first use in this function)
error: 'GTK_INPUT_HINT_UPPERCASE_WORDS' undeclared (first use in this function)
jrick commented 11 years ago

Your GTK package is too old. gotk3 was written to support GTK 3.8 and above. I believe that 3.6 may work with the current version, but only because no 3.8 specific features have wrappers at the moment. Don't expect 3.6 to work in the future.

This was detailed in the package comments, but not in the install section of the README. I'll add it so others don't run into this confusion as well.