Advertisement
Guest User

compilation error motion

a guest
Jul 31st, 2015
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.32 KB | None | 0 0
  1. Welcome to the setup procedure for Motion, the motion detection daemon! If you get
  2. error messages during this procedure, please report them to the mailing list. The
  3. Motion Guide contains all information you should need to get Motion up and running.
  4. Run "make updateguide" to download the latest version of the Motion Guide.
  5.  
  6. Version: 3.2.12
  7. Platform: Linux (if this is incorrect, please read README.FreeBSD)
  8.  
  9. Generating dependencies, please wait...
  10.  
  11. Compiling Motion object files...
  12. --------------------------------------------------------------------------------
  13. gcc -g -O2 -D_REENTRANT -DMOTION_V4L2 -DTYPE_32BIT="int" -DHAVE_BSWAP -Wall -DVERSION=\"3.2.12\" -Dsysconfdir=\"/usr/local/etc\" -c -o motion.o motion.c
  14. gcc -g -O2 -D_REENTRANT -DMOTION_V4L2 -DTYPE_32BIT="int" -DHAVE_BSWAP -Wall -DVERSION=\"3.2.12\" -Dsysconfdir=\"/usr/local/etc\" -c -o conf.o conf.c
  15. gcc -g -O2 -D_REENTRANT -DMOTION_V4L2 -DTYPE_32BIT="int" -DHAVE_BSWAP -Wall -DVERSION=\"3.2.12\" -Dsysconfdir=\"/usr/local/etc\" -c -o draw.o draw.c
  16. gcc -g -O2 -D_REENTRANT -DMOTION_V4L2 -DTYPE_32BIT="int" -DHAVE_BSWAP -Wall -DVERSION=\"3.2.12\" -Dsysconfdir=\"/usr/local/etc\" -c -o jpegutils.o jpegutils.c
  17. jpegutils.c: In function 'decode_jpeg_gray_raw':
  18. jpegutils.c:777:20: warning: variable 'hsf' set but not used [-Wunused-but-set-variable]
  19. int numfields, hsf[3], field, yl, yc, xsl, xsc, xs, xd, hdown;
  20. ^
  21. gcc -g -O2 -D_REENTRANT -DMOTION_V4L2 -DTYPE_32BIT="int" -DHAVE_BSWAP -Wall -DVERSION=\"3.2.12\" -Dsysconfdir=\"/usr/local/etc\" -c -o video.o video.c
  22. video.c: In function 'v4l_picture_controls':
  23. video.c:26:26: error: storage size of 'vid_pic' isn't known
  24. struct video_picture vid_pic;
  25. ^
  26. video.c:31:24: error: 'VIDIOCGPICT' undeclared (first use in this function)
  27. if (ioctl(dev, VIDIOCGPICT, &vid_pic) == -1)
  28. ^
  29. video.c:31:24: note: each undeclared identifier is reported only once for each function it appears in
  30. video.c:121:24: error: 'VIDIOCSPICT' undeclared (first use in this function)
  31. if (ioctl(dev, VIDIOCSPICT, &vid_pic) == -1)
  32. ^
  33. video.c:26:26: warning: unused variable 'vid_pic' [-Wunused-variable]
  34. struct video_picture vid_pic;
  35. ^
  36. video.c: In function 'v4l_start':
  37. video.c:137:29: error: storage size of 'vid_caps' isn't known
  38. struct video_capability vid_caps;
  39. ^
  40. video.c:138:26: error: storage size of 'vid_chnl' isn't known
  41. struct video_channel vid_chnl;
  42. ^
  43. video.c:139:24: error: storage size of 'vid_tuner' isn't known
  44. struct video_tuner vid_tuner;
  45. ^
  46. video.c:140:23: error: storage size of 'vid_buf' isn't known
  47. struct video_mbuf vid_buf;
  48. ^
  49. video.c:141:23: error: storage size of 'vid_mmap' isn't known
  50. struct video_mmap vid_mmap;
  51. ^
  52. video.c:144:21: error: 'VIDIOCGCAP' undeclared (first use in this function)
  53. if (ioctl (dev, VIDIOCGCAP, &vid_caps) == -1) {
  54. ^
  55. video.c:149:25: error: 'VID_TYPE_MONOCHROME' undeclared (first use in this function)
  56. if (vid_caps.type & VID_TYPE_MONOCHROME)
  57. ^
  58. video.c:153:37: error: invalid application of 'sizeof' to incomplete type 'struct video_channel'
  59. memset(&vid_chnl, 0, sizeof(struct video_channel));
  60. ^
  61. video.c:156:25: error: 'VIDIOCGCHAN' undeclared (first use in this function)
  62. if (ioctl (dev, VIDIOCGCHAN, &vid_chnl) == -1) {
  63. ^
  64. video.c:161:29: error: 'VIDIOCSCHAN' undeclared (first use in this function)
  65. if (ioctl (dev, VIDIOCSCHAN, &vid_chnl) == -1) {
  66. ^
  67. video.c:169:38: error: invalid application of 'sizeof' to incomplete type 'struct video_tuner'
  68. memset(&vid_tuner, 0, sizeof(struct video_tuner));
  69. ^
  70. video.c:171:25: error: 'VIDIOCGTUNER' undeclared (first use in this function)
  71. if (ioctl (dev, VIDIOCGTUNER, &vid_tuner) == -1) {
  72. ^
  73. video.c:174:35: error: 'VIDEO_TUNER_LOW' undeclared (first use in this function)
  74. if (vid_tuner.flags & VIDEO_TUNER_LOW) {
  75. ^
  76. video.c:180:28: error: 'VIDIOCSFREQ' undeclared (first use in this function)
  77. if (ioctl(dev, VIDIOCSFREQ, &freq) == -1) {
  78. ^
  79. video.c:190:21: error: 'VIDIOCGMBUF' undeclared (first use in this function)
  80. if (ioctl (dev, VIDIOCGMBUF, &vid_buf) == -1) {
  81. ^
  82. video.c:218:24: error: 'VIDIOCMCAPTURE' undeclared (first use in this function)
  83. if (ioctl(dev, VIDIOCMCAPTURE, &vid_mmap) == -1) {
  84. ^
  85. video.c:141:23: warning: unused variable 'vid_mmap' [-Wunused-variable]
  86. struct video_mmap vid_mmap;
  87. ^
  88. video.c:140:23: warning: unused variable 'vid_buf' [-Wunused-variable]
  89. struct video_mbuf vid_buf;
  90. ^
  91. video.c:139:24: warning: unused variable 'vid_tuner' [-Wunused-variable]
  92. struct video_tuner vid_tuner;
  93. ^
  94. video.c:138:26: warning: unused variable 'vid_chnl' [-Wunused-variable]
  95. struct video_channel vid_chnl;
  96. ^
  97. video.c:137:29: warning: unused variable 'vid_caps' [-Wunused-variable]
  98. struct video_capability vid_caps;
  99. ^
  100. video.c: In function 'v4l_next':
  101. video.c:299:23: error: storage size of 'vid_mmap' isn't known
  102. struct video_mmap vid_mmap;
  103. ^
  104. video.c:326:20: error: 'VIDIOCMCAPTURE' undeclared (first use in this function)
  105. if (ioctl(dev, VIDIOCMCAPTURE, &vid_mmap) == -1) {
  106. ^
  107. video.c:334:20: error: 'VIDIOCSYNC' undeclared (first use in this function)
  108. if (ioctl(dev, VIDIOCSYNC, &vid_mmap.frame) == -1) {
  109. ^
  110. video.c:299:23: warning: unused variable 'vid_mmap' [-Wunused-variable]
  111. struct video_mmap vid_mmap;
  112. ^
  113. video.c: In function 'v4l_set_input':
  114. video.c:361:26: error: storage size of 'vid_chnl' isn't known
  115. struct video_channel vid_chnl;
  116. ^
  117. video.c:362:24: error: storage size of 'vid_tuner' isn't known
  118. struct video_tuner vid_tuner;
  119. ^
  120. video.c:369:42: error: invalid application of 'sizeof' to incomplete type 'struct video_tuner'
  121. memset(&vid_tuner, 0, sizeof(struct video_tuner));
  122. ^
  123. video.c:372:29: error: 'VIDIOCGTUNER' undeclared (first use in this function)
  124. if (ioctl (dev, VIDIOCGTUNER, &vid_tuner) == -1) {
  125. ^
  126. video.c:375:39: error: 'VIDEO_TUNER_LOW' undeclared (first use in this function)
  127. if (vid_tuner.flags & VIDEO_TUNER_LOW)
  128. ^
  129. video.c:381:32: error: 'VIDIOCSFREQ' undeclared (first use in this function)
  130. if (ioctl(dev, VIDIOCSFREQ, &frequnits) == -1) {
  131. ^
  132. video.c:388:37: error: invalid application of 'sizeof' to incomplete type 'struct video_channel'
  133. memset(&vid_chnl, 0, sizeof(struct video_channel));
  134. ^
  135. video.c:391:25: error: 'VIDIOCGCHAN' undeclared (first use in this function)
  136. if (ioctl (dev, VIDIOCGCHAN, &vid_chnl) == -1) {
  137. ^
  138. video.c:396:29: error: 'VIDIOCSCHAN' undeclared (first use in this function)
  139. if (ioctl (dev, VIDIOCSCHAN, &vid_chnl) == -1) {
  140. ^
  141. video.c:362:24: warning: unused variable 'vid_tuner' [-Wunused-variable]
  142. struct video_tuner vid_tuner;
  143. ^
  144. video.c:361:26: warning: unused variable 'vid_chnl' [-Wunused-variable]
  145. struct video_channel vid_chnl;
  146. ^
  147. video.c: In function 'v4l_open_vidpipe':
  148. video.c:445:15: warning: variable 'ostatus' set but not used [-Wunused-but-set-variable]
  149. char *ostatus;
  150. ^
  151. video.c:441:15: warning: variable 'loop' set but not used [-Wunused-but-set-variable]
  152. char *loop;
  153. ^
  154. video.c: In function 'v4l_startpipe':
  155. video.c:567:26: error: storage size of 'vid_pic' isn't known
  156. struct video_picture vid_pic;
  157. ^
  158. video.c:568:25: error: storage size of 'vid_win' isn't known
  159. struct video_window vid_win;
  160. ^
  161. video.c:578:20: error: 'VIDIOCGPICT' undeclared (first use in this function)
  162. if (ioctl(dev, VIDIOCGPICT, &vid_pic) == -1) {
  163. ^
  164. video.c:585:20: error: 'VIDIOCSPICT' undeclared (first use in this function)
  165. if (ioctl(dev, VIDIOCSPICT, &vid_pic) == -1) {
  166. ^
  167. video.c:590:20: error: 'VIDIOCGWIN' undeclared (first use in this function)
  168. if (ioctl(dev, VIDIOCGWIN, &vid_win) == -1) {
  169. ^
  170. video.c:598:20: error: 'VIDIOCSWIN' undeclared (first use in this function)
  171. if (ioctl(dev, VIDIOCSWIN, &vid_win) == -1) {
  172. ^
  173. video.c:568:25: warning: unused variable 'vid_win' [-Wunused-variable]
  174. struct video_window vid_win;
  175. ^
  176. video.c:567:26: warning: unused variable 'vid_pic' [-Wunused-variable]
  177. struct video_picture vid_pic;
  178. ^
  179. make: *** [video.o] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement