Hi. I am trying (using this guide: https://thinkrpi.wordpress.com/2013/05/ ... mpilation/) to compile the raspberry pi utils (like raspicam) to use them with OpenCV.
The problem is that apparently a much newer GCC version than Raspbian has is causing trouble (at least it seems that it is GCC's fault).
Doing a make results in:
$this->bbcode_second_pass_quote('', '
')Scanning dependencies of target vcos
[ 0%] Building C object interface/vcos/pthreads/CMakeFiles/vcos.dir/vcos_pthreads.c.o
In file included from /home/claudio/userland/build/inc/interface/vcos/vcos.h:127:0,
from /home/claudio/userland/interface/vcos/pthreads/vcos_pthreads.c:29:
/home/claudio/userland/build/inc/interface/vcos/vcos_thread.h:269:6: error: inline function 'vcos_thread_resume' declared but never defined [-Werror]
void vcos_thread_resume(VCOS_THREAD_T *thread);
^
/home/claudio/userland/build/inc/interface/vcos/vcos_thread.h:262:5: error: inline function 'vcos_thread_running' declared but never defined [-Werror]
int vcos_thread_running(VCOS_THREAD_T *thread);
^
/home/claudio/userland/build/inc/interface/vcos/vcos_thread.h:251:15: error: inline function 'vcos_change_preemption' declared but never defined [-Werror]
VCOS_UNSIGNED vcos_change_preemption(VCOS_UNSIGNED pe);
^
/home/claudio/userland/build/inc/interface/vcos/vcos_thread.h:234:6: error: inline function 'vcos_thread_relinquish' declared but never defined [-Werror]
void vcos_thread_relinquish(void);
^
/home/claudio/userland/build/inc/interface/vcos/vcos_thread.h:186:15: error: inline function 'vcos_thread_get_affinity' declared but never defined [-Werror]
VCOS_UNSIGNED vcos_thread_get_affinity(VCOS_THREAD_T *thread);
^
cc1: all warnings being treated as errors
interface/vcos/pthreads/CMakeFiles/vcos.dir/build.make:54: recipe for target 'interface/vcos/pthreads/CMakeFiles/vcos.dir/vcos_pthreads.c.o' failed
make[2]: *** [interface/vcos/pthreads/CMakeFiles/vcos.dir/vcos_pthreads.c.o] Error 1
CMakeFiles/Makefile2:92: recipe for target 'interface/vcos/pthreads/CMakeFiles/vcos.dir/all' failed
make[1]: *** [interface/vcos/pthreads/CMakeFiles/vcos.dir/all] Error 2
Makefile:136: recipe for target 'all' failed
make: *** [all] Error 2