Ask Your Question

rhenig's profile - activity

2014-08-22 15:44:20 -0600 answered a question Error: Undefined References

I was having trouble linking the example code by hand using g++ CLI instead of the top level make in the installation directory. I finally found I needed to do this to link the lkdemo.cpp code:

g++ kdemo.cpp -o lkdemo -Wl,--start-group pkg-config opencv --libs -Wl,--end-group

I am using openCv 3.0 alpha on Ubuntu 12.04.4

Hope this helps.