Library 'libcaffe-serializer.so' not found
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 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
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/"
Thank you @gunjupark. It does work! And also thanks to @erkaiyang for your quick reply.
@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 Maybe you can try the following steps:
- 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);
- download Tengine model (psw: hhgc)
squeezenet.tmfileto the path./Models/ - Recompile Tengine
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~
@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