Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

  1. ModalAI Support Forum
  2. VOXL SDK and Software
  3. voxl-tflite-server dev branch build failing

voxl-tflite-server dev branch build failing

Scheduled Pinned Locked Moved Unsolved VOXL SDK and Software
mpa
4 Posts 2 Posters 1.7k Views
  • 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.
  • Philemon BennerP Offline
    Philemon BennerP Offline
    Philemon Benner
    Regular
    wrote on last edited by
    #1

    @Matt-Turi
    Hey i've been working on a custom tflite-server version with the tflite-server dev branch. Since yesterday i am suddenly getting a build error when trying to compile in voxl-cross. I think it's an issue with latest voxl-opencv commit(6cf30d47), because it complains about opencv2 not being present. Installation of packages was succesfull via ./install_build_deps.sh.
    Compile Error:

    voxl-cross:~(dev)$ ./build.sh 820
    -- The C compiler identification is GNU 4.9.3
    -- The CXX compiler identification is GNU 4.9.3
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working C compiler: /usr/bin/aarch64-linux-gnu-gcc-4.9 - skipped
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Check for working CXX compiler: /usr/bin/aarch64-linux-gnu-g++-4.9 - skipped
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/root/build64
    [ 75%] Building C object src/CMakeFiles/voxl-tflite-server.dir/resize.c.o
    [ 75%] Building CXX object src/CMakeFiles/voxl-tflite-server.dir/inference_helper.cpp.o
    [ 75%] Building CXX object src/CMakeFiles/voxl-tflite-server.dir/main.cpp.o
    In file included from /usr/aarch64-linux-gnu-2.23/include/features.h:367:0,
                     from /usr/aarch64-linux-gnu-2.23/include/stdio.h:27,
                     from /home/root/src/resize.c:1:
    /usr/aarch64-linux-gnu-2.23/include/bits/stdlib.h:64:8: warning: no previous declaration for 'ptsname_r' [-Wmissing-declarations]
     __NTH (ptsname_r (int __fd, char *__buf, size_t __buflen))
            ^
    /usr/aarch64-linux-gnu-2.23/include/sys/cdefs.h:57:59: note: in definition of macro '__NTH'
     #  define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct
                                                               ^
    In file included from /home/root/src/inference_helper.cpp:34:0:
    /home/root/src/../include/inference_helper.h:7:30: fatal error: opencv2/opencv.hpp: No such file or directory
     #include <opencv2/opencv.hpp>
                                  ^
    compilation terminated.
    In file included from /home/root/src/main.cpp:47:0:
    /home/root/src/../include/inference_helper.h:7:30: fatal error: opencv2/opencv.hpp: No such file or directory
     #include <opencv2/opencv.hpp>
                                  ^
    compilation terminated.
    src/CMakeFiles/voxl-tflite-server.dir/build.make:75: recipe for target 'src/CMakeFiles/voxl-tflite-server.dir/inference_helper.cpp.o' failed
    make[2]: *** [src/CMakeFiles/voxl-tflite-server.dir/inference_helper.cpp.o] Error 1
    make[2]: *** Waiting for unfinished jobs....
    src/CMakeFiles/voxl-tflite-server.dir/build.make:89: recipe for target 'src/CMakeFiles/voxl-tflite-server.dir/main.cpp.o' failed
    make[2]: *** [src/CMakeFiles/voxl-tflite-server.dir/main.cpp.o] Error 1
    CMakeFiles/Makefile2:97: recipe for target 'src/CMakeFiles/voxl-tflite-server.dir/all' failed
    make[1]: *** [src/CMakeFiles/voxl-tflite-server.dir/all] Error 2
    Makefile:135: recipe for target 'all' failed
    make: *** [all] Error 2
    
    1 Reply Last reply
    0
    • Philemon BennerP Offline
      Philemon BennerP Offline
      Philemon Benner
      Regular
      wrote on last edited by
      #2

      Also a nice thing to add is this to build.sh:

      trap 'err=$?; echo >&2 "Exiting on error $err"; exit $err' ERR
      

      It exits directly after make installation fails.

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        @Philemon-Benner thanks for pointing this out, just fixed with commit c75b7b91.

        1 Reply Last reply
        0
        • Philemon BennerP Offline
          Philemon BennerP Offline
          Philemon Benner
          Regular
          wrote on last edited by
          #4

          @Matt-Turi Thank you

          1 Reply Last reply
          0

          Reading along? Create a free ModalAI Forum account to join in.

          With an account you can reply, ask your own question, get an email when a ModalAI engineer answers, and mark the reply that solved it. Your place in each thread is saved between visits.

          Questions about VOXL, Flight Core, ESCs and ModalAI drones are answered here by the engineers who build them.

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          ModalAI
          Categories Recent Tags ModalAI.com Docs
          © 2026 ModalAI® · Accelerating autonomy for smaller, smarter, safer drones · Powered by NodeBB
          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups