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

ModalAI Forum

  1. ModalAI Support Forum
  2. Software Development
  3. CMake errors on open example

CMake errors on open example

Scheduled Pinned Locked Moved Software Development
4 Posts 2 Posters 915 Views 2 Watching
  • 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.
  • S Offline
    S Offline
    shlee853
    Regular
    wrote on last edited by
    #1

    I'm trying to build april-tag-detect examples for opencv on VOXL.

    Actually this examples is based on opencv 3.4, but, I updated version to 4.2.

    https://gitlab.com/voxl-public/core-libs/voxl-opencv

    It fails on build because of missing f package.

    yocto:~/opencv/examples/april-tag-detect$ cmake CMakeLists.txt 
    -- The C compiler identification is GNU 4.9.3
    -- The CXX compiler identification is GNU 4.9.3
    -- Check for working C compiler: /usr/bin/cc
    -- Check for working C compiler: /usr/bin/cc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Check for working CXX compiler: /usr/bin/c++
    -- Check for working CXX compiler: /usr/bin/c++ -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    CMake Error at CMakeLists.txt:4 (find_package):
      By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH this project has
      asked CMake to find a package configuration file provided by "OpenCV", but
      CMake did not find one.
    
      Could not find a package configuration file provided by "OpenCV" with any
      of the following names:
    
        OpenCVConfig.cmake
        opencv-config.cmake
    
      Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set
      "OpenCV_DIR" to a directory containing one of the above files.  If "OpenCV"
      provides a separate development package or SDK, be sure it has been
      installed.
    
    
    -- Configuring incomplete, errors occurred!
    See also "/home/root/opencv/examples/april-tag-detect/CMakeFiles/CMakeOutput.log".
    yocto:~/opencv/examples/april-tag-detect$ 
    

    Could you please let me know advice to find opencv package on VOXL?

    thanks,

    1 Reply Last reply
    0
    • Chad SweetC Offline
      Chad SweetC Offline
      Chad Sweet
      ModalAI Team
      wrote on last edited by
      #2

      4.5 is hosted here
      http://voxl-packages.modalai.com/stable/

      S 1 Reply Last reply
      0
      • Chad SweetC Chad Sweet

        4.5 is hosted here
        http://voxl-packages.modalai.com/stable/

        S Offline
        S Offline
        shlee853
        Regular
        wrote on last edited by shlee853
        #3

        @Chad-Sweet I'm not compiling opencv libraries.

        as you know above scripts, I has some errors on building examples for opencv.

        I think it can't find FindOpenCV.cmake file during compiling.

        Thanks,

        1 Reply Last reply
        0
        • Chad SweetC Offline
          Chad SweetC Offline
          Chad Sweet
          ModalAI Team
          wrote on last edited by
          #4

          This cmake file has a good example of finding OpenCV libs using cmake

          https://gitlab.com/voxl-public/core-libs/libmodal_exposure/-/blob/master/library/CMakeLists.txt

          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

          • Don't have an account? Register

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