找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 2054|回复: 8

sdk编译ipk出现错误,请教高手怎么 解决?

[复制链接]
        百度过 ,也 有 同样情况的 ,但 没给出解决办法,请 高手支援一下!!!

libv4l2rds.c:1190:3: error: 'for' loop initial declarations are only allowed in C99 mode
   for (int i = 0; i < 4; i++) {
   ^
make[6]: *** [libv4l2rds_la-libv4l2rds.lo] Error 1
make[6]: Leaving directory `/home/rxy/PandoraBox-SDK-ralink-mt7621_gcc-4.8-linaro_uClibc-1.0.x.Linux-x86_64/build_dir/target-mipsel_1004kc+dsp_uClibc-1.0.x/v4l-utils-1.10.0/lib/libv4l2rds'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/home/rxy/PandoraBox-SDK-ralink-mt7621_gcc-4.8-linaro_uClibc-1.0.x.Linux-x86_64/build_dir/target-mipsel_1004kc+dsp_uClibc-1.0.x/v4l-utils-1.10.0/lib'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/rxy/PandoraBox-SDK-ralink-mt7621_gcc-4.8-linaro_uClibc-1.0.x.Linux-x86_64/build_dir/target-mipsel_1004kc+dsp_uClibc-1.0.x/v4l-utils-1.10.0'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/rxy/PandoraBox-SDK-ralink-mt7621_gcc-4.8-linaro_uClibc-1.0.x.Linux-x86_64/build_dir/target-mipsel_1004kc+dsp_uClibc-1.0.x/v4l-utils-1.10.0'
make[2]: *** [/home/rxy/PandoraBox-SDK-ralink-mt7621_gcc-4.8-linaro_uClibc-1.0.x.Linux-x86_64/build_dir/target-mipsel_1004kc+dsp_uClibc-1.0.x/v4l-utils-1.10.0/.built] Error 2
make[2]: Leaving directory `/home/rxy/PandoraBox-SDK-ralink-mt7621_gcc-4.8-linaro_uClibc-1.0.x.Linux-x86_64/feeds/packages/libs/libv4l'
make[1]: *** [package/feeds/packages/libv4l/compile] Error 2
make[1]: Leaving directory `/home/rxy/PandoraBox-SDK-ralink-mt7621_gcc-4.8-linaro_uClibc-1.0.x.Linux-x86_64'
make: *** [package/mjpg-streamer/compile] 错误 2
rxy@rxy-laptop:~/PandoraBox-SDK-ralink-mt7621_gcc-4.8-linaro_uClibc-1.0.x.Linux-x86_64$




编译时加上-std=gnu99
回复

使用道具 举报

 楼主| | 显示全部楼层
ekenchan 发表于 2018-3-1 18:45
编译时加上-std=gnu99

加什么地方?
回复

使用道具 举报

来自手机 | 显示全部楼层
Makefile。   
回复

使用道具 举报

sdk比起完整编译有时候会出现问题,另外编译器版本也有影响
回复

使用道具 举报


加在CFLAGS里
回复

使用道具 举报

潘多拉的sdk没有feed,要自行添加
回复

使用道具 举报

 楼主| | 显示全部楼层
lcsuper 发表于 2018-3-2 13:48
潘多拉的sdk没有feed,要自行添加

我 添加了 ,试着编了 个ngrok成功了 ,但是我 想编译一个支持uvc的mjpg-streamer就出现了上面的错误,编译zerotier也出错了,折腾啊
回复

使用道具 举报

 楼主| 来自手机 | 显示全部楼层
还是没成功………………
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-5-18 00:19

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表