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

ModalAI Forum

  1. ModalAI Support Forum
  2. Software Development
  3. Modal Pipe Architecture (MPA)
  4. voxl-tflite-server dev branch build failing

voxl-tflite-server dev branch build failing

Scheduled Pinned Locked Moved Modal Pipe Architecture (MPA)
4 Posts 2 Posters 1.6k 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

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          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

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