Cannot build: camera_device_open() - too many arguments
- Dominant language
- No language data
- Stars
- 27
- Forks
- 40
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I'm trying to build icamerasrc to make the webcam of my Lenovo X1 Carbon (gen 10) work in Ubuntu 22.04.
I've installed all the other dependencies listed in the instructions with no errors (using ipu6ep), however then when i run
`make -j8` the build fails with this error:
```
gstcamerasrc.cpp: In function ‘gboolean gst_camerasrc_start(GstCamBaseSrc*)’:
gstcamerasrc.cpp:2839:27: error: too many arguments to function ‘int icamera::camera_device_open(int)’
2839 | ret = camera_device_open(camerasrc->device_id, camerasrc->num_vc);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from gstcamerasrc.cpp:62:
/usr/include/libcamhal/api/ICamera.h:210:5: note: declared here
210 | int camera_device_open(int camera_id);
| ^~~~~~~~~~~~~~~~~~
make[3]: *** [Makefile:623: libgsticamerasrc_la-gstcamerasrc.lo] Error 1
make[3]: Leaving directory '/icamerasrc/src'
make[2]: *** [Makefile:684: all-recursive] Error 1
make[2]: Leaving directory '/icamerasrc/src'
make[1]: *** [Makefile:519: all-recursive] Error 1
make[1]: Leaving directory '/icamerasrc'
make: *** [Makefile:428: all] Error 2
```
Am I doing something wrong or is it just a bug?
Thanks,
E.
Contributor guide
Assessment
This issue has not been assessed yet.