OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 3256|回复: 1

STM32MP157 QT交叉编译环境搭建V1.1环境搭建失败,qmake和交叉编译器arm-ostl-linux-gnueabi-gcc无法使用

[复制链接]

1

主题

6

帖子

0

精华

初级会员

Rank: 2

积分
58
金钱
58
注册时间
2014-7-14
在线时间
10 小时
发表于 2022-3-21 16:41:30 | 显示全部楼层 |阅读模式
12金钱
如下所示,分别在全新安装的ubuntu16.04,18.04,20.04系统,安装st-example-image-qtwayland-openstlinux-weston-stm32mp1-x86_64-toolchain-3.1-snapshot.sh,
使用时均出现库错误,手动安装32位库,libstdc++库都不行。
同一系统安装无QT的SDK  stm32mp1-openstlinux-5.4-dunfell-mp1-20-06-24后可正常使用。

syg@syg-PC:~$ chmod +x ./st-example-image-qtwayland-openstlinux-weston-stm32mp1-x86_64-toolchain-3.1-snapshot.sh
syg@syg-PC:~$ sudo mkdir /opt/crosstool
[sudo] password for syg:
syg@syg-PC:~$ sudo chown syg.syg /opt/crosstool
syg@syg-PC:~$ ./st-example-image-qtwayland-openstlinux-weston-stm32mp1-x86_64-toolchain-3.1-snapshot.sh
ST OpenSTLinux - Weston - (A Yocto Project Based Distro) SDK installer version 3.1-snapshot
===========================================================================================
Enter target directory for SDK (default: /opt/st/stm32mp1/3.1-snapshot): /opt/crosstool/stm32mp1-qt5
You are about to install the SDK to "/opt/crosstool/stm32mp1-qt5". Proceed [Y/n]? y
Extracting SDK................................................................................................................done
Setting it up...done
SDK has been successfully set up and is ready to be used.
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
$ . /opt/crosstool/stm32mp1-qt5/environment-setup-cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi
syg@syg-PC:~$ . /opt/crosstool/stm32mp1-qt5/environment-setup-cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi
qmake: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
qmake: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
qmake: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
qmake: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
syg@syg-PC:~$
syg@syg-PC:~$
syg@syg-PC:~$ source /opt/crosstool/stm32mp1-qt5/environment-setup-cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi
qmake: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
qmake: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
qmake: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
qmake: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
syg@syg-PC:~$ arm-ostl-linux-gnueabi-gcc -v
arm-ostl-linux-gnueabi-gcc: error while loading shared libraries: libm.so.6: cannot open shared object file: No such file or directory
syg@syg-PC:~$
syg@syg-PC:~$ uname -a
Linux syg-PC 4.15.0-112-generic #113~16.04.1-Ubuntu SMP Fri Jul 10 04:37:08 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
syg@syg-PC:~$


正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

4

主题

67

帖子

0

精华

金牌会员

Rank: 6Rank: 6

积分
1011
金钱
1011
注册时间
2021-5-25
在线时间
185 小时
发表于 2022-3-22 15:43:22 | 显示全部楼层
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2024-6-10 04:14

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表