Open tmuruges opened 7 years ago
That error is because of linking OpenCV library unproperly.
try add this line at the end of the line, `pkg-config --libs opencv`
By adding the pkg-config ,I am getting the following g++ -Wall -O2 -std=c++0x -o mnisten src/main.cpp \ -I/usr/local/include/boost /usr/lib/x86_64-linux-gnu/libboost_system.a \ /usr/lib/x86_64-linux-gnu/libboost_filesystem.a \ -I/usr/local/include/opencv -I/usr/local/include \ pkg-config --libs opencv g++: error: pkg-config: No such file or directory g++: error: opencv: No such file or directory g++: error: unrecognized command line option ‘--libs’ makefile:2: recipe for target 'mnisten' failed make: *** [mnisten] Error 1
On Mon, Jan 9, 2017 at 9:29 AM, BaeInpyo notifications@github.com wrote:
That error is because of linking OpenCV library unproperly.
try add this line at the end of the line,
pkg-config --libs opencv
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/nyanp/mnisten/issues/12#issuecomment-271207797, or mute the thread https://github.com/notifications/unsubscribe-auth/AQA_FFcQvb11fpZiEUol3IJfIINudfwzks5rQbC9gaJpZM4LM3j2 .
You should add the EXACTLY same line. `pkg-config --libs opencv`
` <- add this word
I was trying to make mnisten using the makefile :-1: g++ -Wall -O2 -L/home/dell/boost_1_55_0/stage/lib -lboost_filesystem -std=c++0x -o mnisten src/main.cpp The detailed error is given in the file log.txt log.txt