Error in running of Armnn-mnist
abhi0444 opened this issue · comments
I have build the arm environment by following this guide - https://github.com/ARM-software/armnn/blob/branches/armnn_21_05/BuildGuideCrossCompilation.md#build-armnn
While running make command for example armnn-mnist show error
g++ -O3 -std=c++14 -I/home/abhimat/armnn-devenv/armnn/include mnist_caffe.cpp -o mnist_caffe -L/home/abhimat/armnn-devenv/build-x86_64/release/armnn -larmnn -larmnnCaffeParser /usr/bin/ld: cannot find -larmnn /usr/bin/ld: cannot find -larmnnCaffeParser collect2: error: ld returned 1 exit status make: *** [Makefile:7: mnist_caffe] Error 1
Make file look like
ARMNN_LIB = ${HOME}/armnn-devenv/armnn/build/armnn
ARMNN_INC = ${HOME}/armnn-devenv/armnn/include
all: mnist_caffe mnist_tf
mnist_caffe: mnist_caffe.cpp mnist_loader.hpp
g++ -O3 -std=c++14 -I$(ARMNN_INC) mnist_caffe.cpp -o mnist_caffe -L$(ARMNN_LIB) -larmnn -larmnnCaffeParser
mnist_tf: mnist_tf.cpp mnist_loader.hpp
g++ -O3 -std=c++14 -I$(ARMNN_INC) mnist_tf.cpp -o mnist_tf -L$(ARMNN_LIB) -larmnn -larmnnTfParser -lpthread
clean:
-rm -f mnist_tf mnist_caffe
test: mnist_caffe mnist_tf
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$(ARMNN_LIB) ./mnist_caffe
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$(ARMNN_LIB) ./mnist_tf`