okI understood what's happen...there is a mess in the build system
./configure isn't needed annymore since now I use a Makefile derivated from the libdir template (which doesn't include a ./configure script)and the Makefile.in was not up to date
moreoever blobtrack.cpp isn't needed anymore but the header doesI've updated the repo
please try again and just run 'make'paths to Gem and Pd are taken from pkg-configand if it doesn't work for some reason you can pass with --with-pd=/path/to/pd or --with-gem=/path/to/gem option to make
hope it will work now...
+a
2013/10/8 Jack <jack@rybn.org>
I still get this error ;)
$ make
...gcc -Wl,--export-dynamic -shared -o pix_opencv_edge.pd_linux pix_opencv_edge.o `pkg-config --libs opencv`
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
gcc -Wl,--export-dynamic -shared -o pix_opencv_laplace.pd_linux pix_opencv_laplace.o `pkg-config --libs opencv`
gcc -Wl,--export-dynamic -shared -o pix_opencv_morphology.pd_linux pix_opencv_morphology.o `pkg-config --libs opencv`
gcc -Wl,--export-dynamic -shared -o pix_opencv_distrans.pd_linux pix_opencv_distrans.o `pkg-config --libs opencv`
gcc -Wl,--export-dynamic -shared -o pix_opencv_motempl.pd_linux pix_opencv_motempl.o `pkg-config --libs opencv`
gcc -Wl,--export-dynamic -shared -o pix_opencv_haarcascade.pd_linux pix_opencv_haarcascade.o `pkg-config --libs opencv`
gcc -Wl,--export-dynamic -shared -o pix_opencv_contours_boundingrect.pd_linux pix_opencv_contours_boundingrect.o `pkg-config --libs opencv`
gcc -Wl,--export-dynamic -shared -o pix_opencv_bgsubstract.pd_linux pix_opencv_bgsubstract.o `pkg-config --libs opencv`
gcc -Wl,--export-dynamic -shared -o pix_opencv_contours_convexity.pd_linux pix_opencv_contours_convexity.o `pkg-config --libs opencv`
gcc -Wl,--export-dynamic -shared -o pix_opencv_dft.pd_linux pix_opencv_dft.o `pkg-config --libs opencv`
gcc -Wl,--export-dynamic -shared -o pix_opencv_lk.pd_linux pix_opencv_lk.o `pkg-config --libs opencv`
gcc -Wl,--export-dynamic -shared -o pix_opencv_hist_compare.pd_linux pix_opencv_hist_compare.o `pkg-config --libs opencv`
gcc -Wl,--export-dynamic -shared -o pix_opencv_knear.pd_linux pix_opencv_knear.o `pkg-config --libs opencv`
gcc -Wl,--export-dynamic -shared -o pix_opencv_threshold.pd_linux pix_opencv_threshold.o `pkg-config --libs opencv`
gcc -Wl,--export-dynamic -shared -o pix_opencv_floodfill.pd_linux pix_opencv_floodfill.o `pkg-config --libs opencv`
gcc -Wl,--export-dynamic -shared -o pix_opencv_athreshold.pd_linux pix_opencv_athreshold.o `pkg-config --libs opencv`
gcc -Wl,--export-dynamic -shared -o pix_opencv_bgstats.pd_linux pix_opencv_bgstats.o `pkg-config --libs opencv`
gcc -Wl,--export-dynamic -shared -o pix_opencv_camshift.pd_linux pix_opencv_camshift.o `pkg-config --libs opencv`gcc -Wl,--export-dynamic -shared -o pix_opencv_hu_compare.pd_linux pix_opencv_hu_compare.o `pkg-config --libs opencv`
blobtrack.cpp:11:26: erreur: ‘CvCapture’ was not declared in this scope
blobtrack.cpp:11:37: erreur: ‘pCap’ was not declared in this scope
blobtrack.cpp:11:60: erreur: expected primary-expression before ‘*’ token
blobtrack.cpp:11:62: erreur: ‘pTracker’ was not declared in this scope
blobtrack.cpp:11:71: erreur: expected primary-expression before ‘char’
blobtrack.cpp:11:96: erreur: expected primary-expression before ‘char’
blobtrack.cpp:11:120: erreur: expression list treated as compound expression in initializer [-fpermissive]
blobtrack.cpp:12:1: erreur: expected ‘,’ or ‘;’ before ‘{’ token
gcc -Wl,--export-dynamic -shared -o pix_opencv_pgh_compare.pd_linux pix_opencv_pgh_compare.o `pkg-config --libs opencv`
gcc -Wl,--export-dynamic -shared -o pix_opencv_hough_circles.pd_linux pix_opencv_hough_circles.o `pkg-config --libs opencv`
gcc -Wl,--export-dynamic -shared -o pix_opencv_hough_lines.pd_linux pix_opencv_hough_lines.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
Le 08/10/2013 11:22, Antoine Villeret a écrit :
this is because I removed the highgui header without removing the call...
try again ? :-)
thanks
a
2013/10/8 Jack <jack@rybn.org>
Le 08/10/2013 10:27, Antoine Villeret a écrit :
Hello Antoine,hello,
I've pushed a fix, could you try again ?
btw I don't know how it can compile on my machine sinceCV_BG_MODEL_FGD and others are defined in legacy.hpp which was not include anywhere in my code...
+a
2013/10/5 Jack <jack@rybn.org>
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
Now, i get this error :
$ makeblobtrack.cpp:11:26: erreur: ‘CvCapture’ was not declared in this scope
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
blobtrack.cpp:11:37: erreur: ‘pCap’ was not declared in this scope
blobtrack.cpp:11:60: erreur: expected primary-expression before ‘*’ token
blobtrack.cpp:11:62: erreur: ‘pTracker’ was not declared in this scope
blobtrack.cpp:11:71: erreur: expected primary-expression before ‘char’
blobtrack.cpp:11:96: erreur: expected primary-expression before ‘char’
blobtrack.cpp:11:120: erreur: expression list treated as compound expression in initializer [-fpermissive]
blobtrack.cpp:12:1: erreur: expected ‘,’ or ‘;’ before ‘{’ token
make: *** [blobtrack] Erreur 1
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