intel / intel/icamerasrc

Cannot build: camera_device_open() - too many arguments

Open
#32 8 comments 6 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.