ector: add warning if library is not found.
authorCedric BAIL <cedric@osg.samsung.com>
Fri, 3 Apr 2015 14:33:48 +0000 (16:33 +0200)
committerCedric BAIL <cedric@osg.samsung.com>
Fri, 3 Apr 2015 14:33:48 +0000 (16:33 +0200)
We use the system configuration to find it. So if it doesn't find it, adjust
your system.

src/lib/ector/cairo/ector_cairo_surface.c

index 8e7b104..8875c04 100644 (file)
@@ -42,6 +42,12 @@ _ector_cairo_surface_symbol_get(Eo *obj EINA_UNUSED,
 #undef LOAD
      }
 
+   if (!_cairo_so)
+     {
+        ERR("Couldn't find cairo library. Please make sure that your system can locate it.");
+        return NULL;
+     }
+
    return eina_module_symbol_get(_cairo_so, name);
 }