[libcamera-devel] [PATCH 0/2] Fix Android camera HAL compilation on gcc 7 and 8

Laurent Pinchart laurent.pinchart at ideasonboard.com
Wed May 26 02:08:53 CEST 2021


Hello,

This patch series fixes a compilation breakage of the camera HAL with
gcc 7 and 8 (technically a link breakage with gcc 8), introduced by
usage of the file system library.

The first patch is a small refactoring, the second patch includes the
real fix, details are included there.

The compilation fix is a bit of a hack. If we need to use the file
system library in more places (and I think we will), we should either
drop support for gcc 7 completely, or abstract file system operations in
helper classes. Any opinion ?

Laurent Pinchart (2):
  android: camera_hal_config: Move include <filesystem> to .cpp file
  android: Fix file system library usage on gcc 7 and 8

 meson.build                       | 8 ++++++++
 src/android/camera_hal_config.cpp | 8 ++++++++
 src/android/camera_hal_config.h   | 1 -
 3 files changed, 16 insertions(+), 1 deletion(-)

-- 
Regards,

Laurent Pinchart



More information about the libcamera-devel mailing list