enlightenment libs + ruby

S

Siemen Baader

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,754
Messages
2,569,522
Members
44,995
Latest member
PinupduzSap

Latest Threads

Top