Wednesday, 15 May 2013

c++ - Compile Program Using Opencv Libraries -



c++ - Compile Program Using Opencv Libraries -

i'm trying compile programme using opencv module http://xanthippi.ceid.upatras.gr/people/evangelidis/ecc/

i'm using source here includes "cc_image_registration.cpp" utility programme http://xanthippi.ceid.upatras.gr/people/evangelidis/ecc/data/ecc_opencv.zip

the source includes

ecc.cpp ecc.h ecc_image_registration.cpp ... sample files

i'm trying compile standalone utility "cc_image_registration.cpp"

when run

g++ -b/usr/exp/ecc/ecc.h -i/usr/include/opencv ecc_image_registration.cpp $(pkg-config opencv --libs) -o ecc

i back

/tmp/cceulny7.o: in function `main': ecc_image_registration.cpp:(.text+0x91f): undefined reference `cvfindtransform(_iplimage const*, _iplimage const*, cvmat*, warp_mode, cvtermcriteria const&)' collect2: error: ld returned 1 exit status

cvfindtransform defined in ecc.h.

i don't work c++ i'd compile utility , phone call python.

i figured out have include ecc.cpp well. worked.

g++ -i/usr/include/opencv ecc_image_registration.cpp ecc.cpp $(pkg-config opencv --libs) -o ecc

c++ opencv

No comments:

Post a Comment