Hi, ALL:
I am new to EFL, and now I've written a test application, that is, the
attachment
I compiled it with this:
gcc test.c `pkgconfig --cflags --libs ewl`
And it created an a.out file
But when I run it, I got this message:
./a.out: symbol lookup error: /usr/lib/ewl/engines//evas_software_x11.so.1:
undefined symbol: DefaultScreen
and the app crashed.
Who knows why?
Thanks.
--
Best Regards
#include <stdio.h>
#include <Ewl.h>
void destroy_cb(Ewl_Widget * w, void *event, void *data)
{
ewl_widget_destroy(w);
ewl_main_quit();
}
int main(int argc, char **argv)
{
Ewl_Widget *win = NULL;
if (!ewl_init(&argc, argv)) {
printf("Unable to init ewl\n");
return 1;
}
win = ewl_window_new();
ewl_window_title_set(EWL_WINDOW(win), "EWL Window");
ewl_window_name_set(EWL_WINDOW(win), "EWL_WINDOW");
ewl_window_class_set(EWL_WINDOW(win), "EWLWindow");
ewl_object_size_request(EWL_OBJECT(win), 200, 100);
ewl_callback_append(win, EWL_CALLBACK_DELETE_WINDOW, destroy_cb, NULL);
ewl_widget_show(win);
ewl_main();
return 0;
}
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel