在linux上开发嘉楠耘智K210依赖库的问题

首先放出我IDE编译时出现的问题:

[ INFO] /home/wenhan/k210/KendryteIDE/LocalPackage/toolchain/bin/../libexec/gcc/riscv64-unknown-elf/8.2.0/cc1: error while loading shared libraries: libisl.so.19: cannot open shared object file: No such file or directory
[ INFO] /home/wenhan/k210/KendryteIDE/LocalPackage/toolchain/bin/../libexec/gcc/riscv64-unknown-elf/8.2.0/cc1: error while loading shared libraries: libisl.so.19: cannot open shared object file: No such file or directory
[ INFO] /home/wenhan/k210/KendryteIDE/LocalPackage/toolchain/bin/../libexec/gcc/riscv64-unknown-elf/8.2.0/cc1: error while loading shared libraries: libisl.so.19: cannot open shared object file: No such file or directory
[ INFO] kendryte-standalone-sdk/CMakeFiles/kendryte-standalone-sdk.dir/build.make:88: recipe for target 'kendryte-standalone-sdk/CMakeFiles/kendryte-standalone-sdk.dir/lib/bsp/entry_user.c.obj' failed
[ INFO] make[2]: *** [kendryte-standalone-sdk/CMakeFiles/kendryte-standalone-sdk.dir/lib/bsp/entry_user.c.obj] Error 1
[ INFO] make[2]: *** 正在等待未完成的任务....
[ INFO] make[2]: *** [kendryte-standalone-sdk/CMakeFiles/kendryte-standalone-sdk.dir/lib/bsp/entry.c.obj] Error 1
[ INFO] make[2]: *** [kendryte-standalone-sdk/CMakeFiles/kendryte-standalone-sdk.dir/lib/bsp/crt.S.obj] Error 1
[ INFO] make[1]: *** [kendryte-standalone-sdk/CMakeFiles/kendryte-standalone-sdk.dir/all] Error 2
[ INFO] kendryte-standalone-sdk/CMakeFiles/kendryte-standalone-sdk.dir/build.make:75: recipe for target 'kendryte-standalone-sdk/CMakeFiles/kendryte-standalone-sdk.dir/lib/bsp/entry.c.obj' failed
[ INFO] kendryte-standalone-sdk/CMakeFiles/kendryte-standalone-sdk.dir/build.make:62: recipe for target 'kendryte-standalone-sdk/CMakeFiles/kendryte-standalone-sdk.dir/lib/bsp/crt.S.obj' failed
[ INFO] CMakeFiles/Makefile2:127: recipe for target 'kendryte-standalone-sdk/CMakeFiles/kendryte-standalone-sdk.dir/all' failed
[ INFO] Makefile:83: recipe for target 'all' failed
[ INFO] make: *** [all] Error 2
[ INFO]
[ INFO] Build Error: /home/wenhan/k210/KendryteIDE/LocalPackage/cmake/bin/cmake exited with code 2.

这明显是k210的依赖库的问题,我就在~/.bashrc上添加了依赖库的路径 export LD_LIBRARY_PATH=路径,添加完毕之后,重新编译还是没有用。然后在换了一个 sudo vi /etc/profile 在这个文件下添加 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:路径 export LD_LIBRARY_PATH 添加之后在终端输入 soucre /etc/profile 发现问题解决了。这应该是大部分编译C/C++依赖库的问题,因为我也用linux没多久,所以慢慢积累一些小问题的解决方式吧。

你可能感兴趣的:(linux系统,电子通信硬件,Python与AI)