intel / ipu6-camera-hal

Apache License 2.0
39 stars 32 forks source link

The README should be updated #42

Open victornoel opened 1 year ago

victornoel commented 1 year ago

Hi, the README seems to be very outdated, I can see the following errors when trying to compile the current master.

Note that I am using cmake 3.25.2, not sure why I get that deprecation warning…

CMake Deprecation Warning at CMakeLists.txt:17 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- The C compiler identification is GNU 12.2.1
-- The CXX compiler identification is GNU 12.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- install prefix: /usr
-- Performing Test COMPILER_SUPPORTS_ALIGNED_NEW
-- Performing Test COMPILER_SUPPORTS_ALIGNED_NEW - Success
INFOadd definition -DIPU_SYSVER_ipu6v5 for ipu6ep
-- Performing Test COMPILER_SUPPORTS_NO_UNUSED_BUT_SET_VAR
-- Performing Test COMPILER_SUPPORTS_NO_UNUSED_BUT_SET_VAR - Success
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.0") 
-- Checking for module 'ia_imaging'
--   Found ia_imaging, version VERSION
-- Found IA_IMAGING: /usr/include/ia_imaging  
-- Checking for module 'libgcss'
--   Found libgcss, version 
-- Found LIBGCSS: /usr/include/ia_camera  
-- Checking for module 'libipu6ep'
--   Found libipu6ep, version VERSION
-- Found LIBIPU: /usr/include/libipu  
Install ADL IPU6EP configure files
-- Configuring done
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
IA_EMD_LIB
    linked by target "camhal_static" in directory /home/victor/ipu6-camera-hal
    linked by target "camhal" in directory /home/victor/Tools/ipu6-camera-hal

-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    ENABLE_VIRTUAL_IPU_PIPE
    USE_STATIC_GRAPH
victornoel commented 1 year ago

Ok, actually the error where most certainly because I didn't have the latest version of one of the other dependencies (ipu6-camera-bins).

That being said, the warnings show that the README is outdated, it would be cool to have the correct cmake command to run to build it :)