我试图用这个opencv模块http://xanthippi.ceid.upatras.gr/people/evangelidis/ecc/编译一个程序
我在这里使用的源代码包括"cc_image_registration.cpp“实用程序opencv.zip
源包括
我试图编译它们的独立实用程序,即"cc_image_registration.cpp“
当我跑的时候
g++ -B/usr/exp/ecc/ecc.h -I/usr/include/opencv ecc_image_registration.cpp $(pkg-config opencv --libs) -o ecc我回来了
/tmp/cceULny7.o: In function `main':
ecc_image_registration.cpp:(.text+0x91f): undefined reference to `cvFindTransform(_IplImage const*, _IplImage const*, CvMat*, WARP_MODE, CvTermCriteria const&)'
collect2: error: ld returned 1 exit statuscvFindTransform在ecc.h中定义。
我通常不使用C++,但我只想编译这个实用程序并从Python调用它。
发布于 2014-11-03 18:26:30
我想我还得把ecc.cpp也包括进去。这个成功了。
g++ -I/usr/include/opencv ecc_image_registration.cpp ecc.cpp $(pkg-config opencv --libs) -o ecchttps://stackoverflow.com/questions/26720473
复制相似问题