Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    在板子上跑不了调用OpenCV的程序

    V Series
    4
    8
    2665
    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.
    • H
      H2631436132 LV 5 last edited by

      我写了个OpenCV的测试程序,跑不起来,大佬们知道是哪里有问题吗
      3d959f7b-b669-40fd-aefb-8b7a2bd43e49-image.png
      这是源代码

      f2ef8593-99c5-424f-bc0c-5d2749ba66b9-image.png
      cmakelists

      fd6ab270-b100-4403-bc99-4f0578dde718-image.png
      板子上跑报错

      7746cda9-b9b2-4109-9dc0-e0b7225ce142-image.png
      板子上有OpenCV动态链接库

      65f7112c-3785-42dd-a6b1-d1e990b2dd45-image.png
      编译输出的OpenCV版本信息

      bc423e5c-f748-43e0-b4e0-551a0e288277-image.png
      板子的环境变量

      H 1 Reply Last reply Reply Quote Share 0
      • H
        H2631436132 LV 5 @H2631436132 last edited by

        @h2631436132
        OpenCV是直接下载的大佬的编译包
        makefile文件如下
        21b10317-31f0-443e-a181-7251459f0935-image.png
        76becb58-f117-4c2b-81c2-97f52c3f2b94-image.png

        1 Reply Last reply Reply Quote Share 0
        • WhycanService
          WhycanService LV 8 last edited by

          把higui给disable了,没有xwindow不能用opencv的higui

          H 1 Reply Last reply Reply Quote Share 0
          • H
            H2631436132 LV 5 @WhycanService last edited by

            @whycanservice
            主要原因是没有gtk支持,不知道怎么解决

            1 Reply Last reply Reply Quote Share 0
            • X
              xskj_qz LV 3 last edited by

              imshow和waitkey注释掉就行了,你没有界面怎么显示呢

              H 1 Reply Last reply Reply Quote Share 0
              • H
                H2631436132 LV 5 @xskj_qz last edited by

                @xskj_qz
                我要解决的不是跑通这个代码,是怎么给开发板增加gtk支持。不然编译上去的OpenCV不仅显示不了,用它的库调用摄像头也打不开。
                我自己尝试编译了一下gtk,./configure生成Makefile失败
                b9ca59a5-92aa-430d-b1f8-3fa50137e7e5-image.png
                这个libX11我已经交叉编译好了,还是报这个错
                fb4b731f-bc19-46d4-bc38-f92b219441bf-image.png
                加载了libX11的lib和include
                372a110b-fd7e-4e93-8ed6-6b07b0d3f10b-image.png
                150c154b-9f6b-4d4e-86fd-9217d0a3f1ff-image.png

                H 1 Reply Last reply Reply Quote Share 0
                • H
                  H2631436132 LV 5 @H2631436132 last edited by

                  This post is deleted!
                  1 Reply Last reply Reply Quote Share 0
                  • L
                    lingzhi12321 LV 5 last edited by

                    你好,请问问题解决了吗?

                    1 Reply Last reply Reply Quote Share 0
                    • 1 / 1
                    • First post
                      Last post

                    Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

                    行为准则 | 用户协议 | 隐私权政策