cannot build under ubuntu 18.04
Status: Beta
Brought to you by:
caneca
I am trying to build avcap 0.1.9 under ubuntu 18.04. After downloading I do
.install make
The install procedure has no fatal errors. However, make would not run because:
"V4L2_ConnectorManager.cpp:29:10: fatal error: linux/videodev.h: No such file or directory"
I tried to fix this by executing
$ sudo ln -s /usr/include/linux/videodev2.h /usr/include/linux/videodev.h
and then ran
$ make clean; make
which produced the following errors:
V4L1_ConnectorManager.cpp:63:24: error: aggregate 'avcap::V4L1_ConnectorManager::query()::video_channel vc' has incomplete type and cannot be defined struct video_channel vc; ^~ V4L1_ConnectorManager.cpp:67:44: error: 'VIDIOCGCHAN' was not declared in this scope if(ioctl(mDeviceDescriptor->getHandle(), VIDIOCGCHAN, &vc) == -1) ^~~~~~~~~~~ V4L1_ConnectorManager.cpp:67:44: note: suggested alternative: 'VIDIOC_G_STD' if(ioctl(mDeviceDescriptor->getHandle(), VIDIOCGCHAN, &vc) == -1) ^~~~~~~~~~~ VIDIOC_G_STD V4L1_ConnectorManager.cpp: In member function 'virtual int avcap::V4L1_ConnectorManager::setVideoInput(avcap::Connector*)': V4L1_ConnectorManager.cpp:115:23: error: aggregate 'avcap::V4L1_ConnectorManager::setVideoInput(avcap::Connector*)::video_channel vc' has incomplete type and cannot be defined struct video_channel vc; ^~ V4L1_ConnectorManager.cpp:119:50: error: 'VIDIOCSCHAN' was not declared in this scope int res = ioctl(mDeviceDescriptor->getHandle(), VIDIOCSCHAN, &vc); ^~~~~~~~~~~ V4L1_ConnectorManager.cpp:119:50: note: suggested alternative: 'VIDIOC_S_STD' int res = ioctl(mDeviceDescriptor->getHandle(), VIDIOCSCHAN, &vc); ^~~~~~~~~~~ VIDIOC_S_STD Makefile:309: recipe for target 'V4L1_ConnectorManager.lo' failed make[3]: *** [V4L1_ConnectorManager.lo] Error 1
any suggestions?
Hi Lou,
I'm sorry but the project is not actively maintained from my side
anymore for quite some time. Good luck in fixing the issue yourself.
Best,
-Nico
Am 09.09.2018 um 16:41 schrieb Lou Burnard:
Related
Support Requests: #3