btw, you use c++ ?
Vincent
On Tue, 15 Feb 2011, Vincent Torri wrote:
>
>
> On Tue, 15 Feb 2011, John Dovers wrote:
>
>>
>> Hi,
>>
>>
>>
>> When I make the function call
>> 'evas_render_method_lookup("software_x11")' the library returns an
>> invalid id (= 0). I used the following code to print a list of the
>> available render methods:
>>
>> Eina_List *engine_list, *l;
>> char *engine_name;
>>
>> engine_list = evas_render_method_list();
>>
>> if (!engine_list)
>> {
>> cerr << "ERROR: Evas supports no engines! Exit" << endl;
>> exit(-1);
>> }
>>
>> cout << "Availible Evas Engines:" << endl;
>> l = engine_list;
>> void* data = eina_list_data_get(l);
>>
>> while(l) {
>> cout << (char*) data << endl;
>> l = eina_list_next(l);
>> data = eina_list_data_get(l);
>> }
>>
>> evas_render_method_list_free(engine_list);
>>
>> and this was the output:
>>
>> Availible Evas Engines:
>>
>> software_x11
>>
>> xrender_x11
>>
>> gl_x11
>>
>> fb
>>
>> buffer
>>
>>
>>
>> Although 'software_x11' is mentioned in the list, I'm not able to lookup
>> this method.
>
> evas_render_method_lookup() does check if the module exists or not
>
> evas_render_method_list() has harcoded values according to what is passed
> to configure, hence does not check if the modules really exist. This
> function should be fixed, imho.
>
> So does not rely on the results of evas_render_method_list(). If
> evas_render_method_lookup() fails, then it certainly means that the
> module is not compiled, or is disabled at configure time for some reason.
>
> First check if the result of configure says that software x11 (xlib) is
> available, then be sure that the module is compiled and installed
>
> Vincent
>
> ------------------------------------------------------------------------------
> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
> Pinpoint memory and threading errors before they happen.
> Find and fix more than 250 security defects in the development cycle.
> Locate bottlenecks in serial and parallel code that limit performance.
> http://p.sf.net/sfu/intel-dev2devfeb
> _______________________________________________
> enlightenment-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>
>
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel