Le 05/10/2013 15:10, Antoine Villeret a écrit :
$ echo `pkg-config --modversion opencv`ok,
which OpenCV version do you have ?$echo `pkg-config --modversion opencv`
there is no check in the Makefile, I could add one...
+a
2013/10/5 Jack <jack@rybn.org>
Le 03/10/2013 15:58, Antoine Villeret a écrit :
Hello Antoine,hey jack,
sorry I don't see your mail...it's quite old now, do you still need help ?
+a
2013/5/31 Jack <jack@rybn.org>
Hello,
I have an error when i try to compile pix_opencv :
pix_opencv_lk.cc: In member function ‘virtual void
pix_opencv_lk::processRGBAImage(imageStruct&)’:
pix_opencv_lk.cc:165:42: erreur: ‘cvCreateSubdiv2D’ was not declared in
this scope
pix_opencv_lk.cc:166:51: erreur: ‘cvInitSubdivDelaunay2D’ was not
declared in this scope
pix_opencv_lk.cc:212:62: erreur: ‘cvSubdivDelaunay2DInsert’ was not
declared in this scope
pix_opencv_lk.cc:213:45: erreur: ‘cvCalcSubdivVoronoi2D’ was not
declared in this scope
pix_opencv_lk.cc:244:69: erreur: ‘cvSubdivDelaunay2DInsert’ was not
declared in this scope
pix_opencv_lk.cc:245:52: erreur: ‘cvCalcSubdivVoronoi2D’ was not
declared in this scope
pix_opencv_lk.cc:351:59: erreur: ‘cvSubdiv2DEdgeOrg’ was not declared in
this scope
pix_opencv_lk.cc:352:59: erreur: ‘cvSubdiv2DEdgeDst’ was not declared in
this scope
pix_opencv_lk.cc: In member function ‘virtual void
pix_opencv_lk::processRGBImage(imageStruct&)’:
pix_opencv_lk.cc:443:42: erreur: ‘cvCreateSubdiv2D’ was not declared in
this scope
pix_opencv_lk.cc:444:51: erreur: ‘cvInitSubdivDelaunay2D’ was not
declared in this scope
pix_opencv_lk.cc:490:62: erreur: ‘cvSubdivDelaunay2DInsert’ was not
declared in this scope
pix_opencv_lk.cc:491:45: erreur: ‘cvCalcSubdivVoronoi2D’ was not
declared in this scope
pix_opencv_lk.cc:522:69: erreur: ‘cvSubdivDelaunay2DInsert’ was not
declared in this scope
pix_opencv_lk.cc:523:52: erreur: ‘cvCalcSubdivVoronoi2D’ was not
declared in this scope
pix_opencv_lk.cc:628:59: erreur: ‘cvSubdiv2DEdgeOrg’ was not declared in
this scope
pix_opencv_lk.cc:629:59: erreur: ‘cvSubdiv2DEdgeDst’ was not declared in
this scope
pix_opencv_lk.cc: In member function ‘virtual void
pix_opencv_lk::processGrayImage(imageStruct&)’:
pix_opencv_lk.cc:722:42: erreur: ‘cvCreateSubdiv2D’ was not declared in
this scope
pix_opencv_lk.cc:723:51: erreur: ‘cvInitSubdivDelaunay2D’ was not
declared in this scope
pix_opencv_lk.cc:769:62: erreur: ‘cvSubdivDelaunay2DInsert’ was not
declared in this scope
pix_opencv_lk.cc:770:45: erreur: ‘cvCalcSubdivVoronoi2D’ was not
declared in this scope
pix_opencv_lk.cc:796:69: erreur: ‘cvSubdivDelaunay2DInsert’ was not
declared in this scope
pix_opencv_lk.cc:797:52: erreur: ‘cvCalcSubdivVoronoi2D’ was not
declared in this scope
pix_opencv_lk.cc:902:59: erreur: ‘cvSubdiv2DEdgeOrg’ was not declared in
this scope
pix_opencv_lk.cc:903:59: erreur: ‘cvSubdiv2DEdgeDst’ was not declared in
this scope
make: *** [pix_opencv_lk.o] Erreur 1
rm pix_opencv_bgsubstract.o pix_opencv_haarcascade.o pix_opencv_edge.o
pix_opencv_dft.o pix_opencv_laplace.o pix_opencv_motempl.o
pix_opencv_contours_convexity.o pix_opencv_distrans.o
pix_opencv_contours_boundingrect.o pix_opencv_morphology.o
I do this :
$ sudo apt-get install libopencv-dev libcv-dev libhighgui-dev libcvaux-dev
$ ./configure --with-pd='/home/jack/Téléchargements/pd-0.44-3'
--with-gem='/home/jack/Gem'
then
$ make
How can i avoid this error ?
Thanx.
++
Jack
_______________________________________________
GEM-dev mailing list
GEM-dev@iem.at
http://lists.puredata.info/listinfo/gem-dev
Now, after :
$ ./configure --with-pd='/home/jack/Téléchargements/pd-0.45-0test2' --with-gem='/home/jack/Gem'
$ make -j 6 -k
I get that error :
In file included from blobtrack.cpp:5:0:
blobtrack.h: In function ‘CvFGDetector* cvCreateFGDetector0()’:
blobtrack.h:18:82: erreur: ‘CV_BG_MODEL_FGD’ was not declared in this scope
blobtrack.h: In function ‘CvFGDetector* cvCreateFGDetector0Simple()’:
blobtrack.h:19:82: erreur: ‘CV_BG_MODEL_FGD_SIMPLE’ was not declared in this scope
blobtrack.h: In function ‘CvFGDetector* cvCreateFGDetector1()’:
blobtrack.h:20:82: erreur: ‘CV_BG_MODEL_MOG’ was not declared in this scope
gcc -Wl,--export-dynamic -shared -o pix_opencv_of_hs.pd_linux pix_opencv_of_hs.o `pkg-config --libs opencv`
gcc -Wl,--export-dynamic -shared -o pix_opencv_of_lk.pd_linux pix_opencv_of_lk.o `pkg-config --libs opencv`
blobtrack.cpp: In function ‘int main(int, char**)’:
blobtrack.cpp:258:43: attention : missing initializer for member ‘CvBlobTrackerAutoParam1::pFG’ [-Wmissing-field-initializers]
blobtrack.cpp:258:43: attention : missing initializer for member ‘CvBlobTrackerAutoParam1::pBD’ [-Wmissing-field-initializers]
blobtrack.cpp:258:43: attention : missing initializer for member ‘CvBlobTrackerAutoParam1::pBT’ [-Wmissing-field-initializers]
blobtrack.cpp:258:43: attention : missing initializer for member ‘CvBlobTrackerAutoParam1::pBTGen’ [-Wmissing-field-initializers]
blobtrack.cpp:258:43: attention : missing initializer for member ‘CvBlobTrackerAutoParam1::pBTPP’ [-Wmissing-field-initializers]
blobtrack.cpp:258:43: attention : missing initializer for member ‘CvBlobTrackerAutoParam1::UsePPData’ [-Wmissing-field-initializers]
blobtrack.cpp:258:43: attention : missing initializer for member ‘CvBlobTrackerAutoParam1::pBTA’ [-Wmissing-field-initializers]
gcc -Wl,--export-dynamic -shared -o pix_opencv_calibration.pd_linux pix_opencv_calibration.o `pkg-config --libs opencv`
In file included from blobtrack.cpp:5:0:
blobtrack.h: In function ‘CvFGDetector* cvCreateFGDetector1()’:
blobtrack.h:20:113: attention : contrôle a atteint la fin non void de la fonction [-Wreturn-type]
blobtrack.h: In function ‘CvFGDetector* cvCreateFGDetector0Simple()’:
blobtrack.h:19:113: attention : contrôle a atteint la fin non void de la fonction [-Wreturn-type]
blobtrack.h: In function ‘CvFGDetector* cvCreateFGDetector0()’:
blobtrack.h:18:113: attention : contrôle a atteint la fin non void de la fonction [-Wreturn-type]
gcc -Wl,--export-dynamic -shared -o pix_opencv_warpperspective.pd_linux pix_opencv_warpperspective.o `pkg-config --libs opencv`
gcc -Wl,--export-dynamic -shared -o pix_opencv_findchessboardcorners.pd_linux pix_opencv_findchessboardcorners.o `pkg-config --libs opencv`
make: *** [blobtrack] Erreur 1
make: *** Attente des tâches non terminées....
rm pix_opencv_colorfilt.o pix_opencv_lk.o pix_opencv_hu_compare.o pix_opencv_knear.o pix_opencv_bgsubstract.o pix_opencv_hu_moments.o pix_opencv_contours_convexhull.o pix_opencv_haarcascade.o pix_opencv_edge.o pix_opencv_hough_circles.o pix_opencv_of_bm.o pix_opencv_contours.o pix_opencv_dft.o pix_opencv_laplace.o pix_opencv_hist_compare.o pix_opencv_motempl.o pix_opencv_calibration.o pix_opencv_contours_convexity.o pix_opencv_distrans.o pix_opencv_threshold.o pix_opencv_warpperspective.o pix_opencv_camshift.o pix_opencv_matchshape.o pix_opencv_blobtrack.o pix_opencv_hough_lines.o pix_opencv_pgh_compare.o pix_opencv_bgstats.o pix_opencv_contours_boundingrect.o pix_opencv_findchessboardcorners.o pix_opencv_athreshold.o pix_opencv_morphology.o pix_opencv_floodfill.o pix_opencv_of_hs.o pix_opencv_of_lk.o
jack@jack-GE60-0NC-0ND:~/pure-data/externals/pix_opencv$ make -j 6 -k
g++ -fPIC -DPD -O2 -funroll-loops -fomit-frame-pointer -ffast-math -Wall -W -Wno-unused -Wno-parentheses -Wno-switch -DGEM_OPENCV_VERSION=\"0.2\" -g -DLINUX -I/home/jack/Téléchargements/pd-0.45-0test2/src -I. -I/home/jack/Gem/src -I/home/jack/Téléchargements/pd-0.45-0test2/src -I/usr/include/Gem `pkg-config --cflags opencv` -o pix_opencv_blobtrack.o -c pix_opencv_blobtrack.cc
g++ -fPIC -DPD -O2 -funroll-loops -fomit-frame-pointer -ffast-math -Wall -W -Wno-unused -Wno-parentheses -Wno-switch -DGEM_OPENCV_VERSION=\"0.2\" -g -DLINUX -I/home/jack/Téléchargements/pd-0.45-0test2/src -I. -I/home/jack/Gem/src -I/home/jack/Téléchargements/pd-0.45-0test2/src -I/usr/include/Gem `pkg-config --cflags opencv` -o pix_opencv_contours.o -c pix_opencv_contours.cc
g++ -fPIC -DPD -O2 -funroll-loops -fomit-frame-pointer -ffast-math -Wall -W -Wno-unused -Wno-parentheses -Wno-switch -DGEM_OPENCV_VERSION=\"0.2\" -g -DLINUX -I/home/jack/Téléchargements/pd-0.45-0test2/src -I. -I/home/jack/Gem/src -I/home/jack/Téléchargements/pd-0.45-0test2/src -I/usr/include/Gem `pkg-config --cflags opencv` -o pix_opencv_matchshape.o -c pix_opencv_matchshape.cc
g++ -fPIC -DPD -O2 -funroll-loops -fomit-frame-pointer -ffast-math -Wall -W -Wno-unused -Wno-parentheses -Wno-switch -DGEM_OPENCV_VERSION=\"0.2\" -g -DLINUX -Wl,--export-dynamic -shared blobtrack.cpp -o blobtrack
In file included from blobtrack.cpp:5:0:
blobtrack.h: In function ‘CvFGDetector* cvCreateFGDetector0()’:
blobtrack.h:18:82: erreur: ‘CV_BG_MODEL_FGD’ was not declared in this scope
blobtrack.h: In function ‘CvFGDetector* cvCreateFGDetector0Simple()’:
blobtrack.h:19:82: erreur: ‘CV_BG_MODEL_FGD_SIMPLE’ was not declared in this scope
blobtrack.h: In function ‘CvFGDetector* cvCreateFGDetector1()’:
blobtrack.h:20:82: erreur: ‘CV_BG_MODEL_MOG’ was not declared in this scope
blobtrack.cpp: In function ‘int main(int, char**)’:
blobtrack.cpp:258:43: attention : missing initializer for member ‘CvBlobTrackerAutoParam1::pFG’ [-Wmissing-field-initializers]
blobtrack.cpp:258:43: attention : missing initializer for member ‘CvBlobTrackerAutoParam1::pBD’ [-Wmissing-field-initializers]
blobtrack.cpp:258:43: attention : missing initializer for member ‘CvBlobTrackerAutoParam1::pBT’ [-Wmissing-field-initializers]
blobtrack.cpp:258:43: attention : missing initializer for member ‘CvBlobTrackerAutoParam1::pBTGen’ [-Wmissing-field-initializers]
blobtrack.cpp:258:43: attention : missing initializer for member ‘CvBlobTrackerAutoParam1::pBTPP’ [-Wmissing-field-initializers]
blobtrack.cpp:258:43: attention : missing initializer for member ‘CvBlobTrackerAutoParam1::UsePPData’ [-Wmissing-field-initializers]
blobtrack.cpp:258:43: attention : missing initializer for member ‘CvBlobTrackerAutoParam1::pBTA’ [-Wmissing-field-initializers]
In file included from blobtrack.cpp:5:0:
blobtrack.h: In function ‘CvFGDetector* cvCreateFGDetector1()’:
blobtrack.h:20:113: attention : contrôle a atteint la fin non void de la fonction [-Wreturn-type]
blobtrack.h: In function ‘CvFGDetector* cvCreateFGDetector0Simple()’:
blobtrack.h:19:113: attention : contrôle a atteint la fin non void de la fonction [-Wreturn-type]
blobtrack.h: In function ‘CvFGDetector* cvCreateFGDetector0()’:
blobtrack.h:18:113: attention : contrôle a atteint la fin non void de la fonction [-Wreturn-type]
make: *** [blobtrack] Erreur 1
gcc -Wl,--export-dynamic -shared -o pix_opencv_blobtrack.pd_linux pix_opencv_blobtrack.o `pkg-config --libs opencv`
gcc -Wl,--export-dynamic -shared -o pix_opencv_matchshape.pd_linux pix_opencv_matchshape.o `pkg-config --libs opencv`
gcc -Wl,--export-dynamic -shared -o pix_opencv_contours.pd_linux pix_opencv_contours.o `pkg-config --libs opencv`
make: La cible « all » n'a pas pu être refabriquée à cause d'erreurs.
rm pix_opencv_contours.o pix_opencv_matchshape.o pix_opencv_blobtrack.o
So only 'blobtrack' seems to have a problem to compile...
++
Jack
2.4.2
++
Jack