enlightenment libs + ruby

Discussion in 'Ruby' started by Siemen Baader, Apr 16, 2009.

  1. Hi List,

    Is there anyone who has experience with enlightenment and ruby?

    I would like to use ruby for a project that uses e17 libs for the gui.
    I found Tilman Sauerbeck's ruby-efl bindings and redact at
    code-monkey.de, but the download link for redact is dead and I have
    been unable to compile some of the ruby-efl-bindings - they are from
    2007 and I think they have come 'out of sync' by now. If anyone here
    is able to give some advice, the details are below.

    So -- if any of you has a dusty, old copy of redact lying around, I'd
    be grateful if I could have a copy of it. Also, any advice for getting
    the ruby-efl bindings to work would be greatly appreciated!

    cheers,
    Siemen

    Ruby-efl details:

    I tried to compile the ruby-efl bindings against my current
    efl-checkout (39893 from http://svn.enlightenment.org/svn/e/trunk/.

    Ruby-edje and ruby-evas build fine. Ruby-ecore fails to compile
    because some symbols in the header files cannot be resolved. I have
    grep'ed in the e17 include dir (/opt/e17/include in my case) and they
    are indeed not there. However, similar looking symbols exist. It looks
    like they have been renamed / refactored.

    Ruby-esmart does not build either for two reasons. First, the rakefile
    somehow does not pass the -cflags and -libs that it got from
    pkg-config to cc. I got around that by compiling manually. Secondly,
    the referred include file 'Esmart/Esmart_File_Dialog.h' does not
    exist.


    Build errors for ruby-ecore:

    $ rake1.8
    cc -fno-strict-aliasing -g -g -O2 -fPIC -I/opt/e17/include
    -I/opt/e17/include/eina-0 -I/opt/e17/include/eina-0/eina
    -D_FILE_OFFSET_BITS=3D64 -I/usr/lib/ruby/1.8/i486-linux
    -I/usr/local/lib/site_ruby/1.8/i486-linux -c -o
    src/ecore_x/rb_ecore_x.o src/ecore_x/rb_ecore_x.c
    src/ecore_x/rb_ecore_x.c: In function =91c_ev_key_down_init=92:
    src/ecore_x/rb_ecore_x.c:51: error: =91Ecore_X_Event_Key_Down=92
    undeclared (first use in this function)
    src/ecore_x/rb_ecore_x.c:51: error: (Each undeclared identifier is
    reported only once
    src/ecore_x/rb_ecore_x.c:51: error: for each function it appears in.)
    src/ecore_x/rb_ecore_x.c:51: error: =91e=92 undeclared (first use in this f=
    unction)
    src/ecore_x/rb_ecore_x.c: In function =91c_ev_mouse_button_down_init=92:
    src/ecore_x/rb_ecore_x.c:79: error: =91Ecore_X_Event_Mouse_Button_Down=92
    undeclared (first use in this function)
    src/ecore_x/rb_ecore_x.c:79: error: =91e=92 undeclared (first use in this f=
    unction)
    src/ecore_x/rb_ecore_x.c: In function =91c_ev_mouse_button_up_init=92:
    src/ecore_x/rb_ecore_x.c:113: error: =91Ecore_X_Event_Mouse_Button_Up=92
    undeclared (first use in this function)
    src/ecore_x/rb_ecore_x.c:113: error: =91e=92 undeclared (first use in this =
    function)
    src/ecore_x/rb_ecore_x.c: In function =91c_ev_mouse_move_init=92:
    src/ecore_x/rb_ecore_x.c:141: error: =91Ecore_X_Event_Mouse_Move=92
    undeclared (first use in this function)
    src/ecore_x/rb_ecore_x.c:141: error: =91e=92 undeclared (first use in this =
    function)
    src/ecore_x/rb_ecore_x.c: In function =91Init_ecore_x=92:
    src/ecore_x/rb_ecore_x.c:460: error: =91ECORE_X_MODIFIER_SHIFT=92
    undeclared (first use in this function)
    src/ecore_x/rb_ecore_x.c:461: error: =91ECORE_X_MODIFIER_CTRL=92
    undeclared (first use in this function)
    src/ecore_x/rb_ecore_x.c:462: error: =91ECORE_X_MODIFIER_ALT=92 undeclared
    (first use in this function)
    src/ecore_x/rb_ecore_x.c:463: error: =91ECORE_X_MODIFIER_WIN=92 undeclared
    (first use in this function)
    src/ecore_x/rb_ecore_x.c:466: error: =91ECORE_X_EVENT_KEY_DOWN=92
    undeclared (first use in this function)
    src/ecore_x/rb_ecore_x.c:470: error: =91ECORE_X_EVENT_KEY_UP=92 undeclared
    (first use in this function)
    src/ecore_x/rb_ecore_x.c:474: error: =91ECORE_X_EVENT_MOUSE_BUTTON_DOWN=92
    undeclared (first use in this function)
    src/ecore_x/rb_ecore_x.c:479: error: =91ECORE_X_EVENT_MOUSE_BUTTON_UP=92
    undeclared (first use in this function)
    src/ecore_x/rb_ecore_x.c:484: error: =91ECORE_X_EVENT_MOUSE_MOVE=92
    undeclared (first use in this function)
    rake aborted!
    Command failed with status (1): [cc -fno-strict-aliasing -g -g -O2 -fPIC -I=
    ...]

    (See full trace by running task with --trace)


    =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

    Errors for Esmart:

    $ cc -fno-strict-aliasing -g -g -O2 -fPIC -D_FILE_OFFSET_BITS=3D64
    -I/usr/lib/ruby/1.8/i486-linux
    -I/usr/local/lib/site_ruby/1.8/i486-linux -c -I/opt/e17/include
    -I/opt/e17/include/eina-0 -I/opt/e17/include/eina-0/eina
    -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2
    -I/usr/include/libpng12 -L/opt/e17/lib -lesmart_container
    -lesmart_draggies -lesmart_trans_x11 -lecore_evas -lImlib2 -lepsilon
    -ledje -lcairo -lecore_x -lembryo -lecore_job -leet -lssl -lcrypto
    -lecore_input -levas -lecore -leina -o
    src/esmart_file_dialog/rb_esmart_file_dialog.o
    src/esmart_file_dialog/rb_esmart_file_dialog.c
    src/esmart_file_dialog/rb_esmart_file_dialog.c:21:39: error:
    Esmart/Esmart_File_Dialog.h: No such file or directory
    In file included from src/esmart_file_dialog/rb_esmart_file_dialog.c:22:
    /usr/local/lib/site_ruby/1.8/i486-linux/evas/rb_evas.h:23: error:
    expected specifier-qualifier-list before =91Evas=92
    /usr/local/lib/site_ruby/1.8/i486-linux/evas/rb_evas.h:28: error:
    expected declaration specifiers or =91...=92 before =91Evas=92
    In file included from src/esmart_file_dialog/rb_esmart_file_dialog.c:23:
    /usr/local/lib/site_ruby/1.8/i486-linux/evas/rb_evas_object.h:27:
    error: expected specifier-qualifier-list before =91Evas_Object=92
    /usr/local/lib/site_ruby/1.8/i486-linux/evas/rb_evas_object.h:35:
    error: expected =91)=92 before =91*=92 token
    src/esmart_file_dialog/rb_esmart_file_dialog.c:33: error: expected
    declaration specifiers or =91...=92 before =91Evas_Object=92
    src/esmart_file_dialog/rb_esmart_file_dialog.c:34: error: expected
    declaration specifiers or =91...=92 before =91Esmart_File_Dialog_Op=92
    src/esmart_file_dialog/rb_esmart_file_dialog.c: In function =91c_init=92:
    src/esmart_file_dialog/rb_esmart_file_dialog.c:74: error:
    =91RbEvasObject=92 has no member named =91real=92
    src/esmart_file_dialog/rb_esmart_file_dialog.c:74: error: =91RbEvas=92 has
    no member named =91real=92
    src/esmart_file_dialog/rb_esmart_file_dialog.c:77: error:
    =91RbEvasObject=92 has no member named =91real=92
    src/esmart_file_dialog/rb_esmart_file_dialog.c:85: error:
    =91RbEvasObject=92 has no member named =91real=92
    src/esmart_file_dialog/rb_esmart_file_dialog.c: At top level:
    src/esmart_file_dialog/rb_esmart_file_dialog.c:91: error: expected
    declaration specifiers or =91...=92 before =91Evas_Object=92
    src/esmart_file_dialog/rb_esmart_file_dialog.c:92: error: expected
    declaration specifiers or =91...=92 before =91Esmart_File_Dialog_Op=92
    src/esmart_file_dialog/rb_esmart_file_dialog.c: In function =91on_action=92=
    :
    src/esmart_file_dialog/rb_esmart_file_dialog.c:96: error: =91op=92
    undeclared (first use in this function)
    src/esmart_file_dialog/rb_esmart_file_dialog.c:96: error: (Each
    undeclared identifier is reported only once
    src/esmart_file_dialog/rb_esmart_file_dialog.c:96: error: for each
    function it appears in.)
    src/esmart_file_dialog/rb_esmart_file_dialog.c:97: error:
    =91ESMART_FILE_DIALOG_NEW=92 undeclared (first use in this function)
    src/esmart_file_dialog/rb_esmart_file_dialog.c:100: error:
    =91ESMART_FILE_DIALOG_RENAME=92 undeclared (first use in this function)
    src/esmart_file_dialog/rb_esmart_file_dialog.c:103: error:
    =91ESMART_FILE_DIALOG_DELETE=92 undeclared (first use in this function)
    src/esmart_file_dialog/rb_esmart_file_dialog.c:106: error:
    =91ESMART_FILE_DIALOG_OK=92 undeclared (first use in this function)
    src/esmart_file_dialog/rb_esmart_file_dialog.c:109: error:
    =91ESMART_FILE_DIALOG_CANCEL=92 undeclared (first use in this function)
    src/esmart_file_dialog/rb_esmart_file_dialog.c:112: error:
    =91ESMART_FILE_DIALOG_DIR_CHANGED=92 undeclared (first use in this
    function)
    src/esmart_file_dialog/rb_esmart_file_dialog.c: In function =91c_edje_get=
    =92:
    src/esmart_file_dialog/rb_esmart_file_dialog.c:124: error:
    =91Evas_Object=92 undeclared (first use in this function)
    src/esmart_file_dialog/rb_esmart_file_dialog.c:124: error: =91e=92
    undeclared (first use in this function)
    src/esmart_file_dialog/rb_esmart_file_dialog.c:131: error:
    =91RbEvasObject=92 has no member named =91real=92
    src/esmart_file_dialog/rb_esmart_file_dialog.c:133: error: too many
    arguments to function =91TO_EVAS=92
    src/esmart_file_dialog/rb_esmart_file_dialog.c: In function =91c_selections=
    _get=92:
    src/esmart_file_dialog/rb_esmart_file_dialog.c:141: error: =91Evas_List=92
    undeclared (first use in this function)
    src/esmart_file_dialog/rb_esmart_file_dialog.c:141: error: =91list=92
    undeclared (first use in this function)
    src/esmart_file_dialog/rb_esmart_file_dialog.c:141: error: =91l=92
    undeclared (first use in this function)
    src/esmart_file_dialog/rb_esmart_file_dialog.c:148: error:
    =91RbEvasObject=92 has no member named =91real=92
    src/esmart_file_dialog/rb_esmart_file_dialog.c: In function
    =91c_current_directory_get=92:
    src/esmart_file_dialog/rb_esmart_file_dialog.c:164: error:
    =91RbEvasObject=92 has no member named =91real=92
    src/esmart_file_dialog/rb_esmart_file_dialog.c:164: warning:
    assignment makes pointer from integer without a cast
    Siemen Baader, Apr 16, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Roedy Green

    Enum enlightenment

    Roedy Green, Jul 8, 2005, in forum: Java
    Replies:
    12
    Views:
    739
    Dale King
    Jul 16, 2005
  2. Christoph
    Replies:
    2
    Views:
    519
    Richard Bos
    Sep 17, 2003
  3. Raman
    Replies:
    5
    Views:
    1,020
    Raman
    May 9, 2008
  4. Jeff Wood
    Replies:
    26
    Views:
    207
    Jeff Wood
    Oct 17, 2005
  5. Greg Hauptmann
    Replies:
    4
    Views:
    188
    Stefano Crocco
    Feb 7, 2009
Loading...

Share This Page