Ok, it seems the problem was not having the sources file in the same directory as the image.
Anyway, now I've another problem when trying to compile. cmake runs fine, but make fails with the following error:
Scanning dependencies of target B3DAcceleratorPlugin
[ 57%] Building C object B3DAcceleratorPlugin/CMakeFiles/B3DAcceleratorPlugin.dir/home/bromagosa/blessed/src/plugins/B3DAcceleratorPlugin/B3DAcceleratorPlugin.c.o
In file included from /home/bromagosa/blessed/src/plugins/B3DAcceleratorPlugin/B3DAcceleratorPlugin.c:36:0:
/home/bromagosa/blessed/platforms/Cross/plugins/B3DAcceleratorPlugin/B3DAcceleratorPlugin.h:8:19: fatal error: GL/gl.h: El fitxer o directori no existeix
make[2]: *** [B3DAcceleratorPlugin/CMakeFiles/B3DAcceleratorPlugin.dir/home/bromagosa/blessed/src/plugins/B3DAcceleratorPlugin/B3DAcceleratorPlugin.c.o] Error 1
make[1]: *** [B3DAcceleratorPlugin/CMakeFiles/B3DAcceleratorPlugin.dir/all] Error 2
Any ideas?��
(For the record, I do not need the B3DAcceleratorPlugin, so I guess it could just be left out, but I don't know how does one do that either)