cross compiling opencv program for arm

asked 2015-03-30 00:11:24 -0600

I have cross compiled opencv for arm. I have all the cross compiled files in /usr/local/opencv . when i run trial.cpp file with arm-fsl-linux-gnueabi-g++ -o trial trial.cpp pkg-config --cflags --static opencv -I/usr/local/opencv/include -L/usr/local/opencv/lib/.libs -lopencv_imgproc -lopencv_core

I get error " : cannot find -lopencv_imgproc " and ": cannot find -lopencv_core"

Why is the compiler isn't compiling libraries ? Where am i going wrong ?

Thank you .

edit retag flag offensive close merge delete

Comments

Are you sure that "-I/usr/local/opencv/include" is ok and itis not "-I/usr/local/include/opencv"? the same for -L/usr/local/opencv/lib/.libs?

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-03-30 06:43:30 -0600 )edit