voxl-tflite-server build failed
-
I was able to compile successfully before, but recently the linker has stopped finding the library files "absl_wyhash" and "clog".
The compilation output is shown below.
-
@Wondosen How are you running
./install_build_deps.sh
? -
@tom yes I did
./install_build_deps.sh qrb5165 dev
-
@tom for running,
./build.sh qrb5165
-
@Wondosen You're building voxl-tflite-server which is part of SDK 1.4.4, while calling
install_build_deps.sh qrb5165 dev
will pull the dependencies for a much newer version of voxl-tflite-server than you're using.Try running
./install_build_deps.sh qrb5165 sdk-1.4
-
@tom I just ran the following successfully:
cd voxl-tflite-server git checkout master git pull voxl-docker -i voxl-cross:V2.7 ./install_build_deps.sh qrb5165 sdk-1.4 ./build.sh qrb5165 ./make_package.sh
here's a snippet
[ 60%] Building CXX object src/CMakeFiles/voxl-tflite-server.dir/model_helper/generic_object_detection_model_helper.cpp.o [ 66%] Building CXX object src/CMakeFiles/voxl-tflite-server.dir/model_helper/yolov5_model_helper.cpp.o [ 73%] Building CXX object src/CMakeFiles/voxl-tflite-server.dir/model_helper/posenet_model_helper.cpp.o [ 80%] Building CXX object src/CMakeFiles/voxl-tflite-server.dir/model_helper/yolov8_model_helper.cpp.o [ 86%] Building C object src/CMakeFiles/voxl-tflite-server.dir/resize.c.o [ 93%] Building CXX object src/CMakeFiles/voxl-tflite-server.dir/utils.cpp.o [100%] Linking CXX executable voxl-tflite-server /usr/lib64//libtensorflow-lite.a(nnapi_delegate.cc.o): In function `tflite::delegate::nnapi::NNMemory::NNMemory(NnApi const*, char const*, unsigned long)': nnapi_delegate.cc:(.text+0xd58): warning: the use of `tmpnam' is dangerous, better use `mkstemp' [100%] Built target voxl-tflite-server voxl-cross(2.7):~(master)(0.4.1)$ ls CHANGELOG build include scripts CMakeLists.txt build.sh install_build_deps.sh services LICENSE clean.sh make_package.sh src README.md debug_source.sh misc_files bash_completions deploy_to_voxl.sh pkg voxl-cross(2.7):~(master)(0.4.1)$ ./make_package.sh Package Name: voxl-tflite-server version Number: 0.4.1 Consolidate compiler generated dependencies of target voxl-tflite-server [100%] Built target voxl-tflite-server Install the project... -- Install configuration: "DEBUG" -- Installing: ../pkg/data/usr/bin/voxl-tflite-server /home/root starting building Debian Package dpkg-deb: building package 'voxl-tflite-server' in 'voxl-tflite-server_0.4.1_arm64.deb'. DONE
-
@tom Thank you so much. It is working now with your suggestion. I think the README file of voxl-tflite-server need to be updated.