Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in running of Armnn-mnist #56

Open
abhi0444 opened this issue Jun 3, 2021 · 0 comments
Open

Error in running of Armnn-mnist #56

abhi0444 opened this issue Jun 3, 2021 · 0 comments

Comments

@abhi0444
Copy link

abhi0444 commented Jun 3, 2021

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`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant