欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 文旅 > 文化 > Ubuntu24.04版本解决RK3568编译器 libmpfr.so.4: cannot open shared object

Ubuntu24.04版本解决RK3568编译器 libmpfr.so.4: cannot open shared object

2025/5/19 3:03:16 来源:https://blog.csdn.net/weixin_43588481/article/details/147978047  浏览:    关键词:Ubuntu24.04版本解决RK3568编译器 libmpfr.so.4: cannot open shared object

问题描述

在Ubuntu24.04版本上编译RK3568应用程序关于libmpfr.so.4: cannot open shared object问题,如下所示:

/tools/ToolsChain/rockchip/rockchip_rk3568/host/bin/../libexec/gcc/aarch64-buildroot-linux-gnu/9.3.0/cc1plus: error while loading shared libraries: libmpfr.so.4: cannot open shared object file: No such file or directory
make: *** [Makefile:55: publib/iniparser/dictionary.o] Error 1

解决方案

将高版本的 libmpfr(如 libmpfr.so.6),手动创建符号链接:
执行以下命令
sudo find / -name "libmpfr.so.6"
找到libmpfr.so.6文件的位置,如下图所示:
在这里插入图片描述
执行以下命令添加链接

sudo ln -s libmpfr.so.6 libmpfr.so.4

在这里插入图片描述
之后到需要编译的应用程序目录重新编译即可。

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

热搜词