我在opencv配置arm环境的时候反复遇到了好多问题,最后要编译了,问题卡在这里了
我在交叉编译的时候输入如下指令
arm-fsl-linux-gnueabi-g++ pkg-config --cflags arm-opencv
pkg-config –libs arm-opencv
test.cpp -lpthread –lrt -ldl –o test
却出现了如下错误
arm-fsl-linux-gnueabi-g++: –lrt: No such file or directory
arm-fsl-linux-gnueabi-g++: –o: No such file or directory
arm-fsl-linux-gnueabi-g++: test: No such file or directory
实在是搞不懂怎么回事,因为我在写其他文件的时候-o明明是可以的。网上的方法该配置的都配置了!
望高手能解答
把 –o test放到最前面。
arm-fsl-linux-gnueabi-g++ –o test