Skip to content

Building from source is failing on ubuntu 15.04 #21

Description

@olymk2

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

Activity

  1. elextr commented on Jun 24, 2015

    @elextr
    Collaborator

    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?

  2. olymk2 commented on Jun 24, 2015

    @olymk2
    ContributorAuthor

    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

  3. elextr commented on Jun 24, 2015

    @elextr
    Collaborator

    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.

  4. codebrainz commented on Jun 24, 2015

    @codebrainz
    Owner

    @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.

  5. elextr commented on Jun 25, 2015

    @elextr
    Collaborator

    On 25 June 2015 at 00:23, Matthew Brush notifications@github.com 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
    #21 (comment).

  6. olymk2 commented on Jun 25, 2015

    @olymk2
    ContributorAuthor

    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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions