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

Fedora 37 make -jnproc error #54

Open
gsctw opened this issue May 3, 2023 · 0 comments
Open

Fedora 37 make -jnproc error #54

gsctw opened this issue May 3, 2023 · 0 comments

Comments

@gsctw
Copy link

gsctw commented May 3, 2023

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 <expat.h>
      |          ^~~~~~~~~
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'

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

1 participant