Tengine icon indicating copy to clipboard operation
Tengine copied to clipboard

Library 'libcaffe-serializer.so' not found

Open yfang1644 opened this issue 7 years ago • 7 comments

When I run ./build/test/bin/bench_sqz after build, it says:

Shared library not found: libcaffe-serializer.so: cannot open shared object file: No such file or directory Get serializer failed, unknown model format: caffe Create graph0 failed errno: 2

Indeed, my system has no such file 'libcaffe-serializer.so'. So I think this library should be built in this project. And I modifiled default_config/...native.config, set 'BUILD_SERIALIZER' to 'y'. Then I found these lines in linux_build.sh (lines 100-103):

cd tengine-module mkdir build cd build ../linux_build.sh

But directory 'tengine-module' is empty. the file '../linux_build.sh' doesn't exist!

yfang1644 avatar Nov 29 '19 04:11 yfang1644

@yfang1644 hi, Have you installed opencv? If not, you may get an error prompt when compiling the test file, please install opencv with the following command and try again:

sudo apt install libopencv-dev

erkaiya avatar Nov 29 '19 07:11 erkaiya

maybe you were cloning "git clone https://github.com/OAID/tengine/" instead that, you have to "git clone --recurse-submodules https://github.com/OAID/tengine/"

gunjupark avatar Dec 04 '19 13:12 gunjupark

Thank you @gunjupark. It does work! And also thanks to @erkaiyang for your quick reply.

yfang1644 avatar Dec 05 '19 05:12 yfang1644

@gunjupark It's does not work after to "git clone --recurse-submodules https://github.com/OAID/tengine/", Do you have other's way to solve this problem?

linzeming avatar Dec 20 '19 09:12 linzeming

@linzeming Maybe you can try the following steps:

  1. modify the file:tests/bin/bench_sqz.cpp

//const char* model_file = "./models/squeezenet_v1.1.caffemodel"; const char* model_file = "./models/squeezenet.tmfile";

//graph_t graph = create_graph(nullptr, "caffe", text_file, model_file); graph_t graph = create_graph(nullptr, "tengine", model_file);

  1. download Tengine model (psw: hhgc)squeezenet.tmfile to the path./Models/
  2. Recompile Tengine

erkaiya avatar Dec 21 '19 10:12 erkaiya

git clone --recurse-submodules https://github.com/OAID/tengine/

vim default_config/arm64_linux_native.config

BUILD_SERIALIZER=y

bash linux_build.sh default_config/arm64_linux_native.config

Enjoy~

xuguozhi avatar Dec 26 '19 02:12 xuguozhi

@yfang1644 hi, Have you installed opencv? If not, you may get an error prompt when compiling the test file, please install opencv with the following command and try again:

sudo apt install libopencv-dev

1: so if opencv not install, then libcaffe-serializer.so won't build? is that right? 2: so libmxnet_serializer.so not found is some reason?


1: problem fix , submodule not pull

sunbinbin1991 avatar Jan 09 '20 16:01 sunbinbin1991