设置 NRF Connect SDK 时缺少共享库 libunistring.so.2

问题描述 投票:0回答:1

在执行“安装 nRF Connect SDK”时,我遇到了以下问题。我已经设置了 Zephyr SDK 0.16.1,并且已经安装了安装指南中的所有基本要求。:

jwielink@ConnectON:~/ncs> nrfutil toolchain-manager launch --shell

Initializing shell environment!

bash-5.2$ west init -m https://github.com/nrfconnect/sdk-nrf --mr v2.5.1
=== Initializing in /home/jwielink/ncs
--- Cloning manifest repository from https://github.com/nrfconnect/sdk-nrf, rev. v2.5.1
Cloning into '/home/jwielink/ncs/.west/manifest-tmp'...
/home/jwielink/ncs/toolchains/7795df4459/usr/local/libexec/git-core/git-remote-https: error while loading shared libraries: libunistring.so.2: cannot open shared object file: No such file or directory
FATAL ERROR: command exited with status 128: git clone --branch v2.5.1 https://github.com/nrfconnect/sdk-nrf /home/jwielink/ncs/.west/manifest-tmp
bash-5.2$ 

我使用的是 OpenSUSE Tumbleweed。

我尝试通过将库添加到我的 LD_LIBRARY_PATH 来解决它,但无济于事:

Initializing shell environment!

bash-5.2$ sudo find / -name libunistring.so.2
find: File system loop detected; ‘/.snapshots/1/snapshot’ is part of the same file system loop as ‘/’.
/home/jwielink/zephyr-sdk-0.16.1/sysroots/x86_64-pokysdk-linux/usr/lib/libunistring.so.2
find: ‘/run/user/1000/doc’: Permission denied
find: ‘/run/user/1000/gvfs’: Permission denied
bash-5.2$ echo $LD_LIBRARY_PATH
/home/jwielink/ncs/toolchains/7795df4459/usr/lib:/home/jwielink/ncs/toolchains/7795df4459/usr/lib/x86_64-linux-gnu:/home/jwielink/ncs/toolchains/7795df4459/usr/local/lib:/home/jwielink/.nrfutil/lib/nrfutil-toolchain-manager:/usr/local/lib:/home/jwielink/zephyr-sdk-0.16.1/sysroots/x86_64-pokysdk-linux/usr/lib/libunistring.so.2
bash-5.2$ 

仍然遇到同样的问题。

linux shared-libraries zephyr-rtos nordic-semi
1个回答
0
投票

好吧,我不确定发生了什么。

但我刚刚决定不使用工具链管理器:

source ~/zephyrproject/.venv/bin/activate
rm -r .west
west init -m https://github.com/nrfconnect/sdk-nrf --mr v2.5.1

对于尚未建立 Zephyr 项目的任何人: https://docs.zephyrproject.org/latest/develop/getting_started/index.html

© www.soinside.com 2019 - 2024. All rights reserved.