Forgot to mention that while these are warnings and the binary does get built,
when I run the executable I get the “Naughty Programmer” message :-) (nice btw
:-).
Here’s a sample:
j...@jess-laptop:/home/jess/c/e_dev/examples/ecore_ipc/server# ./test
Initializing core libraries
Ecore, Ecore_Evas, Edje, Ecore IPC
Library initlization complete
ERR:Ecore ecore.c:216 _ecore_magic_fail()
*** ECORE ERROR: Ecore Magic Check Failed!!!
*** IN FUNCTION: ecore_evas_title_set()
ERR:Ecore ecore.c:218 _ecore_magic_fail() Input handle pointer is NULL!
ERR:Ecore ecore.c:229 _ecore_magic_fail() *** NAUGHTY PROGRAMMER!!!
*** SPANK SPANK SPANK!!!
*** Now go fix your code. Tut tut tut!
ERR:Ecore ecore.c:216 _ecore_magic_fail()
*** ECORE ERROR: Ecore Magic Check Failed!!!
*** IN FUNCTION: ecore_evas_show()
ERR:Ecore ecore.c:218 _ecore_magic_fail() Input handle pointer is NULL!
ERR:Ecore ecore.c:229 _ecore_magic_fail() *** NAUGHTY PROGRAMMER!!!
*** SPANK SPANK SPANK!!!
*** Now go fix your code. Tut tut tut!
ERR:Ecore ecore.c:216 _ecore_magic_fail()
*** ECORE ERROR: Ecore Magic Check Failed!!!
*** IN FUNCTION: ecore_evas_get()
ERR:Ecore ecore.c:218 _ecore_magic_fail() Input handle pointer is NULL!
ERR:Ecore ecore.c:229 _ecore_magic_fail() *** NAUGHTY PROGRAMMER!!!
*** SPANK SPANK SPANK!!!
*** Now go fix your code. Tut tut tut!
ERR:Ecore ecore.c:216 _ecore_magic_fail()
*** ECORE ERROR: Ecore Magic Check Failed!!!
*** IN FUNCTION: ecore_evas_resize()
ERR:Ecore ecore.c:218 _ecore_magic_fail() Input handle pointer is NULL!
ERR:Ecore ecore.c:229 _ecore_magic_fail() *** NAUGHTY PROGRAMMER!!!
*** SPANK SPANK SPANK!!!
*** Now go fix your code. Tut tut tut!
Starting IPC server:test, port:9999
Also, I’m not using make but am compiling directly:
gcc -o test main.c -I/opt/e17/include -L/opt/e17/lib
-I/opt/e17.2/include/e_dbus-1 -I/opt/e17.2/include/ecore-1 \
-I/opt/e17.2/include/eina-1/eina -I/opt/e17.2/include/eina-1/ -L/opt/e17.2/lib
-lecore -lecore_ipc -lz -leet -lz -ljpeg
Thanks again everyone,
Jess
On Sep 6, 2010, at 7:57 PM, Jesse Charbneau wrote:
> Hello,
> I’ve been trying to resurrect some code I wrote some time ago using
> Ecore/Ecore_IPC. It was failing, so in troubleshooting I came across a
> sample in the cookbook handling IPC server and client communication. In
> comparison, my code looks correct. Upon trying to build the code from the
> cookbook, I get the same error as when compiling my own code. I was
> wondering if something possibly changed and has not quite made it to the
> documentation yet, or if there is a newer, better way to develop ipc apps?
>
> Here is the cookbook entry:
> http://docs.enlightenment.org/books/cookbook/eflcookbook.html#id2538076
>
> Here is the error I am getting when compiling both my code as well as the
> sample from the cookbook:
>
> j...@jess-laptop:/home/jess/c/e_dev/examples/ecore_ipc/server# ./compile.sh
> 2>&1 | head -10
> main.c: In function ‘setup_ipc_server’:
> main.c:177: warning: passing argument 2 of ‘ecore_event_handler_add’ from
> incompatible pointer type
> /opt/e17.2/include/ecore-1/Ecore.h:335: note: expected
> ‘Ecore_Event_Handler_Cb’ but argument is of type ‘int (*)(void *, int, void
> *)’
> main.c:178: warning: passing argument 2 of ‘ecore_event_handler_add’ from
> incompatible pointer type
> /opt/e17.2/include/ecore-1/Ecore.h:335: note: expected
> ‘Ecore_Event_Handler_Cb’ but argument is of type ‘int (*)(void *, int, void
> *)’
> main.c:179: warning: passing argument 2 of ‘ecore_event_handler_add’ from
> incompatible pointer type
> /opt/e17.2/include/ecore-1/Ecore.h:335: note: expected
> ‘Ecore_Event_Handler_Cb’ but argument is of type ‘int (*)(void *, int, void
> *)’
>
>
> Thanks,
> Jess
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:
Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel