ModalAI Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    voxl-tflite-server build failed

    VOXL SDK
    tflite-server
    2
    7
    36
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • WondosenW
      Wondosen
      last edited by

      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.

      tflite-build-error.png

      tomT 1 Reply Last reply Reply Quote 0
      • tomT
        tom admin @Wondosen
        last edited by

        @Wondosen How are you running ./install_build_deps.sh?

        WondosenW 2 Replies Last reply Reply Quote 0
        • WondosenW
          Wondosen @tom
          last edited by Wondosen

          @tom yes I did

          ./install_build_deps.sh qrb5165 dev
          
          1 Reply Last reply Reply Quote 0
          • WondosenW
            Wondosen @tom
            last edited by

            @tom for running, ./build.sh qrb5165

            tomT 1 Reply Last reply Reply Quote 0
            • tomT
              tom admin @Wondosen
              last edited by

              @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

              tomT 1 Reply Last reply Reply Quote 0
              • tomT
                tom admin @tom
                last edited by

                @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
                
                
                WondosenW 1 Reply Last reply Reply Quote 0
                • WondosenW
                  Wondosen @tom
                  last edited by

                  @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.

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Powered by NodeBB | Contributors