I am trying setup of OpenCV cross-compile environment for i.MX8X family.
Linux BSP is getting source code from opencv-imx repository instead of original repository.
What is difference between opencv-imx and original one?
Do you have any documents for opencv-imx?
GitHub - opencv/opencv: Open Source Computer Vision Library
Best Regards,
Kazuma Sasaki.
Solved! Go to Solution.
Hello Kazuma,
The OpenCV is optimized for machine learning in the eIQ of the i.MX family and the documentation is the same. For example you can see the The Linux User Guide, in your yocto documents.
Regards
Hello Kazuma,
The OpenCV is optimized for machine learning in the eIQ of the i.MX family and the documentation is the same. For example you can see the The Linux User Guide, in your yocto documents.
Regards
Hi Bio,
Thank you for your answer. The context for my question is the build procedure between opencv-imx and original opencv seemed different, so I wanted to know any helpful information. In conclusion, I have done cross compile by following steps.
Build PC : Ubuntu 14.04
Linux BSP : 4.14.98_2.0.0_ga
Target SoC : i.MX8QXP
1. OpenCV
$ sudo apt-get install gcc-arm-linux-gnueabi
$ sudo apt-get install gcc-arm-linux-gnueabihf
$ sudo apt-get install g++-arm-linux-gnueabi
$ sudo apt-get install g++-arm-linux-gnueabihf
$ git clone https://github.com/opencv/opencv.git -b 4.0.1 opencv-git-4.0.1
$ cd opencv-git-4.0.1
$ mkdir build
$ cd build
$ cmake -DSOFTFP=ON -DCMAKE_C_COMPILER=/usr/bin/arm-linux-gnueabihf-gcc -DCMAKE_CXX_COMPILER=/usr/bin/arm-linux-gnueabihf-g++ -DCMAKE_TOOLCHAIN_FILE=../platforms/linux/arm-gnueabi.toolchain.cmake ../
$ make
2.OpenCV-iMX
$ source <imx toolchain path>/environment-setup-aarch64-poky-linux
$ cd <Linux BSP yocto build dir>/tmp/work/aarch64-mx8-poky-linux/opencv/4.0.1.imx+gitAUTOINC+c3d56b9aea_2522124473_32e315a5b1_34e4206aef_fccf7cd6a4_d29d003e00-r0/build
$ cmake ../git/ -GNinja
$ ninja
Best Regards,
Kazuma Sasaki.