intel / icamerasrc

icamerasrc
24 stars 35 forks source link

Build failed with: error: 'camera_view_projection_t' has not been declared #22

Closed stolk closed 1 year ago

stolk commented 1 year ago

I've built camhal and subsequently tried to build icamerasrc.

The configure run found the requisites:

...
checking for
  gstreamer-1.0 >= 1.0.0
  gstreamer-base-1.0 >= 1.0.0
  gstreamer-controller-1.0 >= 1.0.0
... yes
checking for libcamhal... yes
checking for libdrm libdrm_intel... yes
checking to see if compiler understands -Wall... yes
checking check if CHROME_SLIM_CAMHAL is ON... no
checking check if STRIP_VIRTUAL_CHANNEL_CAMHAL is ON... no
checking that generated files are newer than configure... done
configure: creating ./config.status
...

But when compiling:

/bin/bash ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../src/interfaces -I../..  -std=c++11 -Wall -Werror -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/x86_64-linux-gnu -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -Wall  -I/usr/local/include/libcamhal -I/usr/local/include/libcamhal/api -I/usr/local/include/libcamhal/utils  -fstack-protector-all -fPIE -fPIC -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security   -g -O2 -MT libgsticamerainterface_1.0_la-gstcamerawfovinterface.lo -MD -MP -MF .deps/libgsticamerainterface_1.0_la-gstcamerawfovinterface.Tpo -c -o libgsticamerainterface_1.0_la-gstcamerawfovinterface.lo `test -f 'gstcamerawfovinterface.cpp' || echo '../../../src/interfaces/'`gstcamerawfovinterface.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../../src/interfaces -I../.. -std=c++11 -Wall -Werror -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/x86_64-linux-gnu -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -Wall -I/usr/local/include/libcamhal -I/usr/local/include/libcamhal/api -I/usr/local/include/libcamhal/utils -fstack-protector-all -fPIC -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -g -O2 -MT libgsticamerainterface_1.0_la-gstcamerawfovinterface.lo -MD -MP -MF .deps/libgsticamerainterface_1.0_la-gstcamerawfovinterface.Tpo -c ../../../src/interfaces/gstcamerawfovinterface.cpp  -fPIC -DPIC -o .libs/libgsticamerainterface_1.0_la-gstcamerawfovinterface.o
In file included from ../../../src/interfaces/gstcamerawfovinterface.cpp:49:
../../../src/interfaces/gstcamerawfovinterface.h:103:70: error: 'camera_view_projection_t' has not been declared
  103 |   gboolean      (*set_view_projection)   (GstCamerasrcWFOV *camWFOV, camera_view_projection_t projection);
      |                                                                      ^~~~~~~~~~~~~~~~~~~~~~~~

OS: Ubuntu 22.10

branch: icamerasrc_slim_api

stolk commented 1 year ago

Same issue with the release tar ball: icamerasrc-Ccg_plat_adlp_20210819

drogenlied commented 1 year ago

Make sure you don't miss these exports before running autogen.sh:

export CHROME_SLIM_CAMHAL=ON
export STRIP_VIRTUAL_CHANNEL_CAMHAL=ON

Sadly, anything related to ipu6 is pretty shoddy workmanship from Intel with very narrow happy paths.