Interestingly, when I omit the filename,
g++ -O2 `pkg-config --cflags --libs opencv`
I get warnings about lame!
http://pastebin.com/dLWJaCed
(ex. libmp3lame.so.0 needed by //usr/lib/arm-linux-gnueabihf/libavcodec.so
not found )
Why would it be looking for lame/mp3 files to compile? lame
And if that doesn't work, make sure the development packages ( libxxx-dev)
for the open CV libraries are also installed. Its one of my biggest
frustrations with Debian/Ubuntu that installing the library doesn't
generally install the header files for that library.
On Monday, July 11, 2016 at
On Mon, Jul 11, 2016 at 8:32 PM, Ben Nguyen
wrote:
> 'pkg-config --cflags --libs opencv'
try backticks instead of single-quotes like you have
--
Extra Ham Operator: K7AZJ
Registered Linux User: 275424
Raspberry Pi and Arduino developer
*The most exciting phrase
I understand opencv is installed on the stock debian 8.4 distro included
with the beaglebone black
i.e. pkg-config --modversion opencv returns 2.4.9.1
However, when I try to compile a simple hello-world test file:
g++ -O2 'pkg-config --cflags --libs opencv' test.cpp -o test
I get an error