Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build fails with IA_IMAGING not found #18

Open
netllama opened this issue Jul 24, 2022 · 8 comments
Open

build fails with IA_IMAGING not found #18

netllama opened this issue Jul 24, 2022 · 8 comments

Comments

@netllama
Copy link

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
Copy link
Contributor

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

@netllama
Copy link
Author

netllama commented Jul 25, 2022 via email

@cjechlitschek
Copy link
Contributor

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
Copy link
Author

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
Copy link

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

@netllama
Copy link
Author

@zebra-ok ok thanks.

@vpodzime
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants