Error when compiling 1.24.2

Forum for questions and support relating to the 1.24.x releases only.
Locked
Dirky
Posts: 22
Joined: Sat Oct 16, 2004 6:10 pm

Error when compiling 1.24.2

Post by Dirky »

Hi,
I am attempting to upgrade my older 1.23 system to 1.24.2
I am running Ubuntu 6.10, which I realise is getting on now!

But when I attempt to make after configure I get the following errors?

zm_local_camera.cpp:443: error: âstruct v4l2_bufferâ has no member named âindexâ
zm_local_camera.cpp:448: error: âstruct v4l2_bufferâ has no member named âlengthâ
zm_local_camera.cpp:449: error: âstruct v4l2_bufferâ has no member named âlengthâ
zm_local_camera.cpp:449: error: âunion v4l2_buffer::<anonymous>â has no member named âoffsetâ
zm_local_camera.cpp:452: error: âstruct v4l2_bufferâ has no member named âlengthâ
zm_local_camera.cpp:473: error: âv4l2_std_idâ was not declared in this scope
zm_local_camera.cpp:473: error: expected `;' before âstdIdâ
zm_local_camera.cpp:482: error: âstruct v4l2_inputâ has no member named âstdâ
zm_local_camera.cpp:482: error: âstruct v4l2_inputâ has no member named âstdâ
zm_local_camera.cpp:487: error: âstdIdâ was not declared in this scope
zm_local_camera.cpp:488: error: âstruct v4l2_inputâ has no member named âstdâ
zm_local_camera.cpp: In member function âvoid LocalCamera::Terminate()â:
zm_local_camera.cpp:705: error: âstruct v4l2_requestbuffersâ has no member named âcountâ
zm_local_camera.cpp: In static member function âstatic bool LocalCamera::GetCurrentSettings(const char*, char*, int, bool)â:
zm_local_camera.cpp:776: error: âstruct v4l2_capabilityâ has no member named âdriverâ
zm_local_camera.cpp:777: error: âstruct v4l2_capabilityâ has no member named âcardâ
zm_local_camera.cpp:778: error: âstruct v4l2_capabilityâ has no member named âbus_infoâ
zm_local_camera.cpp:779: error: âstruct v4l2_capabilityâ has no member named âversionâ
zm_local_camera.cpp:779: error: âstruct v4l2_capabilityâ has no member named âversionâ
zm_local_camera.cpp:779: error: âstruct v4l2_capabilityâ has no member named âversionâ
zm_local_camera.cpp:780: error: âstruct v4l2_capabilityâ has no member named âcapabilitiesâ
zm_local_camera.cpp:781: error: âstruct v4l2_capabilityâ has no member named âcapabilitiesâ
zm_local_camera.cpp:782: error: âstruct v4l2_capabilityâ has no member named âcapabilitiesâ
zm_local_camera.cpp:783: error: âstruct v4l2_capabilityâ has no member named âcapabilitiesâ
zm_local_camera.cpp:784: error: âstruct v4l2_capabilityâ has no member named âcapabilitiesâ
zm_local_camera.cpp:785: error: âstruct v4l2_capabilityâ has no member named âcapabilitiesâ
zm_local_camera.cpp:786: error: âstruct v4l2_capabilityâ has no member named âcapabilitiesâ
zm_local_camera.cpp:787: error: âstruct v4l2_capabilityâ has no member named âcapabilitiesâ
zm_local_camera.cpp:793: error: âstruct v4l2_capabilityâ has no member named âcapabilitiesâ
zm_local_camera.cpp:794: error: âstruct v4l2_capabilityâ has no member named âcapabilitiesâ
zm_local_camera.cpp:795: error: âstruct v4l2_capabilityâ has no member named âcapabilitiesâ
zm_local_camera.cpp:796: error: âstruct v4l2_capabilityâ has no member named âcapabilitiesâ
zm_local_camera.cpp:797: error: âstruct v4l2_capabilityâ has no member named âcapabilitiesâ
zm_local_camera.cpp:798: error: âstruct v4l2_capabilityâ has no member named âcapabilitiesâ
zm_local_camera.cpp:803: error: âstruct v4l2_capabilityâ has no member named âdriverâ
zm_local_camera.cpp:804: error: âstruct v4l2_capabilityâ has no member named âcardâ
zm_local_camera.cpp:805: error: âstruct v4l2_capabilityâ has no member named âbus_infoâ
zm_local_camera.cpp:806: error: âstruct v4l2_capabilityâ has no member named âversionâ
zm_local_camera.cpp:806: error: âstruct v4l2_capabilityâ has no member named âversionâ
zm_local_camera.cpp:806: error: âstruct v4l2_capabilityâ has no member named âversionâ
zm_local_camera.cpp:807: error: âstruct v4l2_capabilityâ has no member named âcapabilitiesâ
zm_local_camera.cpp:819: error: âstruct v4l2_standardâ has no member named âindexâ
zm_local_camera.cpp:830: error: âstruct v4l2_standardâ has no member named âindexâ
zm_local_camera.cpp:832: error: âstruct v4l2_standardâ has no member named âindexâ
zm_local_camera.cpp:839: error: âstruct v4l2_standardâ has no member named ânameâ
zm_local_camera.cpp:841: error: âstruct v4l2_standardâ has no member named ânameâ
zm_local_camera.cpp:857: error: âstruct v4l2_fmtdescâ has no member named âindexâ
zm_local_camera.cpp:868: error: âstruct v4l2_fmtdescâ has no member named âindexâ
zm_local_camera.cpp:870: error: âstruct v4l2_fmtdescâ has no member named âindexâ
zm_local_camera.cpp:877: error: âstruct v4l2_fmtdescâ has no member named âdescriptionâ
zm_local_camera.cpp:877: error: âstruct v4l2_fmtdescâ has no member named âpixelformatâ
zm_local_camera.cpp:877: error: âstruct v4l2_fmtdescâ has no member named âpixelformatâ
zm_local_camera.cpp:877: error: âstruct v4l2_fmtdescâ has no member named âpixelformatâ
zm_local_camera.cpp:877: error: âstruct v4l2_fmtdescâ has no member named âpixelformatâ
zm_local_camera.cpp:879: error: âstruct v4l2_fmtdescâ has no member named âpixelformatâ
zm_local_camera.cpp:879: error: âstruct v4l2_fmtdescâ has no member named âpixelformatâ
zm_local_camera.cpp:879: error: âstruct v4l2_fmtdescâ has no member named âpixelformatâ
zm_local_camera.cpp:879: error: âstruct v4l2_fmtdescâ has no member named âpixelformatâ
zm_local_camera.cpp:900: error: âstruct v4l2_rectâ has no member named âwidthâ
zm_local_camera.cpp:900: error: âstruct v4l2_rectâ has no member named âheightâ
zm_local_camera.cpp:901: error: âstruct v4l2_rectâ has no member named âwidthâ
zm_local_camera.cpp:901: error: âstruct v4l2_rectâ has no member named âheightâ
zm_local_camera.cpp:905: error: âstruct v4l2_rectâ has no member named âwidthâ
zm_local_camera.cpp:905: error: âstruct v4l2_rectâ has no member named âheightâ
zm_local_camera.cpp:921: error: âstruct v4l2_rectâ has no member named âwidthâ
zm_local_camera.cpp:921: error: âstruct v4l2_rectâ has no member named âheightâ
zm_local_camera.cpp:928: error: âstruct v4l2_inputâ has no member named âindexâ
zm_local_camera.cpp:938: error: âstruct v4l2_inputâ has no member named âindexâ
zm_local_camera.cpp:940: error: âstruct v4l2_inputâ has no member named âindexâ
zm_local_camera.cpp:958: error: âstruct v4l2_inputâ has no member named âindexâ
zm_local_camera.cpp:969: error: âstruct v4l2_inputâ has no member named âindexâ
zm_local_camera.cpp:971: error: âstruct v4l2_inputâ has no member named âindexâ
zm_local_camera.cpp:978: error: âstruct v4l2_inputâ has no member named âindexâ
zm_local_camera.cpp:980: error: âstruct v4l2_inputâ has no member named âindexâ
zm_local_camera.cpp:982: error: âstruct v4l2_inputâ has no member named âindexâ
zm_local_camera.cpp:990: error: âstruct v4l2_inputâ has no member named âindexâ
zm_local_camera.cpp:991: error: âstruct v4l2_inputâ has no member named ânameâ
zm_local_camera.cpp:992: error: âstruct v4l2_inputâ has no member named âtypeâ
zm_local_camera.cpp:992: error: âstruct v4l2_inputâ has no member named âtypeâ
zm_local_camera.cpp:993: error: âstruct v4l2_inputâ has no member named âaudiosetâ
zm_local_camera.cpp:994: error: âstruct v4l2_inputâ has no member named âstdâ
zm_local_camera.cpp:998: error: âstruct v4l2_inputâ has no member named âindexâ
zm_local_camera.cpp:998: error: âstruct v4l2_inputâ has no member named ânameâ
zm_local_camera.cpp:999: error: âstruct v4l2_inputâ has no member named âindexâ
zm_local_camera.cpp:999: error: âstruct v4l2_inputâ has no member named âtypeâ
zm_local_camera.cpp:999: error: âstruct v4l2_inputâ has no member named âtypeâ
zm_local_camera.cpp:1000: error: âstruct v4l2_inputâ has no member named âindexâ
zm_local_camera.cpp:1000: error: âstruct v4l2_inputâ has no member named âstdâ
zm_local_camera.cpp:1005: error: âstruct v4l2_inputâ has no member named âstatusâ
zm_local_camera.cpp:1006: error: âstruct v4l2_inputâ has no member named âstatusâ
zm_local_camera.cpp:1007: error: âstruct v4l2_inputâ has no member named âstatusâ
zm_local_camera.cpp:1008: error: âstruct v4l2_inputâ has no member named âstatusâ
zm_local_camera.cpp:1012: error: âstruct v4l2_inputâ has no member named âindexâ
zm_local_camera.cpp:1012: error: âstruct v4l2_inputâ has no member named âstatusâ
zm_local_camera.cpp:1013: error: âstruct v4l2_inputâ has no member named âindexâ
zm_local_camera.cpp:1013: error: âstruct v4l2_inputâ has no member named âstatusâ
zm_local_camera.cpp:1014: error: âstruct v4l2_inputâ has no member named âindexâ
zm_local_camera.cpp:1014: error: âstruct v4l2_inputâ has no member named âstatusâ
zm_local_camera.cpp:1015: error: âstruct v4l2_inputâ has no member named âindexâ
zm_local_camera.cpp:1015: error: âstruct v4l2_inputâ has no member named âstatusâ
zm_local_camera.cpp: In member function âvirtual int LocalCamera::Brightness(int)â:
zm_local_camera.cpp:1212: error: âstruct v4l2_controlâ has no member named âidâ
zm_local_camera.cpp:1220: error: âstruct v4l2_controlâ has no member named âvalueâ
zm_local_camera.cpp:1224: error: âstruct v4l2_controlâ has no member named âvalueâ
zm_local_camera.cpp:1226: error: âstruct v4l2_controlâ has no member named âvalueâ
zm_local_camera.cpp:1235: error: âstruct v4l2_controlâ has no member named âvalueâ
zm_local_camera.cpp:1237: 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:1272: error: âstruct v4l2_controlâ has no member named âidâ
zm_local_camera.cpp:1283: error: âstruct v4l2_controlâ has no member named âvalueâ
zm_local_camera.cpp:1294: 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:1329: error: âstruct v4l2_controlâ has no member named âidâ
zm_local_camera.cpp:1340: error: âstruct v4l2_controlâ has no member named âvalueâ
zm_local_camera.cpp:1351: 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:1386: error: âstruct v4l2_controlâ has no member named âidâ
zm_local_camera.cpp:1397: error: âstruct v4l2_controlâ has no member named âvalueâ
zm_local_camera.cpp:1408: error: âstruct v4l2_controlâ has no member named âvalueâ
zm_local_camera.cpp: In member function âvirtual int LocalCamera::PrimeCapture()â:
zm_local_camera.cpp:1444: error: âstruct v4l2_requestbuffersâ has no member named âcountâ
zm_local_camera.cpp:1452: 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:1522: error: âstruct v4l2_bufferâ has no member named âindexâ
zm_local_camera.cpp:1527: error: âstruct v4l2_bufferâ has no member named âindexâ
zm_local_camera.cpp:1532: error: âstruct v4l2_bufferâ has no member named âindexâ
zm_local_camera.cpp:1538: error: âstruct v4l2_bufferâ has no member named âsequenceâ
zm_local_camera.cpp:1540: error: âstruct v4l2_bufferâ has no member named âindexâ
zm_local_camera.cpp: In member function âvirtual int LocalCamera::PostCapture()â:
zm_local_camera.cpp:1903: error: âv4l2_std_idâ was not declared in this scope
zm_local_camera.cpp:1903: error: expected `;' before âstdIdâ
zm_local_camera.cpp:1904: error: âstdIdâ was not declared in this scope
zm_local_camera.cpp:1910: error: âstruct v4l2_bufferâ has no member named âindexâ
zm_local_camera.cpp:1913: error: âstruct v4l2_bufferâ has no member named âindexâ
make[2]: *** [zm_local_camera.o] Error 1
make[2]: Leaving directory `/usr/local/src/ZoneMinder-1.24.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/ZoneMinder-1.24.2'
make: *** [all] Error 2
root@zone:/usr/local/src/ZoneMinder-1.24.2#


I would appreciate any comments you have.
Thanks
Mike
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

ZM 1.24.x series requires V4L2 in the kernel.
Dirky
Posts: 22
Joined: Sat Oct 16, 2004 6:10 pm

Post by Dirky »

cordel wrote:ZM 1.24.x series requires V4L2 in the kernel.
Ahh, thanks for your reply.

Do you know if any distributions have that 'out of the box' ?

Thanks
Mike
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

V4L aka Video 4 Linux is defualt in the kernel. V4L2 is a newer specification in more recent kernels >~2.6.25 so all more recent distros should have it.
Locked