Raspberry OF examples wont compile

When I try and make the videoGrabberExample in OF i get the following errors. I get similar(ish) when I try to make a project downloaded from github, errors below, but I am given a load of warnings as it is compiling that include …declared static but never defined, comparison between signed and unsigned integer expressions, variable ‘ok’ set but not used.

/usr/bin/ld: //usr/lib/arm-linux-gnueabihf/libxcb.so.1: invalid string offset 2107459 >= 14415 for section.dynstr’
//usr/lib/arm-linux-gnueabihf/libxcb.so.1: error adding symbols: No such file or directory
collect2: error: ld returned 1 exit status
/home/pi/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:382: recipe for target ‘bin/videoGrabberExample’ failed
make[1]: *** [bin/videoGrabberExample] Error 1
make[1]: Leaving directory ‘/home/pi/openFrameworks/examples/video/videoGrabberExample’
/home/pi/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:125: recipe for target ‘Release’ failed
make: *** [Release] Error 2


/home/pi/openFrameworks/addons/ofxCvPiCam/src/ofxCvPiCam.h:197:13: warning: ‘void gray_callback(MMAL_PORT_T*, MMAL_BUFFER_HEADER_T*)’ declared ‘static’ but never defined [-Wunused-function]
static void gray_callback(MMAL_PORT_T *, MMAL_BUFFER_HEADER_T *);
^
/home/pi/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:200: recipe for target ‘obj/linuxarmv6l/Release/src/ofApp.o’ failed
make[1]: *** [obj/linuxarmv6l/Release/src/ofApp.o] Error 1
make[1]: Leaving directory ‘/home/pi/openFrameworks/apps/myApps/RPi2’
/home/pi/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:125: recipe for target ‘Release’ failed
make: *** [Release] Error 2

Anyone any suggestions?

`