• OpenMV VSCode 扩展发布了,在插件市场直接搜索OpenMV就可以安装
  • 如果有产品硬件故障问题,比如无法开机,论坛很难解决。可以直接找售后维修
  • 发帖子之前,请确认看过所有的视频教程,https://singtown.com/learn/ 和所有的上手教程http://book.openmv.cc/
  • 每一个新的提问,单独发一个新帖子
  • 帖子需要目的,你要做什么?
  • 如果涉及代码,需要报错提示全部代码文本,请注意不要贴代码图片
  • 必看:玩转星瞳论坛了解一下图片上传,代码格式等问题。
  • 按照教程编译固件时出错?



    • 0_1734154127284_屏幕截图 2024-12-14 132235.png
      Ubuntu版本是18.04
      不是在GitHub上pull的仓库,是下载官网的文件进行编译的

      ../../lib/berkeley-db-1.xx/PORT/include/db.h:1:1: error: expected identifier or '(' before '.' token
       ../../include/db.h
       ^
      In file included from ../../lib/berkeley-db-1.xx/btree/bt_conv.c:45:0:
      ../../lib/berkeley-db-1.xx/PORT/include/db.h:1:1: error: expected identifier or '(' before '.' token
       ../../include/db.h
       ^
      In file included from ../../lib/berkeley-db-1.xx/btree/bt_search.c:45:0:
      ../../lib/berkeley-db-1.xx/PORT/include/db.h:1:1: error: expected identifier or '(' before '.' token
       ../../include/db.h
       ^
      In file included from ../../lib/berkeley-db-1.xx/btree/bt_get.c:47:0:
      ../../lib/berkeley-db-1.xx/PORT/include/db.h:1:1: error: expected identifier or '(' before '.' token
       ../../include/db.h
       ^
      In file included from ../../lib/berkeley-db-1.xx/btree/bt_search.c:46:0:
      ../../lib/berkeley-db-1.xx/btree/btree.h:89:3: error: data definition has no type or storage class [-Werror]
       } PAGE;
         ^~~~
      In file included from ../../lib/berkeley-db-1.xx/btree/bt_get.c:48:0:
      ../../lib/berkeley-db-1.xx/btree/btree.h:89:3: error: data definition has no type or storage class [-Werror]
       } PAGE;
         ^~~~
      In file included from ../../lib/berkeley-db-1.xx/btree/bt_page.c:43:0:
      ../../lib/berkeley-db-1.xx/btree/btree.h:89:3: error: data definition has no type or storage class [-Werror]
       } PAGE;
         ^~~~
      In file included from ../../lib/berkeley-db-1.xx/btree/bt_conv.c:46:0:
      ../../lib/berkeley-db-1.xx/btree/btree.h:89:3: error: data definition has no type or storage class [-Werror]
       } PAGE;
         ^~~~
      ../../lib/berkeley-db-1.xx/btree/btree.h:89:3: error: type defaults to 'int' in declaration of 'PAGE' [-Werror=implicit-int]
      ../../lib/berkeley-db-1.xx/btree/btree.h:89:3: error: type defaults to 'int' in declaration of 'PAGE' [-Werror=implicit-int]
      ../../lib/berkeley-db-1.xx/btree/btree.h:89:3: error: type defaults to 'int' in declaration of 'PAGE' [-Werror=implicit-int]
      ../../lib/berkeley-db-1.xx/btree/btree.h:89:3: error: type defaults to 'int' in declaration of 'PAGE' [-Werror=implicit-int]
      ../../lib/berkeley-db-1.xx/btree/btree.h:127:2: error: unknown type name 'pgno_t'
        pgno_t pgno;   /* page number stored on */
        ^~~~~~
      ../../lib/berkeley-db-1.xx/btree/btree.h:127:2: error: unknown type name 'pgno_t'
        pgno_t pgno;   /* page number stored on */
        ^~~~~~
      ../../lib/berkeley-db-1.xx/btree/btree.h:127:2: error: unknown type name 'pgno_t'
        pgno_t pgno;   /* page number stored on */
        ^~~~~~
      ../../lib/berkeley-db-1.xx/btree/btree.h:127:2: error: unknown type name 'pgno_t'
        pgno_t pgno;   /* page number stored on */
        ^~~~~~
      ../../lib/berkeley-db-1.xx/btree/btree.h:157:2: error: unknown type name 'recno_t'
        recno_t nrecs;   /* number of records */
        ^~~~~~~
      ../../lib/berkeley-db-1.xx/btree/btree.h:158:2: error: unknown type name 'pgno_t'
        pgno_t pgno;   /* page number stored below */
        ^~~~~~
      ../../lib/berkeley-db-1.xx/btree/btree.h:157:2: error: unknown type name 'recno_t'
      


    • 已经解决了,原来是window里的文件被直接拖入Linux中会损坏,在Ubuntu用命令行下载解压可以正常