compilation failure flexbuild_lsdk1909_update_221019 "app" component 'weston'

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

compilation failure flexbuild_lsdk1909_update_221019 "app" component 'weston'

1,829 Views
neeraj_mohture
Contributor I

Hi ,

I am trying to compile flexbuild_lsdk1909_update_221019 "app" component but I am getting following error :

make[2]: Leaving directory '/NXP/flexbuild_lsdk1909_update_221019/packages/apps/libdrm'
Build libdrm [Done]

Building weston ...
chroot: failed to run command ‘ldconfig’: No such file or directory
Makefile:720: recipe for target 'weston' failed
make[1]: *** [weston] Error 127
make[1]: Leaving directory '/NXP/flexbuild_lsdk1909_update_221019/packages/apps'
Makefile:28: recipe for target 'apps' failed
make: *** [apps] Error 2
make: Leaving directory '/home/beckh/NXP/flexbuild_lsdk1909_update_221019'

Please let me know what is the issue ?

Regards,

Neeraj R.Mohture

Labels (1)
0 Kudos
4 Replies

1,399 Views
Teruharu
Contributor II

Well I've found a correct build step list, after I tried to fix this "weston" error, here are the steps:

  1. sudoedit /etc/sudoers                                                             # Edit /etc/sudoers file
  2. <user-account-name> ALL=(ALL:ALL) NOPASSWD: ALL     # Add this line to /etc/sudoers 
  3. sudo apt install python3 python3-pip                                      # Install python3 and pip3
  4. sudo passwd && su                                                                # Enable and switch to root
  5. pip3 install ninja meson                                                          # Install meson and ninja as root, 
  6. tar -xzf flexbuild_lsdk2012.tgz                                                # Decompress LSDK
  7. cd flexbuild_lsdk2012                                                             # Switch to LSDK directory
  8. source setup.env                                                                    # Setup environment variabes
  9. flex-builder -m ls1028ardb                                                      # Compile all images for selected target

Here are some details and hints:

  1. Commands in step 1 and 2 can be found in LSDK UserGuide, if my descriptions make confuse then refer to chapter 4.1.1 of LSDK UserGuide.
  2. meson and ninja should be installed as root, or the error include "weston" will appear. For more details you can have a look at references below.

Reference:

  1. Online version of LSDK-2012 UserGuide
  2. ModuleNotFoundError: No module named 'mesonbuild' 
  3. Meson build error "ModuleNotFoundError: No module named 'mesonbuild'" 
0 Kudos

1,410 Views
Teruharu
Contributor II

I have the same problem too.

My board is LS1028ARDB, LSDK version is 2012.

Here is my error log:

Building weston ...
Collecting meson
Using cached https://files.pythonhosted.org/packages/1a/79/3a0d776ccdd431a5f4763a2577ca8a5585de3d4a306e4b05f86749...
Installing collected packages: meson
Successfully installed meson-0.60.1
/sbin/ldconfig.real: /usr/local/lib/libOpenVG.so is not a symbolic link

Traceback (most recent call last):
File "/home/hmxf/.local/bin/meson", line 7, in <module>
from mesonbuild.mesonmain import main
ModuleNotFoundError: No module named 'mesonbuild'
/home/hmxf/flexbuild_lsdk2012/packages/apps/multimedia/multimedia.mk:84: recipe for target 'weston' failed
make[1]: *** [weston] Error 1
make[1]: Leaving directory '/home/hmxf/flexbuild_lsdk2012/packages/apps'
Makefile:28: recipe for target 'apps' failed
make: *** [apps] Error 2
make: Leaving directory '/home/hmxf/flexbuild_lsdk2012'

 

0 Kudos

1,721 Views
Pavel
NXP Employee
NXP Employee

Do “ sudo apt install -y binfmt-support qemu-system-common qemu-user-static “ will resolve the issue.
This conditional dependency will automatically be added in next LSDK release.

 

Have a great day,
Pavel Chubakov

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,635 Views
gfine1
Contributor III

I just had a similar problem. But with 2012

This was my error:

Building weston ...
Collecting meson
Installing collected packages: meson
Successfully installed meson-0.58.1
/sbin/ldconfig.real: /usr/local/lib/libOpenVG.so is not a symbolic link

/bin/bash: line 16: meson: command not found
/home/glen/ls1043/flexbuild_lsdk2012/packages/apps/multimedia/multimedia.mk:84: recipe for target 'weston' failed
make[1]: *** [weston] Error 127
make[1]: Leaving directory '/home/glen/ls1043/flexbuild_lsdk2012/packages/apps'
Makefile:28: recipe for target 'apps' failed
make: *** [apps] Error 2
make: Leaving directory '/home/glen/ls1043/flexbuild_lsdk2012'
glen@Sparky:~/ls1043/flexbuild_lsdk2012$

I did your apt-get install and got the same error. Any ideas?