交叉编译mjpeg streamer on RT5350(不成功)

今天在捣鼓一下mjpeg streamer,交叉编译死活不成功。而编译arm平台却很顺利,一口气成功。而RT5350的mips平台却不成功,让人十分费解。原因尚未找到

明天继续...

[root@localhost mjpg-streamer-r63]# make
mipsel-linux-gcc -O2 -DLINUX -D_GNU_SOURCE -Wall   -c -o mjpg_streamer.o mjpg_streamer.c
mipsel-linux-gcc -O2 -DLINUX -D_GNU_SOURCE -Wall   -c -o utils.o utils.c
mipsel-linux-gcc -O2 -DLINUX -D_GNU_SOURCE -Wall -lpthread -ldl mjpg_streamer.o utils.o -o mjpg_streamer
chmod 755 mjpg_streamer
make -C plugins/input_uvc all
make[1]: Entering directory `/home/rt5350/usbcam/mjpg-streamer-r63/plugins/input_uvc'
mipsel-linux-gcc -c -O2 -DLINUX -D_GNU_SOURCE -Wall -shared -fPIC -I/home/rt5350/usbcam/jpeglib/include -o v4l2uvc.lo v4l2uvc.c
In file included from uvcvideo.h:32,
                 from v4l2uvc.h:36,
                 from v4l2uvc.c:27:
uvc_compat.h:140: error: field `min' has incomplete type
uvc_compat.h:141: error: field `max' has incomplete type
uvc_compat.h:142: error: field `step' has incomplete type
uvc_compat.h:154: error: field `discrete' has incomplete type
In file included from v4l2uvc.h:36,
                 from v4l2uvc.c:27:
uvcvideo.h:102: error: field `v4l2_type' has incomplete type
In file included from v4l2uvc.c:27:
v4l2uvc.h:45: error: field `cap' has incomplete type
v4l2uvc.h:46: error: field `fmt' has incomplete type
v4l2uvc.h:47: error: field `buf' has incomplete type
v4l2uvc.h:48: error: field `rb' has incomplete type
v4l2uvc.c: In function `init_videoIn':
v4l2uvc.c:64: error: `V4L2_PIX_FMT_MJPEG' undeclared (first use in this function)
v4l2uvc.c:64: error: (Each undeclared identifier is reported only once
v4l2uvc.c:64: error: for each function it appears in.)
v4l2uvc.c:71: error: `V4L2_PIX_FMT_YUYV' undeclared (first use in this function)
v4l2uvc.c: In function `init_v4l2':
v4l2uvc.c:101: error: invalid application of `sizeof' to incomplete type `v4l2_capability' 
v4l2uvc.c:102: error: `VIDIOC_QUERYCAP' undeclared (first use in this function)
v4l2uvc.c:108: error: `V4L2_CAP_VIDEO_CAPTURE' undeclared (first use in this function)
v4l2uvc.c:115: error: `V4L2_CAP_STREAMING' undeclared (first use in this function)
v4l2uvc.c:120: error: `V4L2_CAP_READWRITE' undeclared (first use in this function)
v4l2uvc.c:129: error: invalid application of `sizeof' to incomplete type `v4l2_format' 
v4l2uvc.c:130: error: `V4L2_BUF_TYPE_VIDEO_CAPTURE' undeclared (first use in this function)
v4l2uvc.c:134: error: `V4L2_FIELD_ANY' undeclared (first use in this function)
v4l2uvc.c:135: error: `VIDIOC_S_FMT' undeclared (first use in this function)
v4l2uvc.c:156: error: invalid application of `sizeof' to incomplete type `v4l2_streamparm' 
v4l2uvc.c:157: error: invalid application of `sizeof' to incomplete type `v4l2_streamparm' 
v4l2uvc.c:158: error: dereferencing pointer to incomplete type
v4l2uvc.c:159: error: dereferencing pointer to incomplete type
v4l2uvc.c:160: error: dereferencing pointer to incomplete type
v4l2uvc.c:161: error: `VIDIOC_S_PARM' undeclared (first use in this function)
v4l2uvc.c:166: error: invalid application of `sizeof' to incomplete type `v4l2_requestbuffers' 
v4l2uvc.c:169: error: `V4L2_MEMORY_MMAP' undeclared (first use in this function)
v4l2uvc.c:171: error: `VIDIOC_REQBUFS' undeclared (first use in this function)
v4l2uvc.c:181: error: invalid application of `sizeof' to incomplete type `v4l2_buffer' 
v4l2uvc.c:185: error: `VIDIOC_QUERYBUF' undeclared (first use in this function)
v4l2uvc.c:209: error: invalid application of `sizeof' to incomplete type `v4l2_buffer' 
v4l2uvc.c:213: error: `VIDIOC_QBUF' undeclared (first use in this function)
v4l2uvc.c: In function `video_enable':
v4l2uvc.c:227: error: `V4L2_BUF_TYPE_VIDEO_CAPTURE' undeclared (first use in this function)
v4l2uvc.c:230: error: `VIDIOC_STREAMON' undeclared (first use in this function)
v4l2uvc.c: In function `video_disable':
v4l2uvc.c:241: error: `V4L2_BUF_TYPE_VIDEO_CAPTURE' undeclared (first use in this function)
v4l2uvc.c:244: error: `VIDIOC_STREAMOFF' undeclared (first use in this function)
v4l2uvc.c: In function `uvcGrab':
v4l2uvc.c:310: error: invalid application of `sizeof' to incomplete type `v4l2_buffer' 
v4l2uvc.c:311: error: `V4L2_BUF_TYPE_VIDEO_CAPTURE' undeclared (first use in this function)
v4l2uvc.c:312: error: `V4L2_MEMORY_MMAP' undeclared (first use in this function)
v4l2uvc.c:314: error: `VIDIOC_DQBUF' undeclared (first use in this function)
v4l2uvc.c:321: error: `V4L2_PIX_FMT_MJPEG' undeclared (first use in this function)
v4l2uvc.c:341: error: `V4L2_PIX_FMT_YUYV' undeclared (first use in this function)
v4l2uvc.c:353: error: `VIDIOC_QBUF' undeclared (first use in this function)
v4l2uvc.c: At top level:
v4l2uvc.c:386: warning: "struct v4l2_queryctrl" declared inside parameter list
v4l2uvc.c:386: warning: its scope is only this definition or declaration, which is probably not what you want
v4l2uvc.c: In function `isv4l2Control':
v4l2uvc.c:389: error: dereferencing pointer to incomplete type
v4l2uvc.c:390: error: `VIDIOC_QUERYCTRL' undeclared (first use in this function)
v4l2uvc.c:395: error: dereferencing pointer to incomplete type
v4l2uvc.c:395: error: `V4L2_CTRL_FLAG_DISABLED' undeclared (first use in this function)
v4l2uvc.c:400: error: dereferencing pointer to incomplete type
v4l2uvc.c:400: error: `V4L2_CTRL_TYPE_BOOLEAN' undeclared (first use in this function)
v4l2uvc.c:404: error: dereferencing pointer to incomplete type
v4l2uvc.c:404: error: `V4L2_CTRL_TYPE_INTEGER' undeclared (first use in this function)
v4l2uvc.c:408: error: dereferencing pointer to incomplete type
v4l2uvc.c: In function `v4l2GetControl':
v4l2uvc.c:413: error: storage size of 'queryctrl' isn't known
v4l2uvc.c:414: error: storage size of 'control_s' isn't known
v4l2uvc.c:422: error: `VIDIOC_G_CTRL' undeclared (first use in this function)
v4l2uvc.c:413: warning: unused variable `queryctrl'
v4l2uvc.c:414: warning: unused variable `control_s'
v4l2uvc.c: In function `v4l2SetControl':
v4l2uvc.c:430: error: storage size of 'control_s' isn't known
v4l2uvc.c:431: error: storage size of 'queryctrl' isn't known
v4l2uvc.c:446: error: `VIDIOC_S_CTRL' undeclared (first use in this function)
v4l2uvc.c:430: warning: unused variable `control_s'
v4l2uvc.c:431: warning: unused variable `queryctrl'
v4l2uvc.c: In function `v4l2UpControl':
v4l2uvc.c:455: error: storage size of 'control_s' isn't known
v4l2uvc.c:456: error: storage size of 'queryctrl' isn't known
v4l2uvc.c:476: error: `VIDIOC_S_CTRL' undeclared (first use in this function)
v4l2uvc.c:455: warning: unused variable `control_s'
v4l2uvc.c:456: warning: unused variable `queryctrl'
v4l2uvc.c: In function `v4l2DownControl':
v4l2uvc.c:489: error: storage size of 'control_s' isn't known
v4l2uvc.c:490: error: storage size of 'queryctrl' isn't known
v4l2uvc.c:510: error: `VIDIOC_S_CTRL' undeclared (first use in this function)
v4l2uvc.c:489: warning: unused variable `control_s'
v4l2uvc.c:490: warning: unused variable `queryctrl'
v4l2uvc.c: In function `v4l2ToggleControl':
v4l2uvc.c:524: error: storage size of 'control_s' isn't known
v4l2uvc.c:525: error: storage size of 'queryctrl' isn't known
v4l2uvc.c:538: error: `VIDIOC_S_CTRL' undeclared (first use in this function)
v4l2uvc.c:524: warning: unused variable `control_s'
v4l2uvc.c:525: warning: unused variable `queryctrl'
v4l2uvc.c: In function `v4l2ResetControl':
v4l2uvc.c:546: error: storage size of 'control_s' isn't known
v4l2uvc.c:547: error: storage size of 'queryctrl' isn't known
v4l2uvc.c:558: error: `VIDIOC_S_CTRL' undeclared (first use in this function)
v4l2uvc.c:546: warning: unused variable `control_s'
v4l2uvc.c:547: warning: unused variable `queryctrl'
make[1]: *** [v4l2uvc.lo] Error 1
make[1]: Leaving directory `/home/rt5350/usbcam/mjpg-streamer-r63/plugins/input_uvc'
make: *** [input_uvc.so] Error 2
[root@localhost mjpg-streamer-r63]# 



其中的差别只是将mipsel-linux-gcc和arm-linux-gcc了。莫非和编译器有关?




  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值