如何在64位环境下编译armhf的deb包?

编译安装或者制作Deb包
回复
zcarrt
帖子: 12
注册时间: 2011-05-10 12:58
送出感谢: 0
接收感谢: 0

如何在64位环境下编译armhf的deb包?

#1

帖子 zcarrt » 2013-04-30 23:04

这两个个贴子里提到用64位系统编译32位程序
http://blog.chinaunix.net/uid-16974460-id-295999.html
http://www.linuxdiyf.com/viewarticle.php?id=109006

请问如何在64位环境下编译armhf程序?
ubuntu13.04系统要安装什么兼容包??用arm系统编译太慢了
axlrose
帖子: 69
注册时间: 2007-02-11 15:58
送出感谢: 0
接收感谢: 0

Re: 如何在64位环境下编译armhf的deb包?

#2

帖子 axlrose » 2013-09-02 13:17

目前我也在关注交叉制作debian的arm包的问题


http://www.cnx-software.com/2012/05/02/ ... in-ubuntu/
https://wiki.debian.org/Multiarch/HOWTO
https://wiki.linaro.org/Platform/DevPla ... gMultiArch
https://wiki.debian.org/BuildingCrossCompilers

目前正在试 xdeb的方式,不过编译完后检测阶段提示 少了perl的模块错误,使用
CROSS_COMPILE=arm-linux-gnueabihf- dpkg-buildpackage -b -aarmel 来构建像zlib包是成功的
axlrose
帖子: 69
注册时间: 2007-02-11 15:58
送出感谢: 0
接收感谢: 0

Re: 如何在64位环境下编译armhf的deb包?

#3

帖子 axlrose » 2013-09-02 16:10

代码: 全选

dpkg-buildpackage: binary only upload (no source included)
Built packages: zlib1g_1.2.7.dfsg-13_armhf.deb zlib1g-dev_1.2.7.dfsg-13_armhf.deb zlib1g-dbg_1.2.7.dfsg-13_armhf.deb zlib-bin_1.2.7.dfsg-13_armhf.deb
lintian -C xdeb -o zlib_1.2.7.dfsg-13_armhf.changes
warning: the authors of lintian do not recommend running it with root privileges!
Can't locate Util.pm in @INC (@INC contains: /usr/share/lintian/lib /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14
 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at /usr/share/lintian/checks/xdeb line 28.
BEGIN failed--compilation aborted at /usr/share/lintian/checks/xdeb line 28.
Compilation failed in require at /usr/bin/lintian line 1919.
cannot remove path when cwd is /tmp/temp-lintian-lab-SKjJMr6YVf/pool/z/zlib/zlib-bin_1_1.2.7.dfsg-13_armhf_binary for /tmp/temp-lintian-lab-SKjJMr6YVf:  at /usr/share/perl/5.14/File/Te
mp.pm line 902
编译生成 armhf的deb是没问题的,在lintian检测时出错,但并不会影响使用的包
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=708787

代码: 全选

$ dpkg -S /usr/share/lintian/checks/xdeb
xdeb: /usr/share/lintian/checks/xdeb

I can fix the error by manually editing line 28 like this:

-use Util;
+use Lintian::Util;
rediscover
帖子: 3173
注册时间: 2010-01-13 23:26
送出感谢: 0
接收感谢: 12 次

Re: 如何在64位环境下编译armhf的deb包?

#4

帖子 rediscover » 2013-11-27 14:36

装 cross toolchain
Here I am.
Ubuntu 桌面培训 - 全中文官方文档,含汉化截图,提供PDF
回复

回到 “编译或打包”