Ask Your Question

luca-deltodesco's profile - activity

2013-03-26 19:23:31 -0500 commented question initModule_nonfree segfault

... Seems it was linking against an older set of opencv2 libs installed by my package manager, adding path to /usr/local/lib solved this.

2013-03-26 18:46:54 -0500 received badge  Editor (source)
2013-03-26 18:40:16 -0500 asked a question initModule_nonfree segfault

calling cv::initModule_nonfree() is giving a SEGFAULT.

backtrace from gdb:

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff51292ab in cv::createSURF () at /home/luca/tmp/opencv-2.4.4/modules/nonfree/src/nonfree_init.cpp:50
(gdb) backtrace
#0  0x00007ffff51292ab in cv::createSURF () at /home/luca/tmp/opencv-2.4.4/modules/nonfree/src/nonfree_init.cpp:50
#1  0x00007ffff51295e1 in cv::initModule_nonfree () at /home/luca/tmp/opencv-2.4.4/modules/nonfree/src/nonfree_init.cpp:70

Opencv 2.4.4 compiled from source, debian 64bit

Test case:

#include <nonfree/nonfree.hpp>

int main(int argc, char* argv[]) {
    return 0;


g++ main.cpp -o main -I/usr/local/include/opencv2 -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_video -lopencv_calib3d -lopencv_features2d -lopencv_objdetect -lopencv_ml -lopencv_flann -lopencv_nonfree -lopencv_contrib -lopencv_legacy -ldl