Building from source is failing on ubuntu 15.04
sounds like a change in gtk api perhaps ?
geanypy-uiutils.c: In function 'UiUtils_combo_box_add_to_history':
geanypy-uiutils.c:126:26: error: 'GTK_TYPE_COMBO_BOX_ENTRY' undeclared (first use in this function)
GOB_TYPE_CHECK(widget, GTK_TYPE_COMBO_BOX_ENTRY, 1);
^
geanypy-uiutils.c:17:44: note: in definition of macro 'GOB_TYPE_CHECK'
!g_type_is_a(G_TYPE_FROM_INSTANCE(gob), gob_type)) \
^
geanypy-uiutils.c:126:26: note: each undeclared identifier is reported only once for each function it appears in
GOB_TYPE_CHECK(widget, GTK_TYPE_COMBO_BOX_ENTRY, 1);
^
geanypy-uiutils.c:17:44: note: in definition of macro 'GOB_TYPE_CHECK'
!g_type_is_a(G_TYPE_FROM_INSTANCE(gob), gob_type)) \
^
geanypy-uiutils.c:127:31: warning: passing argument 1 of 'ui_combo_box_add_to_history' makes pointer from integer without a cast
ui_combo_box_add_to_history(GTK_COMBO_BOX_ENTRY(widget), text, hist_len);
^
In file included from /usr/local/include/geany/geanyplugin.h:61:0,
from geanypy.h:94,
from geanypy-uiutils.c:1:
/usr/local/include/geany/ui_utils.h:137:6: note: expected 'struct GtkComboBoxText *' but argument is of type 'int'
void ui_combo_box_add_to_history(GtkComboBoxText *combo_entry,
^
Makefile:681: recipe for target 'geanypy_la-geanypy-uiutils.lo' failed
make[2]: *** [geanypy_la-geanypy-uiutils.lo] Error 1
make[2]: Leaving directory '/opt/geany/geanypy/src'
Makefile:379: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/opt/geany/geanypy/src'
Makefile:389: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
Geanypy uses GTK2 and I doubt that API is going to change any more. What versions of Geany, Geanypy and GTK are you compiling with?
latest geany and geanypy from git as of this message, i am not specifying any params.
on second thought i do have a version from my package manager could it be trying to build against that ?
anyway i am using the below for geany and geanypy.
./autogen.sh ./configure make
It think geany plugins will build against the system Geany unless specified otherwise, so if you didn't install geany before building the plugins it will probably find the wrong one.
Note that to build plugins for a non-standard geany you need to specify --with-geany-libdir as well as --prefix.
@elextr I don't think GeanyPy has a --with-geany-libdir argument to configure, it's controlled by the pkg-config file you find it (ex. by setting PKG_CONFIG_PATH=/geany/prefix/lib/pkgconfig).
@olymk2 It almost sounds like you're trying to build against GTK+ 3 or a GTK+ 3 build of Geany.
On 25 June 2015 at 00:23, Matthew Brush [email protected] wrote:
@elextr https://github.com/elextr I don't think GeanyPy has a --with-geany-libdir argument to configure, it's controlled by the pkg-config file you find it (ex. by setting PKG_CONFIG_PATH=/geany/prefix/lib/pkgconfig).
Oops didn't notice this was codebrainz/geanypy not geany-plugins/geanypy :)
@olymk2 https://github.com/olymk2 It almost sounds like you're trying to build against GTK+ 3 or a GTK+ 3 build of Geany.
— Reply to this email directly or view it on GitHub https://github.com/codebrainz/geanypy/issues/21#issuecomment-114885203.
spot on, i just removed the apt-get version and it all builds fine.
Nice work guys oi like the new document reload dialog and there are some great new plugins :)