convert libname (e.g. /usr/local/lib/libopencv_xxx.so) to
-L/usr/local/lib -lopencv_xxx