ERROR : I.MX8MQ EVK yocto compilation in opencv

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ERROR : I.MX8MQ EVK yocto compilation in opencv

Jump to solution
2,805 Views
dhaval_shah
Contributor II

Hi,

I am compiling the Rocko version of the yocto downloaded by using the following commands on the Ubuntu 16.04

repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-rocko -m imx-4.9.88-2.0.0_ga.xml
repo sync

I have already installed all the required packages as per the yocto userguide.

And set the environment using the following commands.

DISTRO=fsl-imx-xwayland MACHINE=imx8mqevk source fsl-setup-release.sh -b build

and build using the following command.

DISTRO=fsl-imx-xwayland MACHINE=imx8mqevk bitbake fsl-image-validation-imx

But, I am facing the compilation issue as follows in the opencv.

ERROR: opencv-3.4+gitAUTOINC+6d4f66472e_81ca8dab86_a62e20676a_34e4206aef_fccf7cd6a4-r0 do_fetch: Fetcher failure: Fetch command export PATH="/home/ankitrpatel/Project/rocko/build/tmp/work/aarch64-mx8mq-poky-linux/opencv/3.4+gitAUTOINC+6d4f66472e_81ca8dab86_a62e20676a_34e4206aef_fccf7cd6a4-r0/recipe-sysroot-native/usr/bin/python3-native:/home/ankitrpatel/Project/rocko/sources/poky/scripts:/home/ankitrpatel/Project/rocko/build/tmp/work/aarch64-mx8mq-poky-linux/opencv/3.4+gitAUTOINC+6d4f66472e_81ca8dab86_a62e20676a_34e4206aef_fccf7cd6a4-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux:/home/ankitrpatel/Project/rocko/build/tmp/work/aarch64-mx8mq-poky-linux/opencv/3.4+gitAUTOINC+6d4f66472e_81ca8dab86_a62e20676a_34e4206aef_fccf7cd6a4-r0/recipe-sysroot/usr/bin/crossscripts:/home/ankitrpatel/Project/rocko/build/tmp/work/aarch64-mx8mq-poky-linux/opencv/3.4+gitAUTOINC+6d4f66472e_81ca8dab86_a62e20676a_34e4206aef_fccf7cd6a4-r0/recipe-sysroot-native/usr/sbin:/home/ankitrpatel/Project/rocko/build/tmp/work/aarch64-mx8mq-poky-linux/opencv/3.4+gitAUTOINC+6d4f66472e_81ca8dab86_a62e20676a_34e4206aef_fccf7cd6a4-r0/recipe-sysroot-native/usr/bin:/home/ankitrpatel/Project/rocko/build/tmp/work/aarch64-mx8mq-poky-linux/opencv/3.4+gitAUTOINC+6d4f66472e_81ca8dab86_a62e20676a_34e4206aef_fccf7cd6a4-r0/recipe-sysroot-native/sbin:/home/ankitrpatel/Project/rocko/build/tmp/work/aarch64-mx8mq-poky-linux/opencv/3.4+gitAUTOINC+6d4f66472e_81ca8dab86_a62e20676a_34e4206aef_fccf7cd6a4-r0/recipe-sysroot-native/bin:/home/ankitrpatel/Project/rocko/sources/poky/bitbake/bin:/home/ankitrpatel/Project/rocko/build/tmp/hosttools"; export HOME="/home/ankitrpatel"; git -c core.fsyncobjectfiles=0 remote add --mirror=fetch origin git://github.com/opencv/opencv.git failed with exit code 128, output:
fatal: Not a git repository (or any of the parent directories): .git

ERROR: opencv-3.4+gitAUTOINC+6d4f66472e_81ca8dab86_a62e20676a_34e4206aef_fccf7cd6a4-r0 do_fetch: Fetcher failure for URL: 'git://github.com/opencv/opencv.git;name=opencv'. Unable to fetch URL from any source.
ERROR: opencv-3.4+gitAUTOINC+6d4f66472e_81ca8dab86_a62e20676a_34e4206aef_fccf7cd6a4-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/ankitrpatel/Project/rocko/build/tmp/work/aarch64-mx8mq-poky-linux/opencv/3.4+gitAUTOINC+6d4f66472e_81ca8dab86_a62e20676a_34e4206aef_fccf7cd6a4-r0/temp/log.do_fetch.22056

Can you please help me if someone has face same kind of issue.

I have already tried to set the export GIT_DISCOVERY_ACROSS_FILESYSTEM="1" and then tried but same issue is coming.

Thanks & Regards,

Dhaval

Tags (2)
0 Kudos
Reply
1 Solution
2,269 Views
dhaval_shah
Contributor II

Hi,

No need to put efforts, I have debug the issue with -D and get the solution for this issue.

This is because of some limitation in the local network because of larger file size download. Handle the issue by updating in local network rules.

Thanks & Regards,

Dhaval

View solution in original post

0 Kudos
Reply
3 Replies
2,269 Views
molin_du
Contributor II

Hello Dhaval:

Thank you for your investigation.

In my case, the download "reach 100%" many times and "start again".

I saw you post so I just keep waiting, finally it really complete.

0 Kudos
Reply
2,269 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Dhaval,

Thank you for posting your findings! I’m sure it will help other community users.

Regards,

0 Kudos
Reply
2,270 Views
dhaval_shah
Contributor II

Hi,

No need to put efforts, I have debug the issue with -D and get the solution for this issue.

This is because of some limitation in the local network because of larger file size download. Handle the issue by updating in local network rules.

Thanks & Regards,

Dhaval

0 Kudos
Reply