Toybrick

3399pro是否支持编译运行32位程序?

buyishengun

中级会员

积分
394
发表于 2020-9-24 16:31:11    查看: 4664|回复: 2 | [复制链接]    打印 | 显示全部楼层
如题,3399pro是否支持编译运行32位程序?
如果可以的话,要如何操作才能编译32位程序并运行?

回复

使用道具 举报

jefferyzhang

版主

积分
12844
发表于 2020-9-24 16:41:11 | 显示全部楼层
当然,64bit 32bit都可运行。
如何编译百度下就知道了,gcc一般都带有-m32参数
回复

使用道具 举报

buyishengun

中级会员

积分
394
 楼主| 发表于 2020-9-25 08:52:13 | 显示全部楼层
搞定了,参考:
https://blog.csdn.net/angelxy157 ... rm=aarch64%20arm%20编译32位程序

dpkg --add-architecture armhf
apt-get update
apt-get install libc6:armhf libstdc++6:armhf
apt-get install libc6-dev:armhf
apt-get install gcc-multilib-arm-linux-gnueabihf
apt-get install binutils-arm-linux-gnueabihf
apt-get install g++-multilib-arm-linux-gnueabihf
apt install doxygen:armhf
apt install transfig:armhf
apt install transfig
apt install imagemagick:armhf
apt install gdb:armhf

如果想使用armel,则:
dpkg --add-architecture armel
apt-get update
然后在安装相应的交叉编译工具链

armel与armhf区别,可以自行百度。
回复

使用道具 举报

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

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


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