intel / ipu6-camera-hal

Apache License 2.0
39 stars 32 forks source link

Fedora 37 make -j`nproc` error #54

Open gsctw opened 1 year ago

gsctw commented 1 year ago

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'