2013-10-06 14:25:50 -0600 | answered a question | After installing OpenCV 2.9.0.0, I can't compile any program, g++ gives errors (e.g g++: error: pthread: No such file or directory). Please help! Can you take a look at [source_dir]/release/unix-install/opencv.pc ? When I call cmake on my machine, the .pc file is generated badly - the Libs: field ends with: Building any opencv projects with pkg-config, I got the same error that you do, and the error is fixed by making the appropriate change to opencv.pc. (NB - of course pkg-config doesn't look in [source_dir]/build/unix-install for opencv.pc. If you want to do a quick test of changing the .pc file and recompiling your application, make sure you're editing the opencv.pc in /usr/lib/pkgconfig or /usr/local/lib/pkgconfig) |