Bitbake Error:opencv_4.2.0.imx.bb:do_compile) failed with exit code '1'

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

Bitbake Error:opencv_4.2.0.imx.bb:do_compile) failed with exit code '1'

Jump to solution
11,013 Views
milav_soni
Contributor III

 

Hello Guys,

I have face following error when I send bitbake command in my host PC.

 

Command :- $bitbake imx-image-multimedia

Error :- ERROR: Task (../Embedded_Software/Yocto/imx-yocto-bsp/sources/meta-imx/meta-bsp/recipes-support/opencv/opencv_4.2.0.imx.bb:do_compile) failed with exit code '1'

==============================================================================

Here I have describe host setup:

Processor :- Intel Core2 Duo CPU E4500@2.20Ghz x 2
OS TYpe    :- 64-Bit
Disk           :- 1 TB
Memory     :- 3.8 GiB
OS             :- Linux (Ubuntu 16.04 LTS)
 
And to make a image i write following command
 
1) install Essential Yocto Project host packages.
2) install repo using (sudo apt-get install repo)
3) download bsp
    $ mkdir imx-yocto-bsp
    $ cd imx-yocto-bsp
    $ repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-zeus -m imx-5.4.47-2.2.0.xml
    $ repo sync
4) Build configurations
    $ DISTRO=fsl-imx-wayland MACHINE=imx8mnevk source ./imx-setup-release.sh -b imx8mn_build
5) Edit local.conf file 
     
Multilib enablement
# Define multilib target
require conf/multilib.conf
MULTILIBS = "multilib:lib32"
DEFAULTTUNE_virtclass-multilib-lib32 = "armv7athf-neon"
# Add the multilib packages to the image
IMAGE_INSTALL_append = "lib32-glibc lib32-libgcc lib32-libstdc++"

Disable the deb packaging to avoid any processing errors. Check in local.conf , and comment if there are:
#PACKAGE_CLASSES = "package_deb"
#EXTRA_IMAGE_FEATURES += "package-management"
 
6) $bitbake imx-image-multimedia
==============================================================================

 

so can you please help me to sort out this error.

Here I have attached error log file and local.conf file.

Waiting for your answer.

Thank You

0 Kudos
Reply
1 Solution
11,000 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello milav_soni,

It seems that your memory size is too small. So when errors occured, you can try like below:  compile opencv seperately

# bitbake opencv -c cleansstate

# bitbake opencv -c complie

If there is no issues, continue compiling multimedia image.

# bitbake imx-image-multimedia

Hope this information is helpful to you.

Have a nice day!

B.R,

weidong

 

View solution in original post

10 Replies
11,001 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello milav_soni,

It seems that your memory size is too small. So when errors occured, you can try like below:  compile opencv seperately

# bitbake opencv -c cleansstate

# bitbake opencv -c complie

If there is no issues, continue compiling multimedia image.

# bitbake imx-image-multimedia

Hope this information is helpful to you.

Have a nice day!

B.R,

weidong

 

2,633 Views
Guillem
Contributor I

Hi, please edit the first message, 3rd line, 'compile' instead of 'complie'

Thanks a lot for your support

0 Kudos
Reply
10,918 Views
milav_soni
Contributor III

Hello @weidong_sun 

I have tried to build opencv separately, but i face same error as i mention in first comment.

so what is the problem?

Error :-   ERROR: Task (../Embedded_Software/Yocto/imx-yocto-bsp/sources/meta-imx/meta-bsp/recipes-support/opencv/opencv_4.2.0.imx.bb:do_compile) failed with exit code '1'

Here I have attached build log.

Please Help me.

0 Kudos
Reply
10,992 Views
milav_soni
Contributor III

Hello @weidong_sun 

Thank you for your reply.

I have tried to build OpenCV separately as you said.

But I face same error when i send command "bitbake opencv -c complie".

Error :- Task do_complie does not exist for target opencv (../Embedded_Software/Yocto/imx-yocto-bsp/sources/meta-imx/meta-bsp/recipes-support/opencv/opencv_4.2.0.imx.bb:do_compile). close matches : do_compile.

Error :- command execution failed : 1

Is there any change occur in local.conf file related to opencv?

please help me out.

0 Kudos
Reply
10,982 Views
weidong_sun
NXP TechSupport
NXP TechSupport

if you have ever close original terminal, you should run the command:

# cd ../Embedded_Software/Yocto/imx-yocto-bsp/
# source setup-environment imx8mn_build

Then run :

# bitbake opencv -c compile

[note]

opencv recipe is here:

./meta-imx/meta-bsp/recipes-support/opencv/opencv_4.2.0.imx.bb

so the command is no problem.

 

Try it, again.

Have a nice day!

Weidong

 

0 Kudos
Reply
10,970 Views
milav_soni
Contributor III

Hello @weidong_sun 

Thank You For Your Response.

I am trying to follow your steps to build only opencv for i.mx8m nano evk.

But the process is stuck at 80%. Please see snapshot for the same.

Is there hard disk/RAM error or else pc configuration is low for the same?

please help me out.

Thank You.

opencv_error.jpg

0 Kudos
Reply
10,955 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi @milav_soni

See below, please! Just finished.

weidong_sun_0-1606312776064.png

My notebook is 32GB memory, and assign ubuntu 18.04 on vmware player 16GB memory and 4 cores.

So advise you to increase memory size of your PC or notebook.

 

Hope the test is helpful to you.

Have a nice day!

B.R,

Weidong

 

0 Kudos
Reply
10,946 Views
milav_soni
Contributor III

 

Hello @weidong_sun 

May i know your pc configuration? about processor and frequency?

My PC has "Intel Core2 Duo CPU E4500@2.20Ghz x 2" Processor.

So is this okay for these? i need to cross check only.

Thank You

0 Kudos
Reply
10,989 Views
turker
Contributor IV

You have a typo here "bitbake opencv -c complie". It should be "bitbake opencv -c compile".

10,969 Views
milav_soni
Contributor III

Hello @turker 

Thanks For your Reply.

0 Kudos
Reply