Closed matteovit closed 4 months ago
Please check the git log for buildroot repo then paste the output here. Try this
cd build_ti375c529/buildroot
git log --oneline -10
matteo@zeus:/work/projects/efinix/build_ti375c529/buildroot$ git log --oneline -10
0d4c604da8 (HEAD, tag: 2021.05.3, origin/2021.05.x) Update for 2021.05.3
5a89e46bbd package/redis: security bump to v6.2.6
65391de0e8 package/gdb: append to dependencies in conditional
bc67998293 DEVELOPERS: adopt package/libite
f58c498450 package/uclibc: update to 1.0.39
718f59ff9e package/gst1-interpipe: bump version to 1.1.6
fb1dc8095f package/net-tools: add NET_TOOLS_CPE_ID_VENDOR
280ad9a585 package/libressl: bump to version 3.2.7
6ee815f77b package/libcurl: fix build with wolfssl
b420721f44 package/squid: security bump to version 4.17
Seem like there are some patches are not applied to that repo. Try to apply the patches manually.
cd /work/projects/efinix/build_ti375c529/buildroot
git am /work/projects/efinix/br2-efinix/patches/buildroot/2021.05.3/*.patch
remove opencv build directory and rebuild again
cd /work/projects/efinix/build_ti375c529/build
rm -rf build/opencv3-3.4.13
make -j$(nproc)
That didn't fix the problem. At the end the issue was a missing dependency in the cv2_detection package:
https://github.com/starwaredesign/br2-efinix/tree/fix-opencv-dnn-build-error
The dependency already defines here https://github.com/Efinix-Inc/br2-efinix/blob/main/configs/efinix_ti375c529_defconfig#L133. The buildroot repo in build_ti375c529 directory is missing this patch https://github.com/Efinix-Inc/br2-efinix/blob/main/patches/buildroot/2021.05.3/0001-opencv3-enable-support-for-dnn-library.patch so that's why the compilation failed.
What is the output when you run the init.sh script?
in this case it doesn't matter since OPENCV3_DNN is an option to the OpenCV package, but if it was a separate package, then adding it as dependency would be different than adding it to the defconfig.
if the patch wasn't applied correctly I would have expected to get an error related to BR2_PACKAGE_OPENCV3_DNN being defined in the defconfig but not in the package config.
Unfortunately I am not able to reproduce the issue again (it builds fine), even with a clean git clone in a different directory so I will close the ticket.
The only note for Ubuntu 22 is that the provided version of mtools generates an error and I had to compile a more recent version of mtool from the source code (this is the issue https://github.com/PartialVolume/shredos.x86_64/issues/120).
Building build-root for the Ti375 from the latest main branch:
I get the following error: