intel / intel/ipu6-camera-hal

Fedora 37 make -j`nproc` error

Open
#54 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
51
Forks
47
PR merge metrics
No merged PRs in 30d

Description

Good morning,

I just tried to build this repo, following all the README instructions. I had the #18 issue, where it was solved moving the files to `/usr/lib64/`.

Reaching the next step, ``` make -j`nproc` ```, I got the following errors:
```
make[2]: *** [CMakeFiles/camhal_static.dir/build.make:314: CMakeFiles/camhal_static.dir/src/3a/AiqResult.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [CMakeFiles/camhal_static.dir/build.make:300: CMakeFiles/camhal_static.dir/src/3a/intel3a/Intel3AParameter.cpp.o] Error 1
make[2]: *** [CMakeFiles/camhal_static.dir/build.make:286: CMakeFiles/camhal_static.dir/src/3a/AiqUtils.cpp.o] Error 1
In file included from /home/work/Documents/ipu6-camera-hal/src/platformdata/PlatformData.h:37,
from /home/work/Documents/ipu6-camera-hal/src/3a/I3AControlFactory.cpp:20:
/home/work/Documents/ipu6-camera-hal/src/v4l2/MediaControl.h:20:10: fatal error: expat.h: No such file or directory
20 | #include
| ^~~~~~~~~
cc1plus: all warnings being treated as errors
compilation terminated.
make[2]: *** [CMakeFiles/camhal_static.dir/build.make:272: CMakeFiles/camhal_static.dir/src/3a/I3AControlFactory.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:356: CMakeFiles/camhal_static.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
```

```
/usr/include/features.h:412:4: error: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Werror=cpp]
412 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O)
| ^~~~~~~
```

The command user to build before this step was:
`cmake -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 ..`

I also checked the issue #19, since I'm getting the same error, but I'm using the correct flag '-DCMAKE_BUILD_TYPE=Release'

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.