A problem when compiling
Posted: Mon Mar 23, 2009 1:35 am
When I run the "make" command I get these errors in SUSE 11. Any help would be greatly appreciated. Thanks, Drew.
Edit: Will Zm still run if I am runlevel 3? (Defaults to CLI)
Edit: Will Zm still run if I am runlevel 3? (Defaults to CLI)
Code: Select all
suveillance:/ZoneMinder-1.24.1 # make
make all-recursive
make[1]: Entering directory `/ZoneMinder-1.24.1'
Making all in src
make[2]: Entering directory `/ZoneMinder-1.24.1/src'
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zm_local_camera.o -MD -MP -MF .deps/zm_local_camera.Tpo -c -o zm_local_camera.o zm_local_camera.cpp
/usr/include/linux/videodev2.h:215: error: ‘__s32’ does not name a type
/usr/include/linux/videodev2.h:216: error: ‘__s32’ does not name a type
/usr/include/linux/videodev2.h:217: error: ‘__s32’ does not name a type
/usr/include/linux/videodev2.h:218: error: ‘__s32’ does not name a type
/usr/include/linux/videodev2.h:222: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:223: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:231: error: ‘__u8’ does not name a type
/usr/include/linux/videodev2.h:232: error: ‘__u8’ does not name a type
/usr/include/linux/videodev2.h:233: error: ‘__u8’ does not name a type
/usr/include/linux/videodev2.h:234: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:235: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:236: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:265: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:266: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:267: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:269: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:270: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:272: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:325: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:327: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:328: error: ‘__u8’ does not name a type
/usr/include/linux/videodev2.h:329: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:330: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:341: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:342: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:343: error: ‘__u8’ does not name a type
/usr/include/linux/videodev2.h:344: error: ‘__u8’ does not name a type
/usr/include/linux/videodev2.h:345: error: ‘__u8’ does not name a type
/usr/include/linux/videodev2.h:346: error: ‘__u8’ does not name a type
/usr/include/linux/videodev2.h:347: error: ‘__u8’ does not name a type
/usr/include/linux/videodev2.h:383: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:384: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:385: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:418: error: ‘__u16’ does not name a type
/usr/include/linux/videodev2.h:419: error: ‘__u16’ does not name a type
/usr/include/linux/videodev2.h:420: error: ‘__u16’ does not name a type
/usr/include/linux/videodev2.h:421: error: ‘__u16’ does not name a type
/usr/include/linux/videodev2.h:424: error: ‘__u16’ does not name a type
/usr/include/linux/videodev2.h:425: error: ‘__u16’ does not name a type
/usr/include/linux/videodev2.h:430: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:431: error: ‘__u8’ does not name a type
/usr/include/linux/videodev2.h:432: error: ‘__u8’ does not name a type
/usr/include/linux/videodev2.h:438: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:439: error: ‘__u16’ does not name a type
/usr/include/linux/videodev2.h:440: error: ‘__u16’ does not name a type
/usr/include/linux/videodev2.h:441: error: ‘__u8’ does not name a type
/usr/include/linux/videodev2.h:442: error: ‘__u8’ does not name a type
/usr/include/linux/videodev2.h:445: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:446: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:447: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:450: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:465: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:489: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:492: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:497: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:499: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:500: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:504: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:509: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:512: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:513: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:514: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:532: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:533: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:559: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:561: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:571: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:572: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:574: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:575: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:576: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:584: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:585: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:587: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:588: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:589: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:612: error: ‘__u64’ does not name a type
/usr/include/linux/videodev2.h:694: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:695: error: ‘v4l2_std_id’ does not name a type
/usr/include/linux/videodev2.h:696: error: ‘__u8’ does not name a type
/usr/include/linux/videodev2.h:698: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:699: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:708: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:709: error: ‘__u8’ does not name a type
/usr/include/linux/videodev2.h:710: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:711: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:712: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:713: error: ‘v4l2_std_id’ does not name a type
/usr/include/linux/videodev2.h:714: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:715: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:745: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:746: error: ‘__u8’ does not name a type
/usr/include/linux/videodev2.h:747: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:748: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:749: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:750: error: ‘v4l2_std_id’ does not name a type
/usr/include/linux/videodev2.h:751: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:763: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:764: error: ‘__s32’ does not name a type
/usr/include/linux/videodev2.h:770: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:772: error: ‘__u8’ does not name a type
/usr/include/linux/videodev2.h:773: error: ‘__s32’ does not name a type
/usr/include/linux/videodev2.h:774: error: ‘__s32’ does not name a type
/usr/include/linux/videodev2.h:775: error: ‘__s32’ does not name a type
/usr/include/linux/videodev2.h:776: error: ‘__s32’ does not name a type
/usr/include/linux/videodev2.h:777: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:778: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:784: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:785: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:786: error: ‘__u8’ does not name a type
/usr/include/linux/videodev2.h:787: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:830: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:831: error: ‘__u8’ does not name a type
/usr/include/linux/videodev2.h:833: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:834: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:835: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:836: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:837: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:838: error: ‘__s32’ does not name a type
/usr/include/linux/videodev2.h:839: error: ‘__s32’ does not name a type
/usr/include/linux/videodev2.h:840: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:845: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:846: error: ‘__u8’ does not name a type
/usr/include/linux/videodev2.h:847: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:848: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:849: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:850: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:851: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:878: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:880: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:881: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:889: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:890: error: ‘__u8’ does not name a type
/usr/include/linux/videodev2.h:891: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:892: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:893: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:904: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:905: error: ‘__u8’ does not name a type
/usr/include/linux/videodev2.h:906: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:907: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:908: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:921: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:922: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:923: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:924: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:925: error: ‘__s32’ does not name a type
/usr/include/linux/videodev2.h:926: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:927: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:928: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:945: error: ‘__u16’ does not name a type
/usr/include/linux/videodev2.h:950: error: ‘__u16’ does not name a type
/usr/include/linux/videodev2.h:951: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:952: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:965: error: ‘__u16’ does not name a type
/usr/include/linux/videodev2.h:970: error: ‘__u16’ does not name a type
/usr/include/linux/videodev2.h:971: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:976: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:977: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:978: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:979: error: ‘__u32’ does not name a type
/usr/include/linux/videodev2.h:980: error: ‘__u8’ does not name a type
/usr/include/linux/videodev2.h:1001: error: ‘__u8’ does not name a type
/usr/include/linux/videodev2.h:1015: error: ‘__u8’ does not name a type
zm_local_camera.cpp: In function ‘PixelFormat getFfPixFormatFromV4lPalette(int, int)’:
zm_local_camera.cpp:114: error: ‘V4L2_PIX_FMT_HM12’ was not declared in this scope
zm_local_camera.cpp:161: error: ‘PIX_FMT_VDPAU_H264’ was not declared in this scope
zm_local_camera.cpp:162: error: ‘PIX_FMT_VDPAU_MPEG1’ was not declared in this scope
zm_local_camera.cpp:163: error: ‘PIX_FMT_VDPAU_MPEG2’ was not declared in this scope
zm_local_camera.cpp:228: error: ‘PIX_FMT_VDPAU_H264’ was not declared in this scope
zm_local_camera.cpp:229: error: ‘PIX_FMT_VDPAU_MPEG1’ was not declared in this scope
zm_local_camera.cpp:230: error: ‘PIX_FMT_VDPAU_MPEG2’ was not declared in this scope
zm_local_camera.cpp: In member function ‘void LocalCamera::Initialise()’:
zm_local_camera.cpp:365: error: ‘struct v4l2_capability’ has no member named ‘capabilities’
zm_local_camera.cpp:368: error: ‘struct v4l2_capability’ has no member named ‘capabilities’
zm_local_camera.cpp:380: error: ‘struct v4l2_pix_format’ has no member named ‘width’
zm_local_camera.cpp:381: error: ‘struct v4l2_pix_format’ has no member named ‘height’
zm_local_camera.cpp:382: error: ‘struct v4l2_pix_format’ has no member named ‘pixelformat’
zm_local_camera.cpp:393: error: ‘struct v4l2_pix_format’ has no member named ‘width’
zm_local_camera.cpp:394: error: ‘struct v4l2_pix_format’ has no member named ‘bytesperline’
zm_local_camera.cpp:395: error: ‘struct v4l2_pix_format’ has no member named ‘bytesperline’
zm_local_camera.cpp:396: error: ‘struct v4l2_pix_format’ has no member named ‘bytesperline’
zm_local_camera.cpp:396: error: ‘struct v4l2_pix_format’ has no member named ‘height’
zm_local_camera.cpp:397: error: ‘struct v4l2_pix_format’ has no member named ‘sizeimage’
zm_local_camera.cpp:398: error: ‘struct v4l2_pix_format’ has no member named ‘sizeimage’
zm_local_camera.cpp:405: error: ‘struct v4l2_requestbuffers’ has no member named ‘count’
zm_local_camera.cpp:407: error: ‘struct v4l2_requestbuffers’ has no member named ‘count’
zm_local_camera.cpp:409: error: ‘struct v4l2_requestbuffers’ has no member named ‘count’
zm_local_camera.cpp:425: error: ‘struct v4l2_requestbuffers’ has no member named ‘count’
zm_local_camera.cpp:426: error: ‘struct v4l2_requestbuffers’ has no member named ‘count’
zm_local_camera.cpp:428: error: ‘struct v4l2_requestbuffers’ has no member named ‘count’
zm_local_camera.cpp:430: error: ‘struct v4l2_requestbuffers’ has no member named ‘count’
zm_local_camera.cpp:432: error: ‘struct v4l2_requestbuffers’ has no member named ‘count’
zm_local_camera.cpp:434: error: ‘struct v4l2_requestbuffers’ has no member named ‘count’
zm_local_camera.cpp:444: error: ‘struct v4l2_buffer’ has no member named ‘index’
zm_local_camera.cpp:449: error: ‘struct v4l2_buffer’ has no member named ‘length’
zm_local_camera.cpp:450: error: ‘struct v4l2_buffer’ has no member named ‘length’
zm_local_camera.cpp:450: error: ‘union v4l2_buffer::<anonymous>’ has no member named ‘offset’
zm_local_camera.cpp:453: error: ‘struct v4l2_buffer’ has no member named ‘length’
zm_local_camera.cpp:474: error: ‘v4l2_std_id’ was not declared in this scope
zm_local_camera.cpp:474: error: expected `;' before ‘stdId’
zm_local_camera.cpp:483: error: ‘struct v4l2_input’ has no member named ‘std’
zm_local_camera.cpp:483: error: ‘struct v4l2_input’ has no member named ‘std’
zm_local_camera.cpp:488: error: ‘stdId’ was not declared in this scope
zm_local_camera.cpp:489: error: ‘struct v4l2_input’ has no member named ‘std’
zm_local_camera.cpp: In member function ‘void LocalCamera::Terminate()’:
zm_local_camera.cpp:701: error: ‘struct v4l2_requestbuffers’ has no member named ‘count’
zm_local_camera.cpp: In member function ‘virtual int LocalCamera::Brightness(int)’:
zm_local_camera.cpp:913: error: ‘struct v4l2_control’ has no member named ‘id’
zm_local_camera.cpp:921: error: ‘struct v4l2_control’ has no member named ‘value’
zm_local_camera.cpp:925: error: ‘struct v4l2_control’ has no member named ‘value’
zm_local_camera.cpp:927: error: ‘struct v4l2_control’ has no member named ‘value’
zm_local_camera.cpp:936: error: ‘struct v4l2_control’ has no member named ‘value’
zm_local_camera.cpp:938: error: ‘struct v4l2_control’ has no member named ‘value’
zm_local_camera.cpp: In member function ‘virtual int LocalCamera::Hue(int)’:
zm_local_camera.cpp:973: error: ‘struct v4l2_control’ has no member named ‘id’
zm_local_camera.cpp:984: error: ‘struct v4l2_control’ has no member named ‘value’
zm_local_camera.cpp:995: error: ‘struct v4l2_control’ has no member named ‘value’
zm_local_camera.cpp: In member function ‘virtual int LocalCamera::Colour(int)’:
zm_local_camera.cpp:1030: error: ‘struct v4l2_control’ has no member named ‘id’
zm_local_camera.cpp:1041: error: ‘struct v4l2_control’ has no member named ‘value’
zm_local_camera.cpp:1052: error: ‘struct v4l2_control’ has no member named ‘value’
zm_local_camera.cpp: In member function ‘virtual int LocalCamera::Contrast(int)’:
zm_local_camera.cpp:1087: error: ‘struct v4l2_control’ has no member named ‘id’
zm_local_camera.cpp:1098: error: ‘struct v4l2_control’ has no member named ‘value’
zm_local_camera.cpp:1109: error: ‘struct v4l2_control’ has no member named ‘value’
zm_local_camera.cpp: In member function ‘virtual int LocalCamera::PrimeCapture()’:
zm_local_camera.cpp:1145: error: ‘struct v4l2_requestbuffers’ has no member named ‘count’
zm_local_camera.cpp:1153: error: ‘struct v4l2_buffer’ has no member named ‘index’
zm_local_camera.cpp: In member function ‘virtual int LocalCamera::Capture(Image&)’:
zm_local_camera.cpp:1223: error: ‘struct v4l2_buffer’ has no member named ‘index’
zm_local_camera.cpp:1228: error: ‘struct v4l2_buffer’ has no member named ‘index’
zm_local_camera.cpp:1233: error: ‘struct v4l2_buffer’ has no member named ‘index’
zm_local_camera.cpp:1239: error: ‘struct v4l2_buffer’ has no member named ‘sequence’
zm_local_camera.cpp:1241: error: ‘struct v4l2_buffer’ has no member named ‘index’
zm_local_camera.cpp: In member function ‘virtual int LocalCamera::PostCapture()’:
zm_local_camera.cpp:1604: error: ‘v4l2_std_id’ was not declared in this scope
zm_local_camera.cpp:1604: error: expected `;' before ‘stdId’
zm_local_camera.cpp:1605: error: ‘stdId’ was not declared in this scope
zm_local_camera.cpp:1611: error: ‘struct v4l2_buffer’ has no member named ‘index’
zm_local_camera.cpp:1614: error: ‘struct v4l2_buffer’ has no member named ‘index’
make[2]: *** [zm_local_camera.o] Error 1
make[2]: Leaving directory `/ZoneMinder-1.24.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/ZoneMinder-1.24.1'
make: *** [all] Error 2
suveillance:/ZoneMinder-1.24.1 #