Petalinux create app reported an error
mrzhang@ubuntu:~/works/MZ702P_FEP$ petalinux-create -t apps -n testapp --enable --force
INFO: Create apps: testapp
WARNING: Component "/home/mrzhang/works/MZ702P_FEP/project-spec/meta-user/recipes-apps/testapp" already exists.
WARNING: --force parameter specified, overwriting
INFO: New apps successfully created in /home/mrzhang/works/MZ702P_FEP/project-spec/meta-user/recipes-apps/testapp
INFO: Enabling created component...
INFO: sourcing bitbake
INFO: oldconfig rootfs
INFO: testapp has been enabled
Failed to open PetaLinux lib: librdi_commonxillic.so: cannot open shared object file: No such file or directory.
Solution:
sudo echo "/opt/pkg/petalinux/2018.3/tools/lib" > /etc/ld.so.conf.d/petalinux.so.conf
sudo ldconfig
Extended content:
Solution to ‘cannot open shared object file’ (Linux ):
1. Prompt when calling the dynamic library .so file in Linux:
cannot open shared object file: No such file or directory
Solution:
1. At this time, enter ldd xxx to check which libraries are missing
libmysqlcppconn.so.7 => not found
libboost_system.so.1.64.0 => not found
2. Set variable LD_LIBRARY_PATH
sudo gedit ~/.bashrc
Add on the last line:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/your/path
Re-open bash and then ldd to find the library path.
2. (Recommended) Modify the shared library configuration file /etc/ld.so.conf
/etc/ld.so.conf
1. Setting:
sudo gedit /etc/ld.so.conf
2. Add library path:
include /etc/ld.so.conf.d/*.conf
/home/xxx/Documents/core/Linux/Test/src/Test
Save and exit
3. Make the configuration effective immediately
sudo ldconfig
Read More:
- petalinux-build Error: ERROR: Task (/opt/pkg/petalinux/components/yocto/source/aarch64/layers/meta-xilinx-tools/recipes-bsp/fsbl/fsbl_git.bb:do_compile) failed with exit code ‘1’
- [Solved] error while loading shared libraries: libjson.so.0: cannot open shared object file: No such file or
- [Solved] mongod: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No s
- [Solved] ××: error while loading shared libraries: ××.so.19: cannot open shared object file: No such file or directory
- [Solved] error while loading shared libraries: libmpc.so.3: cannot open shared object file
- [Solved] error while loading shared libraries: libmysqlclient.so.20: cannot open shared object file: No such…
- [Solved] Ubuntu Compile AOSP Error: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
- Linux Ubuntu ImportError: Libtk8.5.so: cannot open shared object file:No such file Install tkinter Library
- [Solved] /usr/local/libexec/mecab/mecab-dict-index: error while loading shared libraries: libmecab.so.2: cannot open shared object file: No such file or directory
- [Solved] ImportError:lib***.so–cannot open shared object file: No such…(pycharm/clion Error but shell No Error)
- [Solved] Python Import mmcv Warning: ImportError: libGL.so.1: cannot open shared object file: No such file or directory
- [Solved] openssl error: libcrypto.so.1.0.0: cannot open shared object file: Error 40
- Error: loading shared libraries: cannot open shared object file: No such file or directory
- Petalinux-boot –jtag error [How to Solve]
- Centos7.2 Install vscode Error: error while loading shared libraries: libxkbcommon.so.0: cannot open shared pro
- [Ubuntu] How to Solve dpkg Error: dpkg: error: failed to open package info file ‘/usr/local/var/lib/dpkg/status’ for reading: No such file or directory
- [Solved] ERROR: ld.so: object ‘/$LIB/libonion.so‘ from /etc/ld.so.preload
- Vmware virtual Mechine connect VScode Error: channel 3: open failed: administratively prohibited: open failed
- [Solved] Linux – error: cannot open Packages database in /var/lib/rpm
- [Solved] gawk: error while loading shared libraries: libreadline.so.4