Efinix-Inc / br2-efinix

Buildroot external tree for building Linux for Efinix RISC-V Sapphire SoC
MIT License
10 stars 4 forks source link

Is there a tutorial to run OpenCV in the buildroot linux? #9

Open rohaya2021 opened 1 year ago

efxmnalim commented 1 year ago

I did not get the your question. Maybe you can see this example of canny app that use opencv library. Also see these patch on how canny app integrate in buildroot

  1. package: add canny package: https://github.com/Efinix-Inc/br2-efinix/commit/67b5ec5b40ef44d0ebecd556a90fc36e48b3f0ca
  2. configs: enable building canny package: https://github.com/Efinix-Inc/br2-efinix/commit/a8b5e5e6f96253ea825c04419a8ffe67092f1a35

If you build your own opencv app and want to integrate it in buildroot then see adding your own custom package

rohaya2021 commented 1 year ago

Thanks for the info. I will try it later. How about C++ compiler (GCC). I add BR2_GCC_VERSION_8_X=y in configs/efinix_ti60f225_defconfig but after Linux is loaded on the board, no GCC and G++ are installed. As a result, can’t run C++ on the buildroot Linux.

rohaya2021 commented 1 year ago

Does buildroot for RISCV 32-bit support C lib (glibc, uclib and musl)? I couldn't find option for Musl in Menuconfig.