intel / ipu6-camera-hal

Apache License 2.0
39 stars 32 forks source link

build fails with IA_IMAGING not found #18

Open netllama opened 2 years ago

netllama commented 2 years ago

Attempting to build on a Fedora36 system, and the initial cmake command fails:

$ make -DCMAKE_BUILD_TYPE=Release -DIPU_VER=${IPU6_VER} -DENABLE_VIRTUAL_IPU_PIPE=OFF -DUSE_PG_LITE_PIPE=ON -DUSE_STATIC_GRAPH=OFF -DCMAKE_INSTALL_PREFIX=/usr ..
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.

-- install prefix: /usr
INFOadd definition -DIPU_SYSVER_ipu6v5 for ipu6ep
-- Checking for module 'ia_imaging'
--   Package 'ia_imaging', required by 'virtual:world', not found
CMake Error at cmake/FindIA_IMAGING.cmake:28 (message):
  IA_IMAGING not found
Call Stack (most recent call first):
  CMakeLists.txt:269 (find_package)

-- Configuring incomplete, errors occurred!

I've definitely got the headers installed from ipu6-camera-bins, so I'm not clear why they're not being found:

'ipu6ep/include/ia_imaging/ia_types.h' -> '/usr/include/ia_imaging/ia_types.h'
'ipu6ep/include/ia_imaging/ia_view.h' -> '/usr/include/ia_imaging/ia_view.h'
'ipu6ep/include/ia_imaging/ia_view_types.h' -> '/usr/include/ia_imaging/ia_view_types.h'
cjechlitschek commented 2 years ago

@netllama, I believe you need the content of this repo at compile time: https://github.com/intel/ipu6-camera-bins

netllama commented 2 years ago

Yes, that's understood, and I thought that I already installed that repo per its README. Do I need to set some sort of env variable to point to the actual repo, or should copying into /usr/lib and /usr/include (per the README) be sufficient?

On Mon, Jul 25, 2022 at 9:05 AM Christoph Jechlitschek < @.***> wrote:

@netllama https://github.com/netllama, I believe you need the content of this repo at compile time: https://github.com/intel/ipu6-camera-bins

— Reply to this email directly, view it on GitHub https://github.com/intel/ipu6-camera-hal/issues/18#issuecomment-1194292083, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAARLSKF3YTM6LY2PCU5UZ3VV23NVANCNFSM54QGZBZQ . You are receiving this because you were mentioned.Message ID: @.***>

cjechlitschek commented 2 years ago

Copying should be sufficient. Note that you can only build for IPU6 or IPU6ep at any one time. It seems that your cmake is not picking up the ia_imaging.pc from the binary repo. Can you check why that is?

netllama commented 2 years ago

I don't understand why. Its present:

$ ls -l  /usr/lib/pkgconfig/ia_imaging.pc 
-rw-r--r-- 1 root root 220 Jul 24 13:23 /usr/lib/pkgconfig/ia_imaging.pc

Should it be in a different location? Do I need to set some env variable to put to the location?

If I manually copy the pc files into /usr/share/pkgconfig/ then the failure goes away, but this is definitely not what the README recommends for that project.

zebra-ok commented 2 years ago

@netllama On Fedora, you need to place the ipu6-camera-bins in /usr/lib64/

netllama commented 2 years ago

@zebra-ok ok thanks.

vpodzime commented 1 year ago

If I manually copy the pc files into /usr/share/pkgconfig/ then the failure goes away, but this is definitely not what the README recommends for that project.

Well, the README for that project is not great. AFAICT, the pkgconfig directory is distro-specific. Anyway, it's a problem in the intel/ipu6-camera-bins repo, not here.

alvinpeters commented 1 year ago

You should try installing pkgconf first. Some distros might require it. Arch/Manjaro does at least.