[lxc-devel] 答复: 答复: ask for Android building script

朱敏(寻龙) albert.zm at alibaba-inc.com
Tue Oct 14 07:59:14 UTC 2014


Failed at very start stage:
zhumin at ubuntu:~/workspace/lxc-ci$ sudo bin/build-tarballs git://github.com/lxc/lxc master HEAD /tmp/tarballs
 ==> Defined c00b40f6-53b9-11e4-abde-000c299b1c1d as ubuntu trusty amd64
 ==> Creating rootfs
lxc_container: container creation template for c00b40f6-53b9-11e4-abde-000c299b1c1d failed
Traceback (most recent call last):
  File "bin/build-tarballs", line 33, in <module>
    build_env.setup()
  File "./lxc_ci/__init__.py", line 128, in setup
    raise Exception("Failed to create the rootfs")
Exception: Failed to create the rootfs
 ==> Cleaning up the environment
 ==> Exitting with status UNSTABLE

-----邮件原件-----
发件人: lxc-devel [mailto:lxc-devel-bounces at lists.linuxcontainers.org] 代表 Stéphane Graber
发送时间: 2014年10月14日 15:28
收件人: LXC development mailing-list
主题: Re: [lxc-devel] 答复: ask for Android building script

The lxc python module is in the main upstream git branch, that's the standard python3 binding for LXC.

So typically, on a system that has python3-lxc installed, you can get an Android build by:
 - git clone git://github.com/lxc/lxc-ci
 - cd lxc-ci/deps

 - Download the arm Android NDK for x86_64 as android-ndk-linux-x86_64.tar.bz2
 - Copy genetlink.h from a recent armhf Linux distro (not included in Android NDK)
 - (See the README for the other files though you shouldn't need them)

 - cd ..
 - mkdir -p /tmp/tarballs /tmp/android
 - sudo bin/build-tarballs git://github.com/lxc/lxc master HEAD /tmp/tarballs/
 - sudo bin/build-android /tmp/tarballs/lxc.tar.gz /tmp/android

On Tue, Oct 14, 2014 at 03:09:31PM +0800, 朱敏(寻龙) wrote:
> I have read the lxc_ci __init__.py. It imports lxc module, is this module in lxc source tree. Is there any readme or guide to explain how to setup the build environment?
> 
> -----邮件原件-----
> 发件人: lxc-devel [mailto:lxc-devel-bounces at lists.linuxcontainers.org] 代表 
> Stéphane Graber
> 发送时间: 2014年10月13日 17:36
> 收件人: LXC development mailing-list
> 主题: Re: [lxc-devel] ask for Android building script
> 
> On Mon, Oct 13, 2014 at 04:30:12PM +0800, 朱敏(寻龙) wrote:
> > Dear all,
> > 
> > Anyone can kindly send me the android building script? I want to 
> > integrate lxc into android for some experiment test.
> 
> The current build script can be found in github.com/lxc/lxc-ci
> 
> > 
> >  
> > 
> > Thanks a lot
> > 
> >  
> > 
> 
> > _______________________________________________
> > lxc-devel mailing list
> > lxc-devel at lists.linuxcontainers.org
> > http://lists.linuxcontainers.org/listinfo/lxc-devel
> 
> 
> --
> Stéphane Graber
> Ubuntu developer
> http://www.ubuntu.com
> 
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel

--
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com



More information about the lxc-devel mailing list