08-07-2015, 22:00:31
Bonsoir a tous ,
je vien d'installer raspbian sur mon pi 2 avec opencv 3.0 c'est la derniere version ... apres j'ai voulu utiliser la camera module du pi en c++ alors j'ai installer les bibliotheques necessaires depuis ce lien :
https://github.com/robidouille/robidouil...aspicam_cv
le probleme c'est qu'n arrivant a :
mkdir -p ~/git
cd ~/git
git clone https://github.com/robidouille/robidouille.git
cd robidouille/raspicam_cv
mkdir objs
make <==== dans make
j'obtient l'erreur suivante :
gcc -c -Wno-multichar -g -I/usr/include/opencv -I/home/pi/git/raspberrypi/userland/host_applications/linux/libs/bcm_host/include -I/home/pi/git/raspberrypi/userland/host_applications/linux/apps/raspicam -I/home/pi/git/raspberrypi/userland -I/home/pi/git/raspberrypi/userland/interface/vcos/pthreads -I/home/pi/git/raspberrypi/userland/interface/vmcs_host/linux -I/home/pi/git/raspberrypi/userland/interface/mmal -MD RaspiCamCV.c -o objs/RaspiCamCV.o
In file included from /usr/local/include/opencv2/core/core.hpp:48:0,
from /usr/include/opencv/cv.h:64,
from RaspiCamCV.c:40:
/usr/local/include/opencv2/core.hpp:49:4: error: #error core.hpp header must be compiled as C++
In file included from /usr/local/include/opencv2/core.hpp:54:0,
from /usr/local/include/opencv2/core/core.hpp:48,
from /usr/include/opencv/cv.h:64,
from RaspiCamCV.c:40:
/usr/local/include/opencv2/core/base.hpp:49:4: error: #error base.hpp header must be compiled as C++
/usr/local/include/opencv2/core/base.hpp:52:19: fatal error: climits: No such file or directory
compilation terminated.
Makefile:45: recipe for target 'objs/RaspiCamCV.o' failed
make: *** [objs/RaspiCamCV.o] Error 1
j'ai cherché partout sans trouver de solution :p
merci pour vos reponses
je vien d'installer raspbian sur mon pi 2 avec opencv 3.0 c'est la derniere version ... apres j'ai voulu utiliser la camera module du pi en c++ alors j'ai installer les bibliotheques necessaires depuis ce lien :
https://github.com/robidouille/robidouil...aspicam_cv
le probleme c'est qu'n arrivant a :
mkdir -p ~/git
cd ~/git
git clone https://github.com/robidouille/robidouille.git
cd robidouille/raspicam_cv
mkdir objs
make <==== dans make
j'obtient l'erreur suivante :
gcc -c -Wno-multichar -g -I/usr/include/opencv -I/home/pi/git/raspberrypi/userland/host_applications/linux/libs/bcm_host/include -I/home/pi/git/raspberrypi/userland/host_applications/linux/apps/raspicam -I/home/pi/git/raspberrypi/userland -I/home/pi/git/raspberrypi/userland/interface/vcos/pthreads -I/home/pi/git/raspberrypi/userland/interface/vmcs_host/linux -I/home/pi/git/raspberrypi/userland/interface/mmal -MD RaspiCamCV.c -o objs/RaspiCamCV.o
In file included from /usr/local/include/opencv2/core/core.hpp:48:0,
from /usr/include/opencv/cv.h:64,
from RaspiCamCV.c:40:
/usr/local/include/opencv2/core.hpp:49:4: error: #error core.hpp header must be compiled as C++
In file included from /usr/local/include/opencv2/core.hpp:54:0,
from /usr/local/include/opencv2/core/core.hpp:48,
from /usr/include/opencv/cv.h:64,
from RaspiCamCV.c:40:
/usr/local/include/opencv2/core/base.hpp:49:4: error: #error base.hpp header must be compiled as C++
/usr/local/include/opencv2/core/base.hpp:52:19: fatal error: climits: No such file or directory
compilation terminated.
Makefile:45: recipe for target 'objs/RaspiCamCV.o' failed
make: *** [objs/RaspiCamCV.o] Error 1
j'ai cherché partout sans trouver de solution :p
merci pour vos reponses
