Package Details: anbox-git 1:r1358.84f0268-7

Git Clone URL: https://aur.archlinux.org/anbox-git.git (read-only, click to copy)
Package Base: anbox-git
Description: Running Android in a container
Upstream URL: http://anbox.io/
Licenses: GPL3
Conflicts: anbox-launchers
Replaces: anbox-launchers
Submitter: irtimmer
Maintainer: C_Schmidpeter (ahmubashshir, chaotic-aur)
Last Packager: ahmubashshir
Votes: 156
Popularity: 1.66
First Submitted: 2017-04-12 21:41 (UTC)
Last Updated: 2022-01-26 18:35 (UTC)

Required by (1)

Sources (18)

Pinned Comments

ahmubashshir commented on 2022-01-09 17:34 (UTC) (edited on 2022-01-09 17:36 (UTC) by ahmubashshir)

Guys, please don't flag this package because of some other pkgbuilds, specially not if
any pkgbuild providing anbox-image fails to build, contact the maintainer of that faulty pkgbuild.

And remember, this is AUR(Arch User Repository), it doesn't provide any prebuilt package,
it only provides PKGBUILDs(recipe for building libalpm package).
You MUST rebuild the package yourself when the dependency gets soname bump
(when it complains about missing library).

irtimmer commented on 2018-01-19 10:35 (UTC) (edited on 2019-05-24 21:14 (UTC) by irtimmer)

WARNING: Before you go ahead and install Anbox on your system, please keep in mind that Anbox is not yet stable. Not every feature is working well yet. You will find bugs, see crashes and unexpected problems. As this is a Git package, patches should go upstream as they will not be bundled with the package.

Latest Comments

cyberpunkrocker commented on 2022-06-13 11:27 (UTC)

@JoeCool I modified the anbox-modules-dkms PKGBUILD to build and install only the ashmem module. The module builds & installs fine, starting anbox-container-manager.service seems to also start without issues (while watching journalctl in another terminal), but whenever I try to run any app, journalctl floods with messages, mostly referring to something segfaulting and core-dumping, hundreds of lines in a few seconds... and of course the app never starts. So, making anbox to work with 5.18 is not so straightforward. I'm now back to linux-zen-5.17.9, until someone figures something out.

JoeCool commented on 2022-06-02 12:33 (UTC) (edited on 2022-06-02 12:33 (UTC) by JoeCool)

@cyberpunkrocker I managed to just "make" the kernel module and load it with insmod. I was still using binderfs from zen-kernel as normal.
After that Anbox tried to boot and began to start container apps. I had a (possibly) unrelated crash soon after due to a read-only filesystem of the container and android processes dumping core. I think my image is broken. As soon as I find a bit of time I will tinker some more.

Anbox itself seems to be working with 5.18.1-zen1-1-zen + insmod ashmem_linux.ko from aur/anbox-modules-dkms. The binder included with anbox-modules-dkms seems to be incompatible but isn't needed anyways.

cyberpunkrocker commented on 2022-06-01 17:40 (UTC)

anbox-modules-dkms may help here, please see the comments there. I do not have time to try it out myself for a few days, so please give a shout if you manage to make it work.

cyberpunkrocker commented on 2022-06-01 17:28 (UTC)

@JoeCool You're right, anbox does not work with linux-zen-5.18* any more, at least not with the same configuration as it used to. The linux-zen-5.18.1 still has binderfs, but the ashmem module is gone:

#
# Android
#
CONFIG_ANDROID=y
CONFIG_ANDROID_BINDER_IPC=y
CONFIG_ANDROID_BINDERFS=y
CONFIG_ANDROID_BINDER_DEVICES=""
# CONFIG_ANDROID_BINDER_IPC_SELFTEST is not set
# end of Android

Here's a dicussion of the issue in the anbox github: https://github.com/anbox/anbox/issues/2042 It seems that the way to make anbox work means that the ashmem module needs to be built externally. So we are basically back to the pre-binderfs ages...

JoeCool commented on 2022-06-01 16:51 (UTC) (edited on 2022-06-01 17:28 (UTC) by JoeCool)

Does Anbox still work with linux-zen? It looks like ashmem has been removed from linux-zen. At least 5.18.1-zen1-1-zen doesn't seem to have it any longer.

EDIT: compiling ashmem_linux from aur/anbox-modules-dkms manually and loading it with insmod seems to work.

realkstrawn93 commented on 2022-03-29 15:49 (UTC) (edited on 2022-03-29 16:08 (UTC) by realkstrawn93)

Need to add the following anbox.install script:

post_install() {
    if [ "$(stat -c %d:%i /)" != "$(stat -c %d:%i /proc/1/root/.)" ]; then
        # can't use `--now` when running in a chroot
        systemctl enable dev-binderfs.mount
    else
        systemctl enable --now dev-binderfs.mount
    fi
}

pre_remove() {
    if [ "$(stat -c %d:%i /)" != "$(stat -c %d:%i /proc/1/root/.)" ]; then
        # can't use `--now` when running in a chroot
        systemctl disable dev-binderfs.mount
    else
        systemctl disable --now dev-binderfs.mount
    fi
}

Will eliminate the need for users to enable that mount unit manually upon installation.

simona commented on 2022-03-09 01:35 (UTC)

Installing libcpufeatures-git will remove: libvolk

hclover commented on 2022-02-16 04:01 (UTC) (edited on 2022-02-16 04:05 (UTC) by hclover)

I work around the libvolk-libcpufeatures conflict by installing a dummy package that installs no file, depends on libvolk and provides libcpufeatures. Then you need not update this dummy package or patch any other packages...

df8oe commented on 2022-02-12 09:21 (UTC)

There is a dependency problem. anbox-git has libcpufeatures as dependency which is 100% included in libvolk. I have other packages which depends on libvolk. so there is always a files conflict if I hold both packages on my system. Is it possible to set the dependency to libvolk?

bartus commented on 2022-02-09 11:02 (UTC)

@cyberpunkrocker: better switch libvolk to external libcpufeatures

Relevent patch https://aur.archlinux.org/packages/libvolk-git#comment-851034

cyberpunkrocker commented on 2022-01-16 20:14 (UTC)

Could you please remove libcpufeatures dependency and -patch? Currently, libcpufeatures is badly in conflict with libvolk (both are trying to install the same files), so I cannot install libcpufeatures on my system. And libvolk is much more important for me than libcpufeatures...

Elijahr241 commented on 2022-01-15 17:33 (UTC) (edited on 2022-01-15 17:47 (UTC) by Elijahr241)

  1. You should add anbox-modules-dkms as a dependency, as it won't run without.

  2. Both packages attempt to add 99-anbox.rules, resulting in the installation being broken until you install this package, manually delete 99-anbox.rules, then install the modules package. It should probably be removed from this package since it's more related to the kernel modules anyways.

  3. The checksum for opengapps always fails, for some reason.

ahmubashshir commented on 2022-01-09 17:34 (UTC) (edited on 2022-01-09 17:36 (UTC) by ahmubashshir)

Guys, please don't flag this package because of some other pkgbuilds, specially not if
any pkgbuild providing anbox-image fails to build, contact the maintainer of that faulty pkgbuild.

And remember, this is AUR(Arch User Repository), it doesn't provide any prebuilt package,
it only provides PKGBUILDs(recipe for building libalpm package).
You MUST rebuild the package yourself when the dependency gets soname bump
(when it complains about missing library).

xiretza commented on 2022-01-09 13:17 (UTC)

@iib: that's not a problem with this package, but with anbox-image-gapps... Anyway, what that package does is very shifty, they really shouldn't be running curl outside any packaging function like that.

iib commented on 2022-01-09 12:49 (UTC)

hELP!When installing, I see this error

[code] /usr/share/makepkg/source/file.sh: line 72: /usr/bin/curl: Argument list too long ==> ERROR: Failure while downloading https://downloads.sourceforge.net/project/opengapps/x86_64/{"archs":{"arm":{"apis":{"10.0":{"variants":[{"name":"pico","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-10.0-pico-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-10.0-pico-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-10.0-pico-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-10.0-20211221.txt"},{"name":"nano","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-10.0-nano-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-10.0-nano-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-10.0-nano-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-10.0-20211221.txt"},{"name":"micro","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-10.0-micro-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-10.0-micro-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-10.0-micro-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-10.0-20211221.txt"},{"name":"mini","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-10.0-mini-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-10.0-mini-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-10.0-mini-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-10.0-20211221.txt"},{"name":"full","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-10.0-full-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-10.0-full-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-10.0-full-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-10.0-20211221.txt"},{"name":"stock","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-10.0-stock-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-10.0-stock-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-10.0-stock-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-10.0-20211221.txt"},{"name":"super","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-10.0-super-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-10.0-super-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-10.0-super-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-10.0-20211221.txt"},{"name":"aroma","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-10.0-aroma-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-10.0-aroma-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-10.0-aroma-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-10.0-20211221.txt"},{"name":"tvmini","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-10.0-tvmini-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-10.0-tvmini-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-10.0-tvmini-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-10.0-20211221.txt"},{"name":"tvstock","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-10.0-tvstock-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-10.0-tvstock-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-10.0-tvstock-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-10.0-20211221.txt"}]},"11.0":{"variants":[{"name":"pico","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-11.0-pico-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-11.0-pico-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-11.0-pico-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-11.0-20211221.txt"},{"name":"nano","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-11.0-nano-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-11.0-nano-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-11.0-nano-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-11.0-20211221.txt"},{"name":"micro","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-11.0-micro-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-11.0-micro-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-11.0-micro-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-11.0-20211221.txt"},{"name":"mini","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-11.0-mini-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-11.0-mini-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-11.0-mini-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-11.0-20211221.txt"},{"name":"full","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-11.0-full-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-11.0-full-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-11.0-full-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-11.0-20211221.txt"},{"name":"stock","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-11.0-stock-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-11.0-stock-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-11.0-stock-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-11.0-20211221.txt"},{"name":"super","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-11.0-super-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-11.0-super-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-11.0-super-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-11.0-20211221.txt"},{"name":"aroma","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-11.0-aroma-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-11.0-aroma-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-11.0-aroma-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-11.0-20211221.txt"},{"name":"tvmini","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-11.0-tvmini-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-11.0-tvmini-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-11.0-tvmini-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-11.0-20211221.txt"},{"name":"tvstock","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-11.0-tvstock-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-11.0-tvstock-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-11.0-tvstock-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-11.0-20211221.txt"}]},"4.4":{"variants":[{"name":"pico","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-4.4-pico-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-4.4-pico-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-4.4-pico-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-4.4-20211221.txt"},{"name":"nano","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-4.4-nano-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-4.4-nano-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-4.4-nano-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-4.4-20211221.txt"}]},"5.0":{"variants":[{"name":"pico","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-5.0-pico-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-5.0-pico-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-5.0-pico-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-5.0-20211221.txt"},{"name":"nano","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-5.0-nano-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-5.0-nano-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-5.0-nano-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-5.0-20211221.txt"}]},"5.1":{"variants":[{"name":"pico","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-5.1-pico-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-5.1-pico-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-5.1-pico-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-5.1-20211221.txt"},{"name":"nano","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-5.1-nano-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-5.1-nano-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-5.1-nano-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-5.1-20211221.txt"},{"name":"stock","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-5.1-stock-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-5.1-stock-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-5.1-stock-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-5.1-20211221.txt"},{"name":"aroma","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-5.1-aroma-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-5.1-aroma-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-5.1-aroma-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-5.1-20211221.txt"}]},"6.0":{"variants":[{"name":"pico","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-6.0-pico-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-6.0-pico-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-6.0-pico-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-6.0-20211221.txt"},{"name":"nano","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-6.0-nano-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-6.0-nano-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-6.0-nano-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-6.0-20211221.txt"},{"name":"stock","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-6.0-stock-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-6.0-stock-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-6.0-stock-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-6.0-20211221.txt"},{"name":"aroma","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-6.0-aroma-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-6.0-aroma-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-6.0-aroma-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-6.0-20211221.txt"},{"name":"tvmini","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-6.0-tvmini-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-6.0-tvmini-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-6.0-tvmini-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-6.0-20211221.txt"},{"name":"tvstock","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-6.0-tvstock-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-6.0-tvstock-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-6.0-tvstock-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-6.0-20211221.txt"}]},"7.0":{"variants":[{"name":"pico","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.0-pico-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.0-pico-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.0-pico-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-7.0-20211221.txt"},{"name":"nano","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.0-nano-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.0-nano-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.0-nano-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-7.0-20211221.txt"},{"name":"stock","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.0-stock-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.0-stock-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.0-stock-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-7.0-20211221.txt"},{"name":"aroma","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.0-aroma-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.0-aroma-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.0-aroma-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-7.0-20211221.txt"},{"name":"tvmini","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.0-tvmini-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.0-tvmini-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.0-tvmini-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-7.0-20211221.txt"},{"name":"tvstock","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.0-tvstock-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.0-tvstock-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.0-tvstock-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-7.0-20211221.txt"}]},"7.1":{"variants":[{"name":"pico","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.1-pico-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.1-pico-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.1-pico-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-7.1-20211221.txt"},{"name":"nano","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.1-nano-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.1-nano-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.1-nano-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-7.1-20211221.txt"},{"name":"micro","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.1-micro-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.1-micro-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.1-micro-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-7.1-20211221.txt"},{"name":"mini","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.1-mini-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.1-mini-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.1-mini-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-7.1-20211221.txt"},{"name":"full","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.1-full-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.1-full-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.1-full-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-7.1-20211221.txt"},{"name":"stock","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.1-stock-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.1-stock-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.1-stock-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-7.1-20211221.txt"},{"name":"super","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.1-super-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.1-super-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.1-super-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-7.1-20211221.txt"},{"name":"aroma","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.1-aroma-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.1-aroma-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.1-aroma-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-7.1-20211221.txt"},{"name":"tvmini","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.1-tvmini-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.1-tvmini-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.1-tvmini-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-7.1-20211221.txt"},{"name":"tvstock","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.1-tvstock-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.1-tvstock-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-7.1-tvstock-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-7.1-20211221.txt"}]},"8.0":{"variants":[{"name":"pico","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-8.0-pico-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-8.0-pico-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-8.0-pico-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-8.0-20211221.txt"},{"name":"nano","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-8.0-nano-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-8.0-nano-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-8.0-nano-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-8.0-20211221.txt"},{"name":"micro","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-8.0-micro-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-8.0-micro-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-8.0-micro-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-8.0-20211221.txt"},{"name":"mini","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-8.0-mini-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-8.0-mini-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-8.0-mini-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-8.0-20211221.txt"},{"name":"full","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-8.0-full-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-8.0-full-20211221.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-8.0-full-20211221.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/sources_report-arm-8.0-20211221.txt"},{"name":"stock","zip":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-8.0-stock-20211221.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/arm/20211221/open_gapps-arm-8.0-stock-20211221.zip.md5":"https://downloads.sourceforge.net/project/opengapps/x86/20211217/sources_report-x86-4.4-20211217.txt"}]},"5.0":{"variants":[{"name":"pico","zip":"https://downloads.sourceforge.net/project/opengapps/x86/20211217/open_gapps-x86-5.0-pico-20211217.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/x86/20211217/open_gapps-x86-5.0-pico-20211217.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/x86/20211217/open_gapps-x86-5.0-pico-20211217.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/x86/20211217/sources_report-x86-5.0-20211217.txt"},{"name":"nano","zip":"https://downloads.sourceforge.net/project/opengapps/x86/20211217/open_gapps-x86-5.0-nano-20211217.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/x86/20211217/open_gapps-x86-5.0-nano-20211217.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/x86/20211217/open_gapps-x86-5.0-nano-20211217.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/x86/20211217/sources_report-x86-5.0-20211217.txt"}]},"5.1":{"variants":[{"name":"pico","zip":"https://downloads.sourceforge.net/project/opengapps/x86/20211217/open_gapps-x86-5.1-pico-20211217.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/x86/20211217/open_gapps-x86-5.1-pico-20211217.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/x86/20211217/open_gapps-x86-5.1-pico-20211217.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/x86/20211217/sources_report-x86-5.1-20211217.txt"},{"name":"nano","zip":"https://downloads.sourceforge.net/project/opengapps/x86/20211217/open_gapps-x86-5.1-nano-20211217.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/x86/20211217/open_gapps-x86-5.1-nano-20211217.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/x86/20211217/open_gapps-x86-5.1-nano-20211217.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/x86/20211217/sources_report-x86-5.1-20211217.txt"},{"name":"stock","zip":"https://downloads.sourceforge.net/project/opengapps/x86/20211217/open_gapps-x86-5.1-stock-20211217.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/x86/20211217/open_gapps-x86-5.1-stock-20211217.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/x86/20211217/open_gapps-x86-5.1-stock-20211217.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/x86/20211217/sources_report-x86-5.1-20211217.txt"},{"name":"tvmini","zip":"https://downloads.sourceforge.net/project/opengapps/x86/20211217/open_gapps-x86-5.1-tvmini-20211217.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/x86/20211217/open_gapps-x86-5.1-tvmini-20211217.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/x86/20211217/open_gapps-x86-5.1-tvmini-20211217.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/x86/20211217/sources_report-x86-5.1-20211217.txt"},{"name":"tvstock","zip":"https://downloads.sourceforge.net/project/opengapps/x86/20211217/open_gapps-x86-5.1-tvstock-20211217.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/x86/20211217/open_gapps-x86-5.1-tvstock-20211217.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/x86/20211217/open_gapps-x86-5.1-tvstock-20211217.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/x86/20211217/sources_report-x86-5.1-20211217.txt"}]},"6.0":{"variants":[{"name":"pico","zip":"https://downloads.sourceforge.net/project/opengapps/x86/20211217/open_gapps-x86-6.0-pico-20211217.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/x86/20211217/open_gapps-x86-6.0-pico-20211217.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/x86/20211217/open_gapps-x86-6.0-pico-20211217.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/x86/20211217/sources_report-x86-6.0-20211217.txt"},{"name":"nano","zip":"https://downloads.sourceforge.net/project/opengapps/x86/20211217/open_gapps-x86-6.0-nano-20211217.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/opengapps/x86/20211217/open_gapps-x86-6.0-nano-20211217.zip.md5","version_info":"https://downloads.sourceforge.net/project/opengapps/x86/20211217/open_gapps-x86-6.0-nano-20211217.versionlog.txt","source_report":"https://downloads.sourceforge.net/project/opengapps/x86/20211217/sources_report-x86-6.0-20211217.txt"},{"name":"stock","zip":"https://downloads.sourceforge.net/project/opengapps/x86/20211217/open_gapps-x86-6.0-stock-20211217.zip","zip_size":0,"md5":"https://downloads.sourceforge.net/project/open.zip [/code]

hellraise007 commented on 2021-12-22 22:21 (UTC) (edited on 2021-12-22 22:23 (UTC) by hellraise007)

× anbox-container-manager.service - Anbox Container Manager
     Loaded: loaded (/usr/lib/systemd/system/anbox-container-manager.service; disabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Thu 2021-12-23 03:46:03 IST; 5s ago
    Process: 28027 ExecStart=/usr/bin/anbox container-manager --daemon --privileged --data-path=/var/lib/anbox (code=exited, status=127)
   Main PID: 28027 (code=exited, status=127)
        CPU: 2ms

Dec 23 03:46:03 madnix systemd[1]: Started Anbox Container Manager.
Dec 23 03:46:03 madnix anbox[28027]: /usr/bin/anbox: error while loading shared libraries: libboost_log.so.1.76.0: cannot open shared object file: No such file or directory
Dec 23 03:46:03 madnix systemd[1]: anbox-container-manager.service: Main process exited, code=exited, status=127/n/a
Dec 23 03:46:03 madnix systemd[1]: anbox-container-manager.service: Failed with result 'exit-code'.

I get this error the past few weeks. boost is 1.78, libicu is v70 (69 needed). I dint check past that because it breaks too many dependencies

Tested Kernel: linux-zen 5.15.10.zen1-1, linux-mainline-anbox 5.16rc5-1

tiziodcaio commented on 2021-12-05 13:43 (UTC) (edited on 2021-12-05 13:43 (UTC) by tiziodcaio)

Why not use lxc instead of lxc-git???

x1unix commented on 2021-10-21 01:05 (UTC)

Borked, not installable. Stuck at patches apply stage. y or n answer doesn't matter, package installation stops on patch apply error.

  -> Creating working copy of cpu_features git repo...                                                                                                                                                                                         
Cloning into 'cpu_features'...                                                                                                                                                                                                                 
done.                                                                                                                                                                                                                                          
==> Starting prepare()...                                                                                                                                                                                                                      
patching file src/anbox/container/lxc_container.cpp                                                                                                                                                                                            
patching file external/CMakeLists.txt                                                                                                                                                                                                          
patching file src/CMakeLists.txt                                                                                                                                                                                                               
patching file CMakeLists.txt                                                                                                                                                                                                                   
patching file src/anbox/cmds/launch.cpp                                                                                                                                                                                                        
Hunk #1 succeeded at 35 (offset 1 line).                                                                                                                                                                                                       
patching file data/desktop/anbox-android.directory
patching file data/desktop/anbox-android.menu
patching file src/anbox/cmds/launch.cpp
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file src/anbox/cmds/launch.cpp.rej
patching file src/anbox/cmds/launch.h
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file src/anbox/cmds/launch.h.rej
The next patch would create the file data/dbus/org.anbox.service,
which already exists!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored
==> ERROR: A failure occurred in prepare().
    Aborting...
 -> error making: anbox-git

bartus commented on 2021-10-20 17:54 (UTC) (edited on 2021-10-20 19:46 (UTC) by bartus)

PR:1918 was merged upstream, please drop it from sources/prepare().

I have a handy scriptlet you can wrap your patch call in to automatically skip and notify about upstream merged patches. http://ix.io/3Clr/diff

bendavis78 commented on 2021-10-20 15:55 (UTC)

Build fails when applying patches. I answered [n] to the prompts:

==> Starting prepare()...
patching file src/anbox/container/lxc_container.cpp
patching file external/CMakeLists.txt
patching file src/CMakeLists.txt
patching file CMakeLists.txt
patching file src/anbox/cmds/launch.cpp
Hunk #1 succeeded at 35 (offset 1 line).
patching file data/desktop/anbox-android.directory
patching file data/desktop/anbox-android.menu
patching file src/anbox/cmds/launch.cpp
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file src/anbox/cmds/launch.cpp.rej
patching file src/anbox/cmds/launch.h
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file src/anbox/cmds/launch.h.rej
The next patch would create the file data/dbus/org.anbox.service,
which already exists!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored
==> ERROR: A failure occurred in prepare().
    Aborting...

CichlaOcelaris commented on 2021-09-08 20:04 (UTC) (edited on 2021-09-08 21:28 (UTC) by CichlaOcelaris)

Is there any further config to do in order to anbox to show as an active device for Flutter/Code-OSS ?

sickcodes commented on 2021-09-02 00:44 (UTC) (edited on 2021-09-30 02:38 (UTC) by sickcodes)

Edit: modules updated here: https://aur.archlinux.org/packages/anbox-modules-dkms/

If anyone wants Android 11, I've added instructions for Arch here: https://github.com/sickcodes/droid-native

Some security concerns using the 2018 image as well as the kernel modules, but if anyone's having issues compiling the kernel for anbox, here is the extra config you will need:

CONFIG_ASHMEM=y
CONFIG_ANDROID=y
CONFIG_ANDROID_BINDER_IPC=y
CONFIG_ANDROID_BINDERFS=y
CONFIG_ANDROID_BINDER_DEVICES="binder,hwbinder,vndbinder"
CONFIG_SW_SYNC=y
CONFIG_UHID=m

Then boot with these kernel args:

binder.devices=binder,hwbinder,vndbinder,anbox-binder,anbox-hwbinder,anbox-vndbinder

ahmubashshir commented on 2021-08-28 12:01 (UTC)

@T2hhbmEK, dev-binderfs.mount assumes that you're not using ashmem-linux/binder-linux(non needed after 5.7) as it uses binderfs in-tree module. ConditionPathExists=!/dev/binder checks if you're not using binder-linux.

T2hhbmEK commented on 2021-08-25 23:00 (UTC)

dev-binderfs.mount

[Unit]
Description=Android Binder File System
ConditionPathExists=!/dev/binder
Before=anbox-container-manager.service
After=systemd-modules-load.service

[Mount]
Where=/dev/binderfs
What=binder
Type=binder
Options=nofail

[Install]
WantedBy=anbox-container-manager.service

add After=systemd-modules-load.service for custom kernel like linux-xanmod-anbox to auto load ashmem_linux, binder_linux by writing a /etc/modules-load.d/anbox.conf as instructed in Wiki.

$ cat /etc/modules-load.d/anbox.conf 
ashmem_linux
binder_linux

PedroHLC commented on 2021-08-20 17:18 (UTC) (edited on 2021-08-20 17:20 (UTC) by PedroHLC)

Either way, the package requires systemd to be installed during build, so adding it as a makedepends isn't a bad thing to do (even if it turns out to be redundant).

Yeah, looks like that's the consensus for "fixing it" while they discuss if base itself should be in base-devel. I'll add it.

EDIT: Done

xiretza commented on 2021-08-20 17:05 (UTC)

Rereading the aur-general thread, it looks like the consensus there was that base-devel is an implicit makedepends, while base is an implicit depends (but, unlike explicit depends, is not automatically installed in the build environment). Thus, if the package needs a non-base-devel package to build (even if it's in base), it should specify it in makedepends.

Either way, the package requires systemd to be installed during build, so adding it as a makedepends isn't a bad thing to do (even if it turns out to be redundant).

PedroHLC commented on 2021-08-20 16:48 (UTC)

@xiretza, well, we should always follow TUs and Arch's devs steps. As you can see in the Bugzilla I appended to my last comment: 1 - TU @eschwartz opened it because ZFS stopped building without systemd in base-devel. 2 - Dev's @seblu argument that base is mandatory and systemd is part of it. 3 - @eschwartz never added systemd to zfs-dkms after this and kept updating it...

xiretza commented on 2021-08-20 16:25 (UTC)

@PedroHLC ackshually, the wiki says that base-devel is assumed to be installed, not base :) there was a discussion about this on aur-general recently, I can't remember the exact outcome, but I'm assuming the wiki would've been updated if it had changed. https://wiki.archlinux.org/title/PKGBUILD#makedepends

PedroHLC commented on 2021-08-20 15:53 (UTC) (edited on 2021-08-20 15:57 (UTC) by PedroHLC)

@xiretza "systemd" is in "base", so the archwiki states for us to not add that. "dbus" is a "systemd" dependency, but according to the new rules, we shouldn't rely in transient dependencies, so you're right about this one.

Also, see https://bugs.archlinux.org/task/66762 to understand why base is required even for building's containers.

xiretza commented on 2021-08-20 13:34 (UTC)

Requires makedepends=('systemd' 'dbus').

C_Schmidpeter commented on 2021-08-13 19:33 (UTC) (edited on 2021-08-13 19:43 (UTC) by C_Schmidpeter)

@tsangares: This is an issue in the linux-zen-anbox package, as it shouldn't include that file. I am not sure what the linux-zen-anbox package does in addition to the linux-zen one (maybe it is obsolete?). If you install Anbox for the first time, I recommend following the wiki (https://wiki.archlinux.org/title/Anbox) setting it up using the linux-zen kernel as a starting point, as it is pre-built, and the the required kernel modules are compiled into out of the box there already.

tsangares commented on 2021-08-13 18:34 (UTC) (edited on 2021-08-13 18:34 (UTC) by tsangares)

This package is in conflict with a file from linux-zen-anbox.

anbox-git: /usr/lib/systemd/system/dev-binderfs.mount exists in filesystem (owned by linux-zen-anbox)

Not exactly sure which package I should be bringing this to. But if this packages checks to see if it exists first, that would be nice.

whenov commented on 2021-07-30 04:55 (UTC) (edited on 2021-07-30 04:55 (UTC) by whenov)

A warning occurs when starting systemd-networkd:

systemd-networkd[270]: /usr/lib/systemd/network/80-anbox-bridge.network:7: IPMasquerade=yes is deprecated, and it is handled as "ipv4" instead of "both". Please use "ipv4" or "both".

C_Schmidpeter commented on 2021-07-29 23:16 (UTC)

@PedroHLC I think that's a great idea. I have added @chaotic-aur to the maintainer list

C_Schmidpeter commented on 2021-07-29 22:44 (UTC)

@ssdjaggi: Did you manage to install the package by following the wiki as suggested by @Anty0?

Anty0 commented on 2021-07-23 08:10 (UTC)

@ssdjaggi https://wiki.archlinux.org/title/Anbox

Hope it helps. :)

ssdjaggi commented on 2021-07-23 04:33 (UTC)

I am new to arch please instruct me how to install anbox on my computer. I install it but its not working. Thanks in advance.

C_Schmidpeter commented on 2021-07-10 17:32 (UTC)

In case others experience that issue too: I've recently updated to linux-xanmod-anbox 5.12.15-1, but that seems to have caused mounting binderfs to fail. Running with linux-zen 5.12.15.zen1-1 now and it mounts normally again.

ahmubashshir commented on 2021-07-10 17:20 (UTC) (edited on 2021-07-10 17:24 (UTC) by ahmubashshir)

@cyberpunkrocker, about
1, we'll be sticking with lxc-git until the next revision bump.
2, This solution is only for wayland session, if your kernel doesn't have android support, this won't work.
3, Are you even a contributor of anbox upstream? read this and this. And afaik, lxc==4.0.9 was released before merging this. so only lxc-git worked when I tested, and they still didn't bump revision

@JuniorJPDJ, about
1, see @cyberpunkrocker/3
2, anbox upstream now provides the functionality provided by anbox-launchers-git, in #1639 and #1753, and these conflicts with anbox-launchers.

@emceebois, about this comment,
1. See @cyberpunkrocker/1.
2. You need to enable systemd-networkd to get networking in anbox. And sometimes it doesn't work with persistent naming of interfaces enabled, and if you didn't know, 'eth0' will only appear if you disable persistent naming of interfaces, with persistent naming, you'll get 'enpXsY' or something like that.
3. See @JuniorJPDJ/2.
4. See 1.

anbox-git compiles successfully with lxc, but the session manager dumps core...

C_Schmidpeter commented on 2021-07-10 16:58 (UTC)

@cyberpunkrocker Thanks for pointing that out. I have some local issue with mounting binderfs, which I'm fixing on my system. Then I'll update the dependencies and the other points pointed out.

cyberpunkrocker commented on 2021-07-10 16:00 (UTC)

There are still 'lxc-git' in depends= and 'lxc' in makedepends=. Can't you make up your mind which one you want? (Just asking)

cyberpunkrocker commented on 2021-07-10 15:48 (UTC) (edited on 2021-07-10 15:49 (UTC) by cyberpunkrocker)

anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity [ 2021-07-10 15:31:04] [daemon.cpp:61@Run] [org.freedesktop.DBus.Error.ServiceUnknown] The name org.anbox was not provided by any .service files

In case someone else has been struggling with anbox giving the previous error, here's the solution:

https://github.com/anbox/anbox/issues/1586

Weird issue, weird solution, no-one seems to know why it happens or why the solution works... but it works!

TL;DR EGL_PLATFORM=x11

PedroHLC commented on 2021-07-07 12:24 (UTC)

I've mirrored this repo in https://github.com/chaotic-aur/pkgbuild-anbox-git and invited current maintainers to maintain it.

Open PRs there and once merged I can ping @ahmubashshir on telegram to roll it back to here. Or @cschmid can add @chaotic-aur as co-maintainer and we'll have a GitHub action to automatically do it...

emceebois commented on 2021-07-05 22:44 (UTC)

I manually uninstalled lxc-git and reinstalled lxc 4.0.6 after installing the latest anbox-git. This allowed me to run the session manager again, but networking was broken and the fix described in https://github.com/anbox/anbox/issues/443 no longer worked, giving the error 'Cannot find device "eth0"'. I assume this is because anbox-bridge no longer comes with anbox-git and needs to be running for those commands to work.

If the maintainers could please address the following issues in the next build, that would be very helpful:

  1. Set the lxc dependency to the correct version.
  2. Restore anbox-bridge functionality
  3. Fix the issue @JuniorJPDJ identified of anbox-git now reporting conflict with anbox-launchers-git
  4. Fix the issue @cyberpunkrocker identified of duplicate entries in depends and makedepends

I understand this is a lot to ask. Please let me know if any additional information would be helpful in getting this package updated.

cyberpunkrocker commented on 2021-07-03 11:06 (UTC) (edited on 2021-07-03 11:06 (UTC) by cyberpunkrocker)

By the way, in the current PKGBUILD there are duplicate entries in 'depends=' and 'makedepends='. AFAIK 'makedepends' should include only those dependencies which are needed in build time, but NOT in runtime - so no dependencies should never be in both. Please fix the PKGBUILD.

PedroHLC commented on 2021-07-01 12:18 (UTC)

Last I checked Anbox didn't work with the latest LXC: https://github.com/anbox/anbox/issues/1801 but I didn't test it after it upgraded to 0.4.9 (as I kept lxc-git installed), but if it works then the lxc-git part of the patch can be reverted...

cyberpunkrocker commented on 2021-07-01 10:59 (UTC)

I was wondering about the 'lxc-git' dependency, too, so I replaced 'lxc-git' with 'lxc' in the PKGBUILD, replaced lxc-git package with the latest lxc, and rebuilt anbox-git. Builds and works fine, so far, so it seems that 'lxc-git' dependency is a bogus. Can others test this, too?

simona commented on 2021-07-01 10:20 (UTC)

lxcfs accept only lxc and not lxcf-git :-(

JuniorJPDJ commented on 2021-07-01 03:38 (UTC)

Also: why does it depend on lxc-git instead of lxc?

JuniorJPDJ commented on 2021-07-01 02:22 (UTC)

Why does it conflict with anbox-launchers-git ? anbox-launchers-git depends on that package

C_Schmidpeter commented on 2021-06-30 14:40 (UTC)

@ahmubashshir Added

ahmubashshir commented on 2021-06-30 13:13 (UTC)

Hi @cschmid, Can you add me as a co-maintainer?

PedroHLC commented on 2021-06-30 13:09 (UTC)

Hi @cschmid,

We have this building and working with this patch. Do you think you can apply it for now, and once upstream changes, revert it?

laichiaheng commented on 2021-06-29 03:50 (UTC)

It is not working at all.

PedroHLC commented on 2021-06-25 14:21 (UTC)

We filed an orphanage request, but no reply from TUs: https://lists.archlinux.org/pipermail/aur-requests/2021-June/054947.html

emceebois commented on 2021-06-25 13:18 (UTC) (edited on 2021-06-25 13:21 (UTC) by emceebois)

Can confirm others' experience of this package being out-of-date. Last update seems to have been nearly eight months ago. Is @irtimmer still active? Last November seems to be their last activity on the packages they maintain. They may be orphans.

ConnahGriffin commented on 2021-06-24 18:54 (UTC) (edited on 2021-06-24 19:20 (UTC) by ConnahGriffin)

@cyberpunkrocker I did, guess there's no harm doing it again. I'll update on the outcome

Edit: It worked, I was sure i recompiled it after the update, I must've been wrong. Thanks for the insight

cyberpunkrocker commented on 2021-06-24 18:43 (UTC)

@ConnahGriffin: How so? Can't you just recompile it?

ConnahGriffin commented on 2021-06-24 18:36 (UTC)

The recent update to boost and its libraries boost-libs to 1.76.0-1 makes it imposssible to open. Since the package depends on libboost_log.so.1.75.0. Please update the build

bartus commented on 2021-06-23 05:34 (UTC) (edited on 2021-06-23 05:34 (UTC) by bartus)

  • Fix build against gcc:11
  • Add missing {,make}depends

##patch##

Apply with `git am -s < <(curl -s http://ix.io/3qOK)

Nishan0073 commented on 2021-06-21 02:13 (UTC)

Thank you @rudism.Bro it worked!

bootlegbilly commented on 2021-06-16 05:27 (UTC)

Please update, current build doesn't work.

lucasluzdev commented on 2021-05-27 01:01 (UTC)

Tyvm @rudism! It worked like a charm!

rudism commented on 2021-05-26 14:18 (UTC) (edited on 2021-05-26 14:45 (UTC) by rudism)

I had to inject a missing header to get past the uint32_t error. There may be a better way to do it, but adding this to the end of the prepare() function in PKGBUILD got it to work for me:

sed -i '1i\#include <cstdint>' $srcdir/anbox/src/anbox/input/manager.cpp

Edit: I also had to downgrade lxc to get the session-manager to work (which is a known issue)

sudo pacman -U https://archive.archlinux.org/packages/l/lxc/lxc-1%3A4.0.6-1-x86_64.pkg.tar.zst

DarknessKiller commented on 2021-05-26 07:21 (UTC)

I have the same problem than diogovk.

lucasluzdev commented on 2021-05-26 01:53 (UTC)

I'm having the same output as Diogo's comment below. Probably bc gcc11

diogovk commented on 2021-05-25 23:15 (UTC)

hmm, anyone else getting this error?

~/.cache/yay/anbox-git/src/anbox/src/anbox/input/manager.h:39:8: error: ‘uint32_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’?

simona commented on 2021-05-13 19:17 (UTC)

anbox: error while loading shared libraries: libprotobuf-lite.so.26: cannot open shared object file: No such file or directory

ahmubashshir commented on 2021-03-29 06:19 (UTC)

Can you add me as a co-maintainer?

simona commented on 2021-03-24 15:45 (UTC)

even though the dkms package is now mainline, very few distributions have included it in the standard kernel, and even in custom kernels, only a few have it as a standard setting. and in the end anbox is usable on very few systems.

selurvedu commented on 2021-03-24 14:08 (UTC)

+1 for reviving anbox-modules-dkms-git as a separate package. I use it on Linux 5.4. It took me a while to find out why the package vanished and where to find the original source.

G3ro commented on 2021-03-12 14:57 (UTC)

@T0MuX: The dkms modules use the "original" binder module, so you don't have to use the instructions for binderfs. In short: "binder" is not exactly "binderfs" (I know it's complicated).

T0MuX commented on 2021-03-12 08:46 (UTC)

Hi, I can't make Anbox working (however following the arch wiki).

  • Using linux-lts54 and DKMS modules.
  • The modules load correctly on boot. anbox-git and anbox-image are correctly installed.
  • My problem is : sudo mount -t binder none /dev/binderfs returns unknown filesystem "binder"

I don't know why, because the binder_linux module is well loaded.

unsanded commented on 2021-03-07 17:23 (UTC)

For the libvolk conflict, i wrote a patch, for anyone facing the same problem. https://gitlab.com/refractor.dev/anbox-using-libvolk This might also be merged, but that seems kinda weird, because libvolk also has this as a minor component.

Singularity commented on 2021-03-03 16:24 (UTC)

Debian has an Anbox package in testing again. From what I see, this package could use from there 1:

For the service: Documentation=man:anbox(1), also for the user service. After=network.target, it's more for shutdown than startup, shutting down networking after Anbox is down. AssertPathExists/ConditionPathExists=/var/lib/anbox/android.img, optionally catching the error already here.

They have a man page!

And there are a few patches, one of them similar to the issue currently discussed here.

thotypous commented on 2021-02-14 15:52 (UTC) (edited on 2021-02-14 17:49 (UTC) by thotypous)

The anbox build system expects cpu_features to be there as a submodule, so a simpler fix is to perhaps disable installing cpu_features, which is a static library anyway.

At https://aur.chaotic.cx we are adding the following patch before building: https://github.com/chaotic-aur/interfere/blob/master/anbox-git/prepare#L3-L15

It seems to solve the issue. It would be nice if you could include it here in AUR. I will also try to get the patch accepted upstream.

EDIT: Won't be necessary when/if https://github.com/anbox/anbox/pull/1750 gets merged.

thotypous commented on 2021-02-14 15:04 (UTC)

anbox-git: /usr/bin/list_cpu_features exists in filesystem (owned by libvolk)
anbox-git: /usr/include/cpu_features/cpu_features_cache_info.h exists in filesystem (owned by libvolk)
anbox-git: /usr/include/cpu_features/cpu_features_macros.h exists in filesystem (owned by libvolk)
anbox-git: /usr/include/cpu_features/cpuinfo_x86.h exists in filesystem (owned by libvolk)
anbox-git: /usr/lib/cmake/CpuFeatures/CpuFeaturesConfig.cmake exists in filesystem (owned by libvolk)
anbox-git: /usr/lib/cmake/CpuFeatures/CpuFeaturesConfigVersion.cmake exists in filesystem (owned by libvolk)
anbox-git: /usr/lib/cmake/CpuFeatures/CpuFeaturesTargets-release.cmake exists in filesystem (owned by libvolk)
anbox-git: /usr/lib/cmake/CpuFeatures/CpuFeaturesTargets.cmake exists in filesystem (owned by libvolk)
anbox-git: /usr/lib/libcpu_features.a exists in filesystem (owned by libvolk)

cgirard commented on 2021-01-08 08:26 (UTC)

Missing (make)deps on dbus:

 -- Checking for module 'dbus-1'
 --   Package 'dbus-1', required by 'virtual:world', not found
 CMake Error at /usr/share/cmake-3.19/Modules/FindPkgConfig.cmake:553 (message):
   A required package was not found
 Call Stack (most recent call first):
   /usr/share/cmake-3.19/Modules/FindPkgConfig.cmake:741 (_pkg_check_modules_internal)
   CMakeLists.txt:68 (pkg_check_modules)

jypma commented on 2021-01-06 14:25 (UTC)

I also see the conflict with libvolk (which is in the main arch repo). It's because the "cpufeatures" library is re-built as a git submodule in this package, and then installed systemwide.

One could try to just rip out the submodule in this package's PKGBUILD, and add a dependency on libvolk instead. I haven't tried that yet.

Cryen commented on 2021-01-01 23:36 (UTC) (edited on 2021-01-01 23:41 (UTC) by Cryen)

I have the exact opposite situation to what simona has

simona commented on 2020-12-31 17:38 (UTC) (edited on 2020-12-31 17:57 (UTC) by simona)

anbox-git: /usr/bin/list_cpu_features è già presente nel filesystem (appartiene a libvolk)
anbox-git: /usr/include/cpu_features/cpu_features_cache_info.h è già presente nel filesystem (appartiene a libvolk)
anbox-git: /usr/include/cpu_features/cpu_features_macros.h è già presente nel filesystem (appartiene a libvolk)
anbox-git: /usr/include/cpu_features/cpuinfo_x86.h è già presente nel filesystem (appartiene a libvolk)
anbox-git: /usr/lib/cmake/CpuFeatures/CpuFeaturesConfig.cmake è già presente nel filesystem (appartiene a libvolk)
anbox-git: /usr/lib/cmake/CpuFeatures/CpuFeaturesConfigVersion.cmake è già presente nel filesystem (appartiene a libvolk)
anbox-git: /usr/lib/cmake/CpuFeatures/CpuFeaturesTargets-release.cmake è già presente nel filesystem (appartiene a libvolk)
anbox-git: /usr/lib/cmake/CpuFeatures/CpuFeaturesTargets.cmake è già presente nel filesystem (appartiene a libvolk)
anbox-git: /usr/lib/libcpu_features.a è già presente nel filesystem (appartiene a libvolk)

jaro3 commented on 2020-12-31 04:26 (UTC)

coredumps on latest Arch (Kernel 5.10):


Process 5649 (anbox) of user 1020 dumped core.

                                                Stack trace of thread 5659:
                                                #0  0x00007f438eeb8f75 raise (libpthread.so.0 + 0x13f75)
                                                #1  0x000055d029a00d0c _ZN8backward14SignalHandling11sig_handlerEiP9siginfo_tPv (anbox + 0xf2d0c)
                                                #2  0x00007f438eeb90f0 __restore_rt (libpthread.so.0 + 0x140f0)
                                                #3  0x000055d029a1576e _ZN5anbox6Logger7WarningERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKN5boost8optionalINS0_8LocationEEE (anbox + 0x10776e)
                                                #4  0x000055d029a396a4 n/a (anbox + 0x12b6a4)
                                                #5  0x000055d029ad8e23 _ZN5boost4asio6detail23reactive_socket_recv_opINS0_17mutable_buffers_1ESt8functionIFvRKNS_6system10error_codeEmEENS0_9execution12any_executorIJNSB_12context_as_tIRNS0_17execution_contextEEENSB_6detail8blocking7never_tILi0EEENSB_11prefer_onlyINSI_10possibly_tILi0EEEEENSL_INSH_16outstanding_work9tracked_tILi0EEEEENSL_INSP_11untracked_tILi0EEEEENSL_INSH_12relationship6fork_tILi0EEEEENSL_INSW_14continuation_tILi0EEEEEEEEE11do_completeEPvPNS1_19scheduler_operationES8_m (anbox + 0x1cae23)
                                                #6  0x000055d029a44851 _ZN5boost4asio6detail9scheduler3runERNS_6system10error_codeE (anbox + 0x136851)
                                                #7  0x000055d029aad756 n/a (anbox + 0x19f756)
                                                #8  0x00007f438ecb2c24 execute_native_thread_routine (libstdc++.so.6 + 0xcfc24)
                                                #9  0x00007f438eeae3e9 start_thread (libpthread.so.0 + 0x93e9)
                                                #10 0x00007f438eb00293 __clone (libc.so.6 + 0x100293)

                                                Stack trace of thread 5660:
                                                #0  0x00007f438eeb46a2 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xf6a2)
                                                #1  0x000055d029a4467c _ZN5boost4asio6detail9scheduler3runERNS_6system10error_codeE (anbox + 0x13667c)
                                                #2  0x000055d029aad756 n/a (anbox + 0x19f756)
                                                #3  0x00007f438ecb2c24 execute_native_thread_routine (libstdc++.so.6 + 0xcfc24)
                                                #4  0x00007f438eeae3e9 start_thread (libpthread.so.0 + 0x93e9)
                                                #5  0x00007f438eb00293 __clone (libc.so.6 + 0x100293)

                                                Stack trace of thread 5656:
                                                #0  0x00007f438eeb46a2 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xf6a2)
                                                #1  0x000055d029a4467c _ZN5boost4asio6detail9scheduler3runERNS_6system10error_codeE (anbox + 0x13667c)
                                                #2  0x000055d029aad756 n/a (anbox + 0x19f756)
                                                #3  0x00007f438ecb2c24 execute_native_thread_routine (libstdc++.so.6 + 0xcfc24)
                                                #4  0x00007f438eeae3e9 start_thread (libpthread.so.0 + 0x93e9)
                                                #5  0x00007f438eb00293 __clone (libc.so.6 + 0x100293)

                                                Stack trace of thread 5658:
                                                #0  0x00007f438eeb46a2 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xf6a2)
                                                #1  0x000055d029a4467c _ZN5boost4asio6detail9scheduler3runERNS_6system10error_codeE (anbox + 0x13667c)
                                                #2  0x000055d029aad756 n/a (anbox + 0x19f756)
                                                #3  0x00007f438ecb2c24 execute_native_thread_routine (libstdc++.so.6 + 0xcfc24)
                                                #4  0x00007f438eeae3e9 start_thread (libpthread.so.0 + 0x93e9)
                                                #5  0x00007f438eb00293 __clone (libc.so.6 + 0x100293)

                                                Stack trace of thread 5657:
                                                #0  0x00007f438eb005de epoll_wait (libc.so.6 + 0x1005de)
                                                #1  0x000055d029a42c68 _ZN5boost4asio6detail13epoll_reactor3runElRNS1_8op_queueINS1_19scheduler_operationEEE (anbox + 0x134c68)
                                                #2  0x000055d029a444db _ZN5boost4asio6detail9scheduler3runERNS_6system10error_codeE (anbox + 0x1364db)
                                                #3  0x000055d029aad756 n/a (anbox + 0x19f756)
                                                #4  0x00007f438ecb2c24 execute_native_thread_routine (libstdc++.so.6 + 0xcfc24)
                                                #5  0x00007f438eeae3e9 start_thread (libpthread.so.0 + 0x93e9)
                                                #6  0x00007f438eb00293 __clone (libc.so.6 + 0x100293)

                                                Stack trace of thread 5662:
                                                #0  0x00007f438eeb46a2 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xf6a2)
                                                #1  0x000055d029a4467c _ZN5boost4asio6detail9scheduler3runERNS_6system10error_codeE (anbox + 0x13667c)
                                                #2  0x000055d029aad756 n/a (anbox + 0x19f756)
                                                #3  0x00007f438ecb2c24 execute_native_thread_routine (libstdc++.so.6 + 0xcfc24)
                                                #4  0x00007f438eeae3e9 start_thread (libpthread.so.0 + 0x93e9)
                                                #5  0x00007f438eb00293 __clone (libc.so.6 + 0x100293)

                                                Stack trace of thread 5661:
                                                #0  0x00007f438eeb46a2 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xf6a2)
                                                #1  0x000055d029a4467c _ZN5boost4asio6detail9scheduler3runERNS_6system10error_codeE (anbox + 0x13667c)
                                                #2  0x000055d029aad756 n/a (anbox + 0x19f756)
                                                #3  0x00007f438ecb2c24 execute_native_thread_routine (libstdc++.so.6 + 0xcfc24)
                                                #4  0x00007f438eeae3e9 start_thread (libpthread.so.0 + 0x93e9)
                                                #5  0x00007f438eb00293 __clone (libc.so.6 + 0x100293)

                                                Stack trace of thread 5653:
                                                #0  0x00007f438eaf556e ppoll (libc.so.6 + 0xf556e)
                                                #1  0x00007f43879bba33 pa_mainloop_poll (libpulse.so.0 + 0x1ca33)
                                                #2  0x00007f43879c6281 pa_mainloop_iterate (libpulse.so.0 + 0x27281)
                                                #3  0x00007f43879c6331 pa_mainloop_run (libpulse.so.0 + 0x27331)
                                                #4  0x00007f438f171d60 n/a (libSDL2-2.0.so.0 + 0xe3d60)
                                                #5  0x00007f438f10e8d1 n/a (libSDL2-2.0.so.0 + 0x808d1)
                                                #6  0x00007f438f1adcaa n/a (libSDL2-2.0.so.0 + 0x11fcaa)
                                                #7  0x00007f438eeae3e9 start_thread (libpthread.so.0 + 0x93e9)
                                                #8  0x00007f438eb00293 __clone (libc.so.6 + 0x100293)

                                                Stack trace of thread 5663:
                                                #0  0x00007f438eeb46a2 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xf6a2)
                                                #1  0x000055d029a4467c _ZN5boost4asio6detail9scheduler3runERNS_6system10error_codeE (anbox + 0x13667c)
                                                #2  0x000055d029aad756 n/a (anbox + 0x19f756)
                                                #3  0x00007f438ecb2c24 execute_native_thread_routine (libstdc++.so.6 + 0xcfc24)
                                                #4  0x00007f438eeae3e9 start_thread (libpthread.so.0 + 0x93e9)
                                                #5  0x00007f438eb00293 __clone (libc.so.6 + 0x100293)

                                                Stack trace of thread 5649:
                                                #0  0x00007f438eaf6f6b ioctl (libc.so.6 + 0xf6f6b)
                                                #1  0x00007f4375abfd8c n/a (libnvidia-eglcore.so.455.45.01 + 0x1443d8c)
                                                #2  0x00007f4375ac1277 n/a (libnvidia-eglcore.so.455.45.01 + 0x1445277)
                                                #3  0x00007f4375ac33bc n/a (libnvidia-eglcore.so.455.45.01 + 0x14473bc)
                                                #4  0x00007f437585e2ff n/a (libnvidia-eglcore.so.455.45.01 + 0x11e22ff)
                                                #5  0x00007f437585eb49 n/a (libnvidia-eglcore.so.455.45.01 + 0x11e2b49)
                                                #6  0x00007f437578cedd n/a (libnvidia-eglcore.so.455.45.01 + 0x1110edd)
                                                #7  0x00007f437578d564 n/a (libnvidia-eglcore.so.455.45.01 + 0x1111564)
                                                #8  0x00007f4375803104 n/a (libnvidia-eglcore.so.455.45.01 + 0x1187104)
                                                #9  0x00007f43757edd65 n/a (libnvidia-eglcore.so.455.45.01 + 0x1171d65)
                                                #10 0x00007f43757f07b7 n/a (libnvidia-eglcore.so.455.45.01 + 0x11747b7)
                                                #11 0x00007f43757f16d7 n/a (libnvidia-eglcore.so.455.45.01 + 0x11756d7)
                                                #12 0x00007f43757b4cd9 n/a (libnvidia-eglcore.so.455.45.01 + 0x1138cd9)
                                                #13 0x00007f43757b7ed5 n/a (libnvidia-eglcore.so.455.45.01 + 0x113bed5)
                                                #14 0x00007f437577e22c n/a (libnvidia-eglcore.so.455.45.01 + 0x110222c)
                                                #15 0x00007f4376ca0a7e n/a (libEGL_nvidia.so.0 + 0xc8a7e)
                                                #16 0x00007f4376c9e3d7 n/a (libEGL_nvidia.so.0 + 0xc63d7)
                                                #17 0x00007f4376c9e576 n/a (libEGL_nvidia.so.0 + 0xc6576)
                                                #18 0x00007f4376c9e5d1 n/a (libEGL_nvidia.so.0 + 0xc65d1)
                                                #19 0x00007f4376c0de92 n/a (libEGL_nvidia.so.0 + 0x35e92)
                                                #20 0x00007f4376cc2041 n/a (libEGL_nvidia.so.0 + 0xea041)
                                                #21 0x00007f438ea3fdb7 __run_exit_handlers (libc.so.6 + 0x3fdb7)
                                                #22 0x00007f438ea3ff5e exit (libc.so.6 + 0x3ff5e)
                                                #23 0x00007f438ea28159 __libc_start_main (libc.so.6 + 0x28159)
                                                #24 0x000055d0299fae2e _start (anbox + 0xece2e)

Neko-san commented on 2020-12-15 16:00 (UTC)

@cyberpunkrocker Sorry, I wasn't aware I had to recompile if dependencies broke

cyberpunkrocker commented on 2020-12-12 19:03 (UTC)

@Drishal, @Neko-san: Don't you guys really know how to recompile anbox?

Drishal commented on 2020-12-12 18:39 (UTC)

libboost has been updated 1.74 but the current version seems to use 1.72 so it fails to launch with in following msg

anbox: error while loading shared libraries: libboost_log.so.1.72.0: cannot open shared object file: No such file or directory

cyberpunkrocker commented on 2020-12-12 06:20 (UTC)

@Neko-san: makepkg -f

Neko-san commented on 2020-12-12 02:49 (UTC)

A recent update to Boost-libs broke compatibility with Anbox Refuses to launch the session-manager due to not having the requisite version

lcdss commented on 2020-11-12 17:36 (UTC)

@eschwartz Thank you! I finally got it installed overriding the PATH to (PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin yay -S anbox-git).

eschwartz commented on 2020-11-12 14:53 (UTC)

@lcdss,

You have mutilated your system $PATH by adding an invalid entry, namely, /bin (which is a symlink to another directory also on $PATH).

Cmake really, really, really doesn't like that.

lcdss commented on 2020-11-12 13:49 (UTC)

I can't install anbox on my laptop. Always throw the following error:

Imported target "Boost::iostreams" includes non-existent path "/include"

Anyone had the some problem or had a idea of how fix this?

Obs.: The kernel is freezed in the version 5.8.14-zen because of compatibility issues with the bluetooth 5.0 adapter I use.

G3ro commented on 2020-11-07 17:10 (UTC)

@irtimmer: Thx for splitting the packages, but could you add the dkms modules package (again) (as a seperate repo and package of course)? As cyberpunkrocker mentioned below, it is still useful for users of older kernels (with "linux-lts" for example).

iwxlartn commented on 2020-11-02 23:34 (UTC)

Anbox-git won't build in a chroot without adding dbus and systemd to the makedepends.

eschwartz commented on 2020-10-25 22:40 (UTC)

Speaking with my official Trusted User hat on, I agree that anbox-modules-dkms-git should be its own PKGBUILD. It doesn't share sources, pkgver() or build(), so I'm not sure why it is mixing two different components together...

Terence commented on 2020-10-25 11:56 (UTC)

With https://github.com/anbox/anbox/commit/9b61c94236e61f3a6a6104c60f894fde230d461e python2 is replaced by python3 (python in archlinux repo) so the makedepends array needs to be updated.

blue commented on 2020-10-19 02:41 (UTC) (edited on 2020-10-19 04:50 (UTC) by blue)

@G3ro: Thank you for updating the wiki! With the new instructions, Anbox installs and works perfectly with linux-zen.

G3ro commented on 2020-10-18 18:30 (UTC)

@cyberpunkrocker: Ok, thx for pointing that out. I forgot about older kernels. I guess I will add a section for that in the wiki.

@irtimmer: Could you split your PKGBUILD, so that users who only need Anbox, can install it without building the dkms-modules as well (or needing to edit the PKGBUILD)?

cyberpunkrocker commented on 2020-10-18 17:14 (UTC)

@G3ro: the dkms modules are still needed by linux-lts kernel, and they work with it

G3ro commented on 2020-10-18 13:06 (UTC) (edited on 2020-10-18 18:30 (UTC) by G3ro)

@blue: Thx for the comment, I just saw that linux-zen is using regular binder: https://github.com/archlinux/svntogit-packages/commit/d8d13d766ca79ebb788a484b8d24ffa83f12fc52#diff-8d0411b338c83cd8cd8ad9d9db127101 Could you test it without the binderfs instructions? Use "binder" instead. Run as root or with sudo: "modprobe ashmem_linux binder_linux" to activate the necessary modules.

If that does not work, some package maintainers might need to adjust things.

Also it is an open question to me whether the dkms modules still work or not, if someone could try and confirm this, write a message here or in the wiki.

blue commented on 2020-10-18 01:29 (UTC) (edited on 2020-10-18 01:31 (UTC) by blue)

There is a mistake in the wiki instructions. The linux-zen kernel does not enable binderfs by default, so another kernel is needed.

mount -t binder binder /dev/binderfs returns the following error with the linux-zen kernel:

mount: /dev/binderfs: unknown filesystem type 'binder'.

Lumpiasty commented on 2020-09-15 00:47 (UTC)

Missing dependency - dbus-c++

bartus commented on 2020-09-14 18:18 (UTC) (edited on 2020-09-14 18:35 (UTC) by bartus)

Unable to build in clen-chroot: missing systemd in makedepends array.

$ extra-x86_64-build -c -r /tmp/clean/ -- -I roperties-cpp-0.0.1-1-any.pkg.tar.xz
...
-- Checking for module 'sdl2'
--   Found sdl2, version 2.0.12
-- Checking for module 'SDL2_image'
--   Found SDL2_image, version 2.0.5
-- Checking for module 'dbus-1'
--   Found dbus-1, version 1.12.20
-- Checking for module 'lxc'
--   Found lxc, version 4.0.4
-- Checking for module 'properties-cpp'
--   Found properties-cpp, version 0.0.1
-- Checking for module 'libsystemd'
--   Package 'libsystemd', required by 'virtual:world', not found 

Specifically it requires package systemd which provides pkgconfig for libsystemd and yunks dbus-1.

cyberpunkrocker commented on 2020-09-13 19:06 (UTC)

@koroki: 5.7+ kernels, I'm afraid that's the current situation. Bug the Arch kernel maintainers and ask them to compile in the anbox modules.

koroki commented on 2020-09-12 19:28 (UTC)

Is there any way to install anbox without compiling the whole kernel?

This package worked perfectly for avoid to compile all kernel XD

cyberpunkrocker commented on 2020-09-12 11:22 (UTC) (edited on 2020-09-12 11:26 (UTC) by cyberpunkrocker)

@SArchB and others trying to install anbox: The Arch anbox wiki is, sadly, still partially out of date. Here's brief installation instructions:

  • Install anbox-image-* and anbox-git. Forget the anbox-modules-dkms-git AUR package, it is just a stupid placeholder which doesn't do anything.

  • If you have installed anbox-git earlier and want to update to the latest git sources, use 'makepkg -f' to force an update.

  • For pre-5.7 kernels (I'm using linux-lts): the anbox-modules-dkms-git-package is in the same directory as the anbox-git-package, be sure to install them both.

  • For kernels 5.7 and up, please see the wiki (this information is up-to-date)

  • Enable anbox-container-manager.service (and systemd-networkd, if it isn't already running), and reboot.

  • You should now have a working, network-enabled anbox installation, at least if you have a somewhat normal network setup (say, for example networkmanager-controlled). Forget the obsolete information about anbox-bridge; the corresponding functionality is already installed with anbox itself.

holdengreen commented on 2020-09-11 19:36 (UTC)

@SArchB I recommend installing Telegram and joining https://t.me/anbox . There you can find people willing to help.

Otherwise maybe consider opening an issue on github (https://github.com/anbox/anbox) if you believe this is a problem with Anbox.

SArchB commented on 2020-09-11 19:03 (UTC) (edited on 2020-09-11 19:09 (UTC) by SArchB)

Sigh... maybe I should give up on this. What I tried now:

  • Install core/linux-lts 5.4.64-1 kernel + header, then boot into it
  • Install Anbox-Git, Anbox-modules-dkms-git, anbox-image-gapps
  • Mobprobe Ashmem & binder, both work without error
  • Reboot & launch Anbox
  • Expected result > Working anbox with network connection
  • Actual result > Working anbox, but no network (WebViewer gives an error on every website and adb shell ping shows connect: Network is unreachable)
  • Follow Arch Anbox wiki > start systemd-networkd before starting anbox-container-manager.service >> Did that > no change at all. Still no network
  • Return to Arch Anbox wiki >> Alternatively you can use the anbox-bridge script [..] The easiest solution is create a drop-in file enable-anbox-bridge.conf >> Did that and changed the contents of that file to match the one advised by the Arch Anbox wiki.

Yet stil, nomatter what I seem to try.. there is no network available in Anbox.

In despair, I even tried to install Squid proxy as suggested here: https://github.com/anbox/anbox/issues/443#issuecomment-674885129 and then use adb shell to follow the proposed steps.

Yet still, no change whatsoever. Still no network in Anbox.

SArchB commented on 2020-09-06 17:26 (UTC)

Ah, don't know what I did differently but this time it worked on the LTS kernel! Will leave the stack overflow question intact since I'm still curious to find the cause of that one. 1 problem remains, on Anbox now running un the LTS-kernel >> Internet doesn't work. The network section of the Arch-Anbox wiki didn't help out. Will have to continue troubleshooting.

holdengreen commented on 2020-09-06 08:01 (UTC)

@SArchB Did you install anbox-modules-dkms-git from the AUR after installing the kernel? Installing that package should install the kernel modules. My kernels are provided by Manjaro as that is my distro.

When you install anbox-modules-dkms-git the installation output should be printed to the console. If there's an issue in that process, then providing that console output could help us discover the issue.

SArchB commented on 2020-09-06 07:26 (UTC)

@holdengreen but how then did you get it the modules to work. For I tried 5.4 LTS kernel from AUR ( https://www.archlinux.org/packages/core/x86_64/linux-lts/ ) in order to get it to work but it still complained about missing binder and ashmem. Compiling my own 5.4 kernel gives the same problem as I have posted on Stack overflow.

holdengreen commented on 2020-09-05 23:14 (UTC)

@SArchB Hi, I don't have the reputation to comment on Stack Overflow.

I use kernel version 5.4 along with the Anbox kernel modules and Anbox runs fine for me.

SArchB commented on 2020-09-05 15:50 (UTC)

Hey guys. Trying to get Anbox to run but so far I am stuck first at actually being able to boot my adapted kernel (with ASHMEM and BINDER). Any chance you could help me out? Detailed problem > https://stackoverflow.com/questions/63755742/cannot-get-custom-kernel-to-boot-mkinitpcio-does-not-add-any-modules

cyberpunkrocker commented on 2020-08-29 16:53 (UTC)

Bartus' patch should be merged into the PKGBUILD. The original does not allow the current sources to be built anymore.

bartus commented on 2020-08-18 16:26 (UTC)

Missing submodule initialization: (patch)

#merge with
git am -s < <(curl -s http://ix.io/2uxN)

holdengreen commented on 2020-08-03 23:53 (UTC)

==> dkms install --no-depmod -m anbox-modules-binder -v r1229.4d84370 -k 5.7.9-1-MANJARO
Error! Bad return status for module build on kernel: 5.7.9-1-MANJARO (x86_64)
Consult /var/lib/dkms/anbox-modules-binder/r1229.4d84370/build/make.log for more information.
==> Warning, `dkms install --no-depmod -m anbox-modules-binder -v r1229.4d84370 -k 5.7.9-1-MANJARO' returned 10

==> dkms install --no-depmod -m anbox-modules-ashmem -v r1229.4d84370 -k 5.7.9-1-MANJARO
Error! Bad return status for module build on kernel: 5.7.9-1-MANJARO (x86_64)
Consult /var/lib/dkms/anbox-modules-ashmem/r1229.4d84370/build/make.log for more information.
==> Warning, `dkms install --no-depmod -m anbox-modules-ashmem -v r1229.4d84370 -k 5.7.9-1-MANJARO' returned 10
DKMS make.log for anbox-modules-binder-r1229.4d84370 for kernel 5.7.9-1-MANJARO (x86_64)
Mon 03 Aug 2020 04:42:20 PM PDT
make -C /lib/modules/5.7.9-1-MANJARO/build V=0 M=$PWD
make[1]: Entering directory '/usr/lib/modules/5.7.9-1-MANJARO/build'
  AR      /var/lib/dkms/anbox-modules-binder/r1229.4d84370/build/built-in.a
  CC [M]  /var/lib/dkms/anbox-modules-binder/r1229.4d84370/build/binder.o
  CC [M]  /var/lib/dkms/anbox-modules-binder/r1229.4d84370/build/deps.o
  LD [M]  /var/lib/dkms/anbox-modules-binder/r1229.4d84370/build/binder_linux.o
  MODPOST 1 modules
ERROR: modpost: "kallsyms_lookup_name" [/var/lib/dkms/anbox-modules-binder/r1229.4d84370/build/binder_linux.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:99: __modpost] Error 1
make[1]: *** [Makefile:1645: modules] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.7.9-1-MANJARO/build'
make: *** [Makefile:8: all] Error 2
DKMS make.log for anbox-modules-ashmem-r1229.4d84370 for kernel 5.7.9-1-MANJARO (x86_64)
Mon 03 Aug 2020 04:43:01 PM PDT
make -C /lib/modules/5.7.9-1-MANJARO/build V=0 M=$PWD
make[1]: Entering directory '/usr/lib/modules/5.7.9-1-MANJARO/build'
  AR      /var/lib/dkms/anbox-modules-ashmem/r1229.4d84370/build/built-in.a
  CC [M]  /var/lib/dkms/anbox-modules-ashmem/r1229.4d84370/build/ashmem.o
  CC [M]  /var/lib/dkms/anbox-modules-ashmem/r1229.4d84370/build/deps.o
  LD [M]  /var/lib/dkms/anbox-modules-ashmem/r1229.4d84370/build/ashmem_linux.o
  MODPOST 1 modules
ERROR: modpost: "kallsyms_lookup_name" [/var/lib/dkms/anbox-modules-ashmem/r1229.4d84370/build/ashmem_linux.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:99: __modpost] Error 1
make[1]: *** [Makefile:1645: modules] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.7.9-1-MANJARO/build'
make: *** [Makefile:12: all] Error 2

holdengreen commented on 2020-07-31 21:07 (UTC)

==> Creating package "anbox-git"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
/usr/bin/makepkg: line 723: /run/media/holden/45993E4516E8C2C4/Pkg/anbox-git/anbox-git-1:r1229.4d84370-1-x86_64.pkg.tar.xz: Invalid argument
bsdtar: Write error
==> ERROR: Failed to create package file.
error making: %!s(func() string=0x557f17996830)

I'm having some issues. :(

drew33 commented on 2020-07-22 16:40 (UTC)

Hi, for those who are on Kernel 5.7.x / unable to load modules, see the updated wiki: https://wiki.archlinux.org/index.php/Anbox (And this thread: https://github.com/anbox/anbox-modules/issues/49 thanks to Jedi2light for sharing)

lgtrombetta commented on 2020-07-11 15:48 (UTC)

As already reported below, it still fails to build for kernel 5.7 with the "Bad return status for module build on kernel" message. It works for 5.4 and 5.6 though.

miss_barfin commented on 2020-06-29 05:03 (UTC)

==> dkms install --no-depmod -m anbox-modules-binder -v r1213.c898810 -k 5.7.6-zen1-1-zen Error! Bad return status for module build on kernel: 5.7.6-zen1-1-zen (x86_64) Consult /var/lib/dkms/anbox-modules-binder/r1213.c898810/build/make.log for more information. ==> Warning, dkms install --no-depmod -m anbox-modules-binder -v r1213.c898810 -k 5.7.6-zen1-1-zen' returned 10 ==> dkms install --no-depmod -m anbox-modules-ashmem -v r1213.c898810 -k 5.7.6-zen1-1-zen Error! Bad return status for module build on kernel: 5.7.6-zen1-1-zen (x86_64) Consult /var/lib/dkms/anbox-modules-ashmem/r1213.c898810/build/make.log for more information. ==> Warning,dkms install --no-depmod -m anbox-modules-ashmem -v r1213.c898810 -k 5.7.6-zen1-1-zen' returned 10 ==> depmod 5.7.6-zen1-1-zen

Yfans commented on 2020-06-28 15:51 (UTC)

/var/lib/dkms/anbox-modules-ashmem/1213.c898810/build/

DKMS make.log for anbox-modules-ashmem-1213.c898810 for kernel 5.7.6-arch1-1 (x86_64) 2020年 06月 28日 星期日 23:26:34 CST make -C /lib/modules/5.7.6-arch1-1/build V=0 M=$PWD make[1]: 进入目录“/usr/lib/modules/5.7.6-arch1-1/build” AR /var/lib/dkms/anbox-modules-ashmem/1213.c898810/build/built-in.a CC [M] /var/lib/dkms/anbox-modules-ashmem/1213.c898810/build/deps.o CC [M] /var/lib/dkms/anbox-modules-ashmem/1213.c898810/build/ashmem.o LD [M] /var/lib/dkms/anbox-modules-ashmem/1213.c898810/build/ashmem_linux.o MODPOST 1 modules ERROR: modpost: "kallsyms_lookup_name" [/var/lib/dkms/anbox-modules-ashmem/1213.c898810/build/ashmem_linux.ko] undefined! make[2]: [scripts/Makefile.modpost:99:__modpost] 错误 1 make[1]: [Makefile:1645:modules] 错误 2 make[1]: 离开目录“/usr/lib/modules/5.7.6-arch1-1/build” make: *** [Makefile:12:all] 错误 2

Yfans commented on 2020-06-28 15:48 (UTC) (edited on 2020-06-28 15:49 (UTC) by Yfans)

I ran into a problem. ==> dkms install --no-depmod -m anbox-modules-ashmem -v 1213.c898810 -k 5.7.6-arch1-1 Error! Bad return status for module build on kernel: 5.7.6-arch1-1 (x86_64) Consult /var/lib/dkms/anbox-modules-ashmem/1213.c898810/build/make.log for more information. ==> Warning, dkms install --no-depmod -m anbox-modules-ashmem -v 1213.c898810 -k 5.7.6-arch1-1' returned 10 ==> dkms install --no-depmod -m anbox-modules-binder -v 1213.c898810 -k 5.7.6-arch1-1 Error! Bad return status for module build on kernel: 5.7.6-arch1-1 (x86_64) Consult /var/lib/dkms/anbox-modules-binder/1213.c898810/build/make.log for more information. ==> Warning,dkms install --no-depmod -m anbox-modules-binder -v 1213.c898810 -k 5.7.6-arch1-1' returned 10

j.r commented on 2020-06-15 12:04 (UTC)

@Vipah applying https://hastebin.wiuwiu.de/raw/goyoveveyu fixed the Include error for me...

nazarianin commented on 2020-06-12 08:16 (UTC) (edited on 2020-06-12 08:17 (UTC) by nazarianin)

Hi! I get error while compiling with new arch kernel


 cat  /var/lib/dkms/anbox-modules-binder/r1098.cd829e9/build/make.log
DKMS make.log for anbox-modules-binder-r1098.cd829e9 for kernel 5.7.2-arch1-1 (x86_64)

make -C /lib/modules/5.7.2-arch1-1/build V=0 M=$PWD make[1]: «/usr/lib/modules/5.7.2-arch1-1/build» AR /var/lib/dkms/anbox-modules-binder/r1098.cd829e9/build/built-in.a CC [M] /var/lib/dkms/anbox-modules-binder/r1098.cd829e9/build/binder.o CC [M] /var/lib/dkms/anbox-modules-binder/r1098.cd829e9/build/deps.o LD [M] /var/lib/dkms/anbox-modules-binder/r1098.cd829e9/build/binder_linux.o MODPOST 1 modules ERROR: modpost: "kallsyms_lookup_name" [/var/lib/dkms/anbox-modules-binder/r1098.cd829e9/build/binder_linux.ko] undefined! make[2]: [scripts/Makefile.modpost:94: __modpost] Error 1 make[1]: [Makefile:1642: modules] Error 2 make[1]: «/usr/lib/modules/5.7.2-arch1-1/build» make: *** [Makefile:8: all] Error 2

Cysioland commented on 2020-06-06 16:40 (UTC)

When trying to do anything I get:

anbox: error while loading shared libraries: libprotobuf-lite.so.22: cannot open shared object file: No such file or directory

Vipah commented on 2020-06-04 09:00 (UTC)

I get this while compiling

==> Starting build()... -- The C compiler identification is GNU 10.1.0 -- The CXX compiler identification is GNU 10.1.0 -- Check for working C compiler: /sbin/cc -- Check for working C compiler: /sbin/cc - works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /sbin/c++ -- Check for working CXX compiler: /sbin/c++ - works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Treat warnings as errors -- Found Boost: /lib64/cmake/Boost-1.72.0/BoostConfig.cmake (found version "1.72.0") found components: filesystem log serialization system thread program_options -- Found PkgConfig: /sbin/pkg-config (found version "1.6.3") -- Found Threads: TRUE
-- Found EGL: /usr/lib/libEGL.so
-- Found GLESv2: /usr/lib/libGLESv2.so
-- Found Protobuf: /usr/lib/libprotobuf.so;-lpthread (found version "3.12.0") -- Checking for module 'sdl2' -- Found sdl2, version 2.0.12 -- Checking for module 'SDL2_image' -- Found SDL2_image, version 2.0.5 -- Checking for module 'dbus-1' -- Found dbus-1, version 1.12.16 -- Checking for module 'lxc' -- Found lxc, version 4.0.2 -- Checking for module 'properties-cpp' -- Found properties-cpp, version 0.0.1 -- Checking for module 'libsystemd' -- Found libsystemd, version 245 -- Checking for module 'libcap' -- Found libcap, version 2.34 -- LXC version: 4.0.2 -- Found Boost: /lib64/cmake/Boost-1.72.0/BoostConfig.cmake (found version "1.72.0") found components: iostreams system -- Found Boost: /lib64/cmake/Boost-1.72.0/BoostConfig.cmake (found version "1.72.0") found components: filesystem system unit_test_framework -- Found libdw: /usr/lib/libdw.so
-- Found libbfd: /usr/lib/libbfd.so
-- Could NOT find libdwarf (missing: LIBDWARF_LIBRARY LIBDWARF_INCLUDE_DIR) -- Found Backward: /home/giovanni/.cache/yay/anbox-git/src/anbox/external/backward-cpp
-- Configuring done CMake Error in external/process-cpp-minimal/src/CMakeLists.txt: Imported target "Boost::iostreams" includes non-existent path

"/include"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not provide.

CMake Error in external/process-cpp-minimal/src/CMakeLists.txt: Imported target "Boost::iostreams" includes non-existent path

"/include"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not provide.

CMake Error in external/xdg/CMakeLists.txt: Imported target "Boost::filesystem" includes non-existent path

"/include"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not provide.

CMake Error in external/xdg/CMakeLists.txt: Imported target "Boost::filesystem" includes non-existent path

"/include"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not provide.

CMake Error in src/CMakeLists.txt: Imported target "Boost::filesystem" includes non-existent path

"/include"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not provide.

CMake Error in src/CMakeLists.txt: Imported target "Boost::filesystem" includes non-existent path

"/include"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not provide.

CMake Error in src/CMakeLists.txt: Imported target "Boost::filesystem" includes non-existent path

"/include"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not provide.

CMake Error in src/CMakeLists.txt: Imported target "Boost::filesystem" includes non-existent path

"/include"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not provide.

-- Generating done CMake Generate step failed. Build files cannot be regenerated correctly. ==> ERROR: A failure occurred in build(). Aborting... Error making: anbox-git

bartus commented on 2020-05-22 23:11 (UTC)

core/systemd-libs witch provides libsystemd doesn't contains libsystemd.pc for pkgconfig. This in turn result in meson config error: http://ix.io/2n2r

You should add core/systemd to makedepends to allow to build package in arch-nspwan container.

mkroening commented on 2020-05-16 15:58 (UTC)

There's an issue with building anbox with gcc 10 regarding two missing headers. This fix [1] is working for me. Hopefully it will be merged into upstream soon.

[1] https://github.com/anbox/anbox/pull/1456

yochananmarqos commented on 2020-05-11 18:10 (UTC)

@innowar: pkgconf is part of the base-devel group which is assumed to be installed. See the wiki.

innowater commented on 2020-05-11 17:58 (UTC) (edited on 2020-05-11 18:18 (UTC) by innowater)

~~core/pkgconf should be added as a dependency.~~

Thanks for pointing that out, @yochananmarqos.

dulice commented on 2020-04-17 08:42 (UTC)

@tomsk use "systemctl start systemd-networkd"

cdrozak commented on 2020-04-15 20:02 (UTC)

@barfin I have the same problem as IEPforAUR. Is downgrading boost still necessary? I don't have the error message about missing libboost_log.so.1.71.0 and I would like to avoid downgrading packages if it is not necessary.

==> Starting build()...
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Check for working C compiler: /usr/lib/ccache/bin/cc
-- Check for working C compiler: /usr/lib/ccache/bin/cc - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/lib/ccache/bin/c++
-- Check for working CXX compiler: /usr/lib/ccache/bin/c++ - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Treat warnings as errors
-- Found Boost: /lib64/cmake/Boost-1.72.0/BoostConfig.cmake (found version "1.72.0") found components: filesystem log serialization system thread program_options
-- Found PkgConfig: /bin/pkg-config (found version "1.6.3")
-- Found Threads: TRUE
-- Found EGL: /usr/lib/libEGL.so
-- Found GLESv2: /usr/lib/libGLESv2.so
-- Found Protobuf: /usr/lib/libprotobuf.so;-lpthread (found version "3.11.4")
-- Checking for module 'sdl2'
--   Found sdl2, version 2.0.12
-- Checking for module 'SDL2_image'
--   Found SDL2_image, version 2.0.5
-- Checking for module 'dbus-1'
--   Found dbus-1, version 1.12.16
-- Checking for module 'lxc'
--   Found lxc, version 4.0.1
-- Checking for module 'properties-cpp'
--   Found properties-cpp, version 0.0.1
-- Checking for module 'libsystemd'
--   Found libsystemd, version 245
-- Checking for module 'libcap'
--   Found libcap, version 2.33
-- LXC version: 4.0.1
-- Found Boost: /lib64/cmake/Boost-1.72.0/BoostConfig.cmake (found version "1.72.0") found components: iostreams system
-- Found Boost: /lib64/cmake/Boost-1.72.0/BoostConfig.cmake (found version "1.72.0") found components: filesystem system unit_test_framework
-- Found libdw: /usr/lib/libdw.so
-- Found libbfd: /usr/lib/libbfd.so
-- Found libdwarf: /usr/lib/libdwarf.so
-- Found Backward: /home/nawordar/.cache/yay/anbox-git/src/anbox/external/backward-cpp
-- Configuring done
CMake Error in external/process-cpp-minimal/src/CMakeLists.txt:
  Imported target "Boost::iostreams" includes non-existent path

    "/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.



CMake Error in external/process-cpp-minimal/src/CMakeLists.txt:
  Imported target "Boost::iostreams" includes non-existent path

    "/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.



CMake Error in external/xdg/CMakeLists.txt:
  Imported target "Boost::filesystem" includes non-existent path

    "/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.



CMake Error in external/xdg/CMakeLists.txt:
  Imported target "Boost::filesystem" includes non-existent path

    "/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.



CMake Error in src/CMakeLists.txt:
  Imported target "Boost::filesystem" includes non-existent path

    "/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.



CMake Error in src/CMakeLists.txt:
  Imported target "Boost::filesystem" includes non-existent path

    "/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.



CMake Error in src/CMakeLists.txt:
  Imported target "Boost::filesystem" includes non-existent path

    "/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.



CMake Error in src/CMakeLists.txt:
  Imported target "Boost::filesystem" includes non-existent path

    "/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.



-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.
==> ERROR: A failure occurred in build().
    Aborting...
Error making: anbox-git

irmas25 commented on 2020-04-15 07:49 (UTC)

@felipexil I am running into the same error. Downgrading to lxc 3.2.1 and reinstalling anbox-image-gapps, anbox-git and this package was NOT suffisient. Did you carry out any other steps ?

BlackDex commented on 2020-04-10 17:04 (UTC)

I find it strange that this package needs/build anbox-git also. Since i only need the modules this is a bit to much.

Is there a simple way to have a separate package for only the modules? Since i install anbox via snap, i only need the modules.

felipexil commented on 2020-04-09 18:11 (UTC)

I have the same problem as zany130. Downgrading lxc to 3.2.1 solved the problem (temporarily).

https://github.com/anbox/anbox/issues/1397

zany130 commented on 2020-04-08 20:24 (UTC)

im getting this when i try to launch anbox

anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity
[ 2020-04-08 20:20:56] [launch.cpp:214@operator()] Session manager failed to become ready

sylsau commented on 2020-04-02 13:26 (UTC) (edited on 2020-04-02 13:27 (UTC) by sylsau)

This package is missing the linux-headers dependency. ← Install it or you'll run into failure.

ruestique commented on 2020-03-31 13:15 (UTC) (edited on 2020-03-31 13:21 (UTC) by ruestique)

↪ anbox
anbox: error while loading shared libraries: libboost_log.so.1.71.0: cannot open shared object file: No such file or directory
↪
↪ pacman -F libboost_log.so
extra/boost-libs 1.72.0-1 [installed]
usr/lib/libboost_log.so
↪

rebuild the package - fixed the issue

tomsk commented on 2020-03-24 17:40 (UTC)

anbox-bridge is missing look here https://bbs.archlinux.org/viewtopic.php?id=253886

cyberpunkrocker commented on 2020-03-19 22:13 (UTC)

git clone https://aur.archlinux.org/anbox-modules-dkms-git.git
Cloning into 'anbox-modules-dkms-git'...
warning: You appear to have cloned an empty repository.

Cloning this currently produces only an empty directory. Where have all the files gone???

dreieck commented on 2020-03-18 10:27 (UTC) (edited on 2020-03-18 10:27 (UTC) by dreieck)

Fails to build for me, right now:

[...]
[ 61%] Building C object src/CMakeFiles/anbox-core.dir/anbox/dbus/sd_bus_helpers.c.o
In file included from /usr/include/elogind/systemd/sd-bus-vtable.h:26,
                 from /home/tmp/install/build/anbox/anbox-modules-dkms-git/src/anbox/src/anbox/dbus/sd_bus_helpers.h:21,
                 from /home/tmp/install/build/anbox/anbox-modules-dkms-git/src/anbox/src/anbox/dbus/sd_bus_helpers.c:18:
/usr/include/elogind/systemd/sd-bus.h:95:43: error: ISO C restricts enumerator values to range of ‘int’ [-Werror=pedantic]
   95 |         SD_BUS_CREDS_UNIQUE_NAME        = 1ULL << 31,
      |                                           ^~~~
/usr/include/elogind/systemd/sd-bus.h:96:43: error: ISO C restricts enumerator values to range of ‘int’ [-Werror=pedantic]
   96 |         SD_BUS_CREDS_WELL_KNOWN_NAMES   = 1ULL << 32,
      |                                           ^~~~
/usr/include/elogind/systemd/sd-bus.h:97:43: error: ISO C restricts enumerator values to range of ‘int’ [-Werror=pedantic]
   97 |         SD_BUS_CREDS_DESCRIPTION        = 1ULL << 33,
      |                                           ^~~~
/usr/include/elogind/systemd/sd-bus.h:98:43: error: ISO C restricts enumerator values to range of ‘int’ [-Werror=pedantic]
   98 |         SD_BUS_CREDS_AUGMENT            = 1ULL << 63, /* special flag, if on sd-bus will augment creds struct, in a potentially race-full way. */
      |                                           ^~~~
In file included from /usr/include/elogind/systemd/sd-bus-vtable.h:26,
                 from /home/tmp/install/build/anbox/anbox-modules-dkms-git/src/anbox/src/anbox/dbus/sd_bus_helpers.h:21,
                 from /home/tmp/install/build/anbox/anbox-modules-dkms-git/src/anbox/src/anbox/dbus/sd_bus_helpers.c:18:
/usr/include/elogind/systemd/sd-bus.h:99:43: error: ISO C restricts enumerator values to range of ‘int’ [-Werror=pedantic]
   99 |         _SD_BUS_CREDS_ALL               = (1ULL << 34) -1
      |                                           ^
In file included from /home/tmp/install/build/anbox/anbox-modules-dkms-git/src/anbox/src/anbox/dbus/sd_bus_helpers.h:21,
                 from /home/tmp/install/build/anbox/anbox-modules-dkms-git/src/anbox/src/anbox/dbus/sd_bus_helpers.c:18:
/usr/include/elogind/systemd/sd-bus-vtable.h:46:54: error: ISO C restricts enumerator values to range of ‘int’ [-Werror=pedantic]
   46 |         _SD_BUS_VTABLE_CAPABILITY_MASK             = 0xFFFFULL << 40
      |                                                      ^~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [src/CMakeFiles/anbox-core.dir/build.make:492: src/CMakeFiles/anbox-core.dir/anbox/dbus/sd_bus_helpers.c.o] Error 1
make[2]: Leaving directory '/home/tmp/install/build/anbox/anbox-modules-dkms-git/src/anbox/build'
make[1]: *** [CMakeFiles/Makefile2:1691: src/CMakeFiles/anbox-core.dir/all] Error 2
make[1]: Leaving directory '/home/tmp/install/build/anbox/anbox-modules-dkms-git/src/anbox/build'
make: *** [Makefile:141: all] Error 2
==> ERROR: A failure occurred in build().

ws00298046 commented on 2020-02-22 05:28 (UTC)

Add linux-headers to dependencies plz

C_Schmidpeter commented on 2020-02-15 13:57 (UTC)

It does not build for me anymore, even with a clean build.

The make.log is as follows:

DKMS make.log for anbox-modules-ashmem-r1133.b18e622 for kernel 5.3.13-arch1-1-vfio (x86_64) Sat 15 Feb 14:52:48 CET 2020 make -C /lib/modules/5.3.13-arch1-1-vfio/build V=0 M=$PWD make[1]: Entering directory '/usr/lib/modules/5.3.13-arch1-1-vfio/build' CC [M] /var/lib/dkms/anbox-modules-ashmem/r1133.b18e622/build/deps.o CC [M] /var/lib/dkms/anbox-modules-ashmem/r1133.b18e622/build/ashmem.o cc1: error: incompatible gcc/plugin versions cc1: error: fail to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so cc1: error: incompatible gcc/plugin versions cc1: error: fail to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so make[2]: [scripts/Makefile.build:281: /var/lib/dkms/anbox-modules-ashmem/r1133.b18e622/build/deps.o] Error 1 make[2]: Waiting for unfinished jobs.... make[2]: [scripts/Makefile.build:281: /var/lib/dkms/anbox-modules-ashmem/r1133.b18e622/build/ashmem.o] Error 1 make[1]: [Makefile:1626: module/var/lib/dkms/anbox-modules-ashmem/r1133.b18e622/build] Error 2 make[1]: Leaving directory '/usr/lib/modules/5.3.13-arch1-1-vfio/build' make: *** [Makefile:12: all] Error 2

zwastik commented on 2020-02-03 20:13 (UTC)

A clean build did the trick

zwastik commented on 2020-02-03 04:36 (UTC)

When rebuilding anbox with pikaur: (to fix the boost version 1.71 problem)

[100%] Linking CXX executable anbox
/usr/bin/ld: libanbox-core.a(launcher_storage.cpp.o): in function anbox::application::LauncherStorage::reset()': launcher_storage.cpp:(.text+0x270): undefined reference toboost::filesystem::detail::directory_iterator_construct(boost::filesystem::d irectory_iterator&, boost::filesystem::path const&, boost::system::error_code)'
/usr/bin/ld: launcher_storage.cpp:(.text+0x2ae): undefined reference to `boost::filesystem::directory_entry::m_get_status(boost::system: :error_code
) const'
collect2: error: ld returned 1 exit status
make[2]: [src/CMakeFiles/anbox.dir/build.make:111: src/anbox] Error 1
make[1]:
[CMakeFiles/Makefile2:1655: src/CMakeFiles/anbox.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
==> ERROR: A failure occurred in build().
Aborting..

Anty0 commented on 2020-01-31 09:17 (UTC)

@barfin rebuild package to fix that. :)

miss_barfin commented on 2020-01-31 09:09 (UTC)

it needs boost version 1.71 the version of that package right now is 1.72 anbox: error while loading shared libraries: libboost_log.so.1.71.0: cannot open shared object file: No such file or directory

Zauberfisch commented on 2020-01-27 06:42 (UTC)

make sure you have kernel headers installed before installing the dkms modules. Otherwise it won't actually install them.

If you didn't have the headers, you might be getting an error like "modprobe: FATAL: Module binder_linux not found in directory /lib/modules/5.4.13-3-MANJARO

jaro3 commented on 2020-01-10 05:05 (UTC)

all builds OK but doesn't start with error:

$ anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity [ 2020-01-10 05:04:28] [launch.cpp:214@operator()] Session manager failed to become ready

Si3 commented on 2019-12-07 16:08 (UTC) (edited on 2019-12-07 16:15 (UTC) by Si3)

@IEPforAUR You can fix your error by downgrading Boost to 17.0.1, yet it compiles with a looooot of warnings - https://archive.archlinux.org/packages/b/boost/

missingSleepDeps commented on 2019-11-24 17:58 (UTC) (edited on 2019-11-25 19:13 (UTC) by missingSleepDeps)

Also can't build: " ==> Starting build()... CMake Warning (dev) at CMakeLists.txt:1 (project): Policy CMP0048 is not set: project() command manages VERSION variables. Run "cmake --help-policy CMP0048" for policy details. Use the cmake_policy command to set the policy and suppress this warning.

The following variable(s) would be set to empty:

CMAKE_PROJECT_VERSION
CMAKE_PROJECT_VERSION_MAJOR
CMAKE_PROJECT_VERSION_MINOR
CMAKE_PROJECT_VERSION_PATCH

This warning is for project developers. Use -Wno-dev to suppress it.

-- Treat warnings as errors -- Found Boost: /lib64/cmake/Boost-1.71.0/BoostConfig.cmake (found version "1.71.0") found components: filesystem log serialization system thread program_options -- LXC version: 3.2.1 -- Found Boost: /lib64/cmake/Boost-1.71.0/BoostConfig.cmake (found version "1.71.0") found components: iostreams system -- Found Boost: /lib64/cmake/Boost-1.71.0/BoostConfig.cmake (found version "1.71.0") found components: filesystem system unit_test_framework -- Could NOT find libdwarf (missing: LIBDWARF_LIBRARY LIBDWARF_INCLUDE_DIR) -- Configuring done CMake Error in external/process-cpp-minimal/src/CMakeLists.txt: Imported target "Boost::iostreams" includes non-existent path

"/include"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not provide.

CMake Error in external/process-cpp-minimal/src/CMakeLists.txt: Imported target "Boost::iostreams" includes non-existent path

"/include"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not provide.

CMake Error in external/xdg/CMakeLists.txt: Imported target "Boost::filesystem" includes non-existent path

"/include"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not provide.

CMake Error in external/xdg/CMakeLists.txt: Imported target "Boost::filesystem" includes non-existent path

"/include"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not provide.

CMake Error in src/CMakeLists.txt: Imported target "Boost::filesystem" includes non-existent path

"/include"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not provide.

CMake Error in src/CMakeLists.txt: Imported target "Boost::filesystem" includes non-existent path

"/include"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not provide.

CMake Error in src/CMakeLists.txt: Imported target "Boost::filesystem" includes non-existent path

"/include"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not provide.

CMake Error in src/CMakeLists.txt: Imported target "Boost::filesystem" includes non-existent path

"/include"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not provide.

-- Generating done CMake Generate step failed. Build files cannot be regenerated correctly. ==> ERROR: A failure occurred in build(). Aborting...

Command 'makepkg --force' failed to execute. "

C_Schmidpeter commented on 2019-11-19 21:29 (UTC) (edited on 2019-11-19 21:30 (UTC) by C_Schmidpeter)

I am not able to build it anymore, getting also the error message, "'NewCallback' is not a member of 'google::protobuf'."

Do other people experience this issue still as well?

Link to upstream ticket: https://github.com/anbox/anbox/issues/1288

Excalibur commented on 2019-11-05 17:21 (UTC)

Official fix is in https://github.com/anbox/anbox/pull/1280.

hh3k0 commented on 2019-11-04 03:38 (UTC)

@kusoneko That does the trick! Thanks a bunch.

redchenjs commented on 2019-11-01 05:57 (UTC)

@Vrakfall Now we are able to build the anbox with @kusoneko's patch.

redchenjs commented on 2019-11-01 05:45 (UTC)

@kusoneko Well done, the patch does work.

kusoneko commented on 2019-11-01 05:22 (UTC)

So, after all, I went looking into the arch-wiki, and I'm coming back with this: https://github.com/Kusoneko/anbox-git-AUR-fix a patch file and the patched PKGBUILD so it applies the patch before building, so you can just download these and drop them over the original PKGBUILD, (and edit the PKGBUILD file to make anbox depend on the anbox-image package variant you wish to use, if it's not the default anbox-image one) and then makepkg -si and it works (just tested it and it builds and installs properly).

kusoneko commented on 2019-11-01 04:19 (UTC)

So, in that same issue, there was a reply, I tried building it manually using the cmake and make commands in the build() section of the PKGBUILD file and the anbox package builds, but I can't seem to figure out how to make the PKGBUILD patch the file in question after fetching it from git so that we can temporarily have the ability to compile it again. I'm not really an expert on makepkg and PKGBUILDs, unfortunately.

Vrakfall commented on 2019-10-29 17:22 (UTC)

@redchenjs: Ah, thanks. So it looks like both an upstream and arch issue then, generated by the protobuf update on our systems. Looks like we'll have to wait some more.

redchenjs commented on 2019-10-29 16:58 (UTC)

@Vrakfall: #1276

Vrakfall commented on 2019-10-29 16:52 (UTC)

I now have these errors even when I try to install a previous commit that used to work (which makes me think this doesn't come from upstream).

/home/vrakfall/Coding/AUR/build/anbox-git/src/anbox/src/anbox/bridge/android_api_stub.cpp: In member function ‘virtual void anbox::bridge::AndroidApiStub::launch(const anbox::android
::Intent&, const anbox::graphics::Rect&, const anbox::wm::Stack::Id&)’:                                                                                                               
/home/vrakfall/Coding/AUR/build/anbox-git/src/anbox/src/anbox/bridge/android_api_stub.cpp:111:25: error: ‘NewCallback’ is not a member of ‘google::protobuf’                          
  111 |       google::protobuf::NewCallback(this, &AndroidApiStub::application_launched,   
      |                         ^~~~~~~~~~~                                                                                                                                           
/home/vrakfall/Coding/AUR/build/anbox-git/src/anbox/src/anbox/bridge/android_api_stub.cpp: In member function ‘void anbox::bridge::AndroidApiStub::set_focused_task(const int32_t&)’:
/home/vrakfall/Coding/AUR/build/anbox-git/src/anbox/src/anbox/bridge/android_api_stub.cpp:145:43: error: ‘NewCallback’ is not a member of ‘google::protobuf’
  145 |                         google::protobuf::NewCallback(                             
      |                                           ^~~~~~~~~~~                              
/home/vrakfall/Coding/AUR/build/anbox-git/src/anbox/src/anbox/bridge/android_api_stub.cpp: In member function ‘void anbox::bridge::AndroidApiStub::remove_task(const int32_t&)’:
/home/vrakfall/Coding/AUR/build/anbox-git/src/anbox/src/anbox/bridge/android_api_stub.cpp:174:43: error: ‘NewCallback’ is not a member of ‘google::protobuf’
  174 |                         google::protobuf::NewCallback(                             
      |                                           ^~~~~~~~~~~                              
/home/vrakfall/Coding/AUR/build/anbox-git/src/anbox/src/anbox/bridge/android_api_stub.cpp: In member function ‘void anbox::bridge::AndroidApiStub::resize_task(const int32_t&, const a
nbox::graphics::Rect&, const int32_t&)’:                                                                                                                                              
/home/vrakfall/Coding/AUR/build/anbox-git/src/anbox/src/anbox/bridge/android_api_stub.cpp:212:43: error: ‘NewCallback’ is not a member of ‘google::protobuf’
  212 |                         google::protobuf::NewCallback(                             
      |                                           ^~~~~~~~~~~                              
make[2]: *** [src/CMakeFiles/anbox-core.dir/build.make:128: src/CMakeFiles/anbox-core.dir/anbox/bridge/android_api_stub.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1722: src/CMakeFiles/anbox-core.dir/all] Error 2                                                                                                   
make: *** [Makefile:141: all] Error 2

Vrakfall commented on 2019-10-29 16:49 (UTC)

@redchenjs: I'm sure there's an even nicer way to do this but I don't have time to dig into it right now. :/

redchenjs commented on 2019-10-23 06:50 (UTC) (edited on 2019-10-23 10:30 (UTC) by redchenjs)

@Vrakfall: This version will ensure that the X11 DISPLAY variable has been set before starting Anbox, which should be more reliable.

[Unit]
Description=Anbox Session Manager

[Service]
ExecStartPre=/usr/bin/printenv DISPLAY
ExecStart=/usr/bin/anbox session-manager
Restart=always
RestartSec=3s

[Install]
WantedBy=default.target

Vrakfall commented on 2019-10-22 20:15 (UTC)

@redchenjs: I'm not good at all in systemd but can't we make it depend on X's startup instead, like the graphical target. Sleeping a few seconds seems too uncertain and random to me.

redchenjs commented on 2019-10-22 19:50 (UTC)

Hi @irtimmer: if anbox-session-manager.service runs before Xorg is ready, it will always fail:

XIO:  fatal IO error 0 (Success) on X server ":0"
      after 231 requests (231 known processed) with 0 events remaining.

Add a startup delay and enable auto-restart could solve this problem:

[Unit]
Description=Anbox Session Manager

[Service]
ExecStartPre=/usr/bin/sleep 3s
ExecStart=/usr/bin/anbox session-manager
Restart=always

[Install]
WantedBy=default.target

Vrakfall commented on 2019-10-21 13:54 (UTC)

@heavysink: Oh yeah, Everything works well again! Thank you for noticing me!

heavysink commented on 2019-10-14 01:05 (UTC)

@Vrakfall The patch is already applied upstream.

Bramken commented on 2019-10-10 23:00 (UTC)

Well thank you very much @cschmid @irtimmer , i will check that ! As for the average response time of the maintainer, it's got lastly updated on 2019/05/14 ..so i don't have much hope in that matter.

Vrakfall commented on 2019-10-10 18:30 (UTC) (edited on 2019-10-10 18:30 (UTC) by Vrakfall)

@cschmid: Tho the patch showed in the forum link in that issue could be applied in this package until then. (I think I've seen the average response time of the upstream maintainer is around a month...)

C_Schmidpeter commented on 2019-10-10 10:26 (UTC) (edited on 2019-10-10 10:26 (UTC) by C_Schmidpeter)

@Bramken: This seems to be a general build regression and has already been reported on upstream. Link to ticket: https://github.com/anbox/anbox/issues/1252

Bramken commented on 2019-10-09 19:49 (UTC) (edited on 2019-10-09 19:58 (UTC) by Bramken)

Good evening, I checked every dependencies and i don't miss anything, I even install linux-headers, and dkms, and of course libdwarf. I dit reboot but i still got he same error.


/src/anbox/src/anbox/logger.cpp:20: erreur: « BOOST_LOG_DYN_LINK » redéfini [-Werror]
   20 | #define BOOST_LOG_DYN_LINK


make[2]:  [src/CMakeFiles/anbox-core.dir/build.make:1493: src/CMakeFiles/anbox-core.dir/anbox/logger.cpp.o] Error 1
make[1]:  [CMakeFiles/Makefile2:1722: src/CMakeFiles/anbox-core.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

If it help i can send or link the entire log

Do you have any idea ?

Thanks in advance

padok commented on 2019-09-29 15:56 (UTC)

How can I use https://docs.anbox.io/userguide/advanced/rootfs_overlay.html with this package?

Unfortunately it is necessary to bypass the missing audio bug of https://github.com/anbox/anbox/issues/904

Thanks in advance!

shimi commented on 2019-09-13 09:46 (UTC)

Any reason root access (su) is denied in adb shell for this version? (works using the official snap version)

I need it in order to fix the networking (https://github.com/anbox/anbox/issues/443#issuecomment-343352213).

yochananmarqos commented on 2019-09-04 14:50 (UTC)

@m-svo linux-headers is already an optional dependency of dkms.

commented on 2019-09-04 04:19 (UTC)

Maybe linux-*headers should be added as dependency for anbox-modules-dkms-git? I tried to install without them first and got an error.

chaserhkj commented on 2019-08-26 02:14 (UTC) (edited on 2019-08-26 02:14 (UTC) by chaserhkj)

I found an issue with anbox-bridge.network in this package. That bridge configuration would hang my machine when boot up due to systemd-networkd-wait-online.service waiting for the bridge carrier to be brought up.

Possibly we would like to add this section to that file:

[Link]
RequiredForOnline=no

Logout commented on 2019-08-23 05:42 (UTC)

Note: -Wno-error=missing-field-initializers can be deleted from the PKGBUILD, I successfully issued a change request to anbox that fixed the warning.

yochananmarqos commented on 2019-08-03 17:48 (UTC) (edited on 2019-08-03 18:12 (UTC) by yochananmarqos)

This also requires libdwarf as a make dependency:

-- Could NOT find libdwarf (missing: LIBDWARF_LIBRARY LIBDWARF_INCLUDE_DIR)

It builds fine with commit cd829e9ccd3a5d654c8aa5e16e32f0d3915d54a8, but doesn't want to launch anymore after recent system updates:

$ anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity
[ 2019-08-03 16:54:33] [daemon.cpp:61@Run] Failed to retrieve ready property from application manager

spritwar commented on 2019-07-29 18:54 (UTC)

I had gmock related issues while compiling. Solution:

install gmock and adding "rm cmake/FindGMock.cmake" on the end of prepare() function (PKGBUILD)

commented on 2019-07-29 05:04 (UTC)

"Application manager service is not running yet" what's wrong?

HiJack88 commented on 2019-07-26 20:35 (UTC)

Well, i wonder why it isn't working on your machine. All i can say is its working here fine. I did a full system upgrade an re-compiled the entire anbox package. But it looks like there is some script already blocking anbox's network adress. You may check your startup process accordingly.

BTW. Snap is still the recommended way to bring up anbox an i think the best way.

Cheers.

TeaHistoria commented on 2019-07-23 22:52 (UTC)

@HiJack88

_ sudo /usr/bin/anbox container-manager --daemon --privileged --data-path=/var/lib/anbox & echo "Starting Anbox session manager" /usr/bin/anbox session-manager & /usr/bin/anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity [2] 5317 [3] 5318 Starting Anbox session manager /usr/bin/anbox session-manager [3] + 5318 done echo "Starting Anbox session manager" /usr/bin/anbox session-manager [ 2019-07-23 22:45:09] [container_manager.cpp:119@operator()] bind: Address already in use [2] + 5317 exit 1 sudo /usr/bin/anbox container-manager --daemon --privileged [ 2019-07-23 22:45:09] [lxc_container.cpp:141@setup_network] Anbox bridge interface 'anbox0' doesn't exist. Network functionality will not be available [ 2019-07-23 22:46:06] [launch.cpp:214@operator()] Session manager failed to become ready

same problem !! Session manager failed to become ready

but when I use snapd anbox works without interruption, it's just that I want to use the aur package

HiJack88 commented on 2019-07-23 17:38 (UTC)

@TeaHistoria:

You may check out my startup script here. Save it as ~/bin/anbox-start.sh an make it executable.

You'll need to invoke the anbox-bridge script first. You can find it in the AUR.

!/bin/sh

echo "${?}" sleep 2s echo "Launching Anbox container manager" sudo /usr/bin/anbox container-manager --daemon --privileged --data-path=/var/lib/anbox & echo "Starting Anbox session manager" /usr/bin/anbox session-manager & sleep 2s /usr/bin/anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity echo "Started Anbox application manager. Please wait."

TeaHistoria commented on 2019-07-22 23:18 (UTC)

helpp >> all anbox package installed on my machine.. butttt!

» anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity [ 2019-07-22 23:15:46] [daemon.cpp:61@Run] Application manager service is not running yet

wrwolf2 commented on 2019-07-14 19:25 (UTC) (edited on 2019-07-15 11:47 (UTC) by wrwolf2)

SOLVED !!!

upon upgrading arch-linux firmware ( kernel 5.2.0-arch2-1-ARCH ) we tried out YAY ( AUR helper ) to add anbox-git ( & anbox-modules-dkms-git) & with no patched PKGBUILD. <<-- that's actually worked this time and finished building with no errors, allowing to launch ANBOX and testing basic internet connection. too bad adding google account seems impossible right now

@mawiegand just updated previous entry , that answers your Q.

mawiegand commented on 2019-07-14 19:15 (UTC) (edited on 2019-07-14 19:16 (UTC) by mawiegand)

@wrwolf2 did you try it with a newer kernel? I am using the latest stable arch kernel (5.2.0-arch2-1-ARCH).

My make.log:

DKMS make.log for anbox-modules-binder-r1098.cd829e9 for kernel 5.2.0-arch2-1-ARCH (x86_64)
Sa 13. Jul 00:48:13 CEST 2019
make -C /lib/modules/5.2.0-arch2-1-ARCH/build V=0 M=$PWD
make[1]: Verzeichnis „/usr/lib/modules/5.2.0-arch2-1-ARCH/build“ wird betreten
  CC [M]  /var/lib/dkms/anbox-modules-binder/r1098.cd829e9/build/deps.o
  CC [M]  /var/lib/dkms/anbox-modules-binder/r1098.cd829e9/build/binder.o
  LD [M]  /var/lib/dkms/anbox-modules-binder/r1098.cd829e9/build/binder_linux.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /var/lib/dkms/anbox-modules-binder/r1098.cd829e9/build/binder_linux.mod.o
  LD [M]  /var/lib/dkms/anbox-modules-binder/r1098.cd829e9/build/binder_linux.ko
make[1]: Verzeichnis „/usr/lib/modules/5.2.0-arch2-1-ARCH/build“ wird verlassen

wrwolf2 commented on 2019-07-14 17:31 (UTC) (edited on 2019-07-14 19:24 (UTC) by wrwolf2)

@mawiegand

apparently we still hit a error message on each bootstrap ( " failed to start loading kernel modules " ) and also the following error shows up when loading modules manually.

[lmarenda12@CenavaLinux ~]$ sudo modprobe binder_linux
modprobe: FATAL: Module binder_linux not found in directory/lib/modules/5.1.15-arch1-1-ARCH 
this errors encountered on running:
[lmarenda12@CenavaLinux anbox-git]$ makepkg -si
==> dkms install anbox-modules-binder/r1098.cd829e9 -k 5.1.15-arch1-1-ARCH
Error! Bad return status for module build on kernel: 5.1.15-arch1-1-ARCH (x86_64)
Consult /var/lib/dkms/anbox-modules-binder/r1098.cd829e9/build/make.log for more information. 
make.log
DKMS make.log for anbox-modules-binder-r1098.cd829e9 for kernel 5.1.15-arch1-1-ARCH (x86_64)
dom 14 lug 2019, 19:48:54, UTC
make -C /lib/modules/5.1.15-arch1-1-ARCH/build V=0 M=$PWD
make[1]: ingresso nella directory "/usr/lib/modules/5.1.15-arch1-1-ARCH/build"
  CC [M]  /var/lib/dkms/anbox-modules-binder/r1098.cd829e9/build/deps.o
  CC [M]  /var/lib/dkms/anbox-modules-binder/r1098.cd829e9/build/binder.o
/var/lib/dkms/anbox-modules-binder/r1098.cd829e9/build/binder.c:3406:11: error: initialization of ‘vm_fault_t (*)(struct vm_fault *)’ {aka ‘unsigned int (*)(struct vm_fault *)’} from incompatible pointer type ‘int (*)(struct vm_fault *)’ [-Werror=incompatible-pointer-types]
 3406 |  .fault = binder_vm_fault,
      |           ^~~~~~~~~~~~~~~
/var/lib/dkms/anbox-modules-binder/r1098.cd829e9/build/binder.c:3406:11: note: (near initialization for ‘binder_vm_ops.fault’)
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:275: /var/lib/dkms/anbox-modules-binder/r1098.cd829e9/build/binder.o] Error 1
make[1]: *** [Makefile:1571: _module_/var/lib/dkms/anbox-modules-binder/r1098.cd829e9/build] Error 2
make[1]: uscita dalla directory "/usr/lib/modules/5.1.15-arch1-1-ARCH/build"
make: *** [Makefile:8: all] Error  
with newer firmware, same as above
DKMS make.log for anbox-modules-binder-r1098.cd829e9 for kernel 5.2.0-arch2-1-ARCH (x86_64)
dom 14 lug 2019, 21:16:35, UTC
make -C /lib/modules/5.2.0-arch2-1-ARCH/build V=0 M=$PWD
make[1]: ingresso nella directory "/usr/lib/modules/5.2.0-arch2-1-ARCH/build"
  CC [M]  /var/lib/dkms/anbox-modules-binder/r1098.cd829e9/build/deps.o
  CC [M]  /var/lib/dkms/anbox-modules-binder/r1098.cd829e9/build/binder.o
/var/lib/dkms/anbox-modules-binder/r1098.cd829e9/build/binder.c:3406:11: error: initialization of ‘vm_fault_t (*)(struct vm_fault *)’ {aka ‘unsigned int (*)(struct vm_fault *)’} from incompatible

incompatible pointer type ‘int (*)(struct vm_fault *)’ [-Werror=incompatible-pointer-types]
 3406 |  .fault = binder_vm_fault,
      |           ^~~~~~~~~~~~~~~
/var/lib/dkms/anbox-modules-binder/r1098.cd829e9/build/binder.c:3406:11: note: (near initialization for ‘binder_vm_ops.fault’)
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:278: /var/lib/dkms/anbox-modules-binder/r1098.cd829e9/build/binder.o] Error 1
make[1]: *** [Makefile:1595: _module_/var/lib/dkms/anbox-modules-binder/r1098.cd829e9/build] Error 2
make[1]: uscita dalla directory "/usr/lib/modules/5.2.0-arch2-1-ARCH/build"
make: *** [Makefile:8: all] Error 2

this <link> https://wiki.archlinux.org/index.php/Anbox </link> is the wiki we are following to get anbox.

mawiegand commented on 2019-07-12 23:28 (UTC)

@disctanger new commits have been submitted to pull request 19 which causes the failed hunks.

You could update the patch url from <https://github.com/anbox/anbox-modules/pull/19.patch> to <https://github.com/anbox/anbox-modules/commit/ae35b8da224b7ba163ebc1b3cf94acc2b0da260b.patch> in the PKGBUILD by @wrwolf2.

Replace patch -F3 -p0 binder/binder.c < ../19.patch with patch -F3 -p0 binder/binder.c < ../ae35b8da224b7ba163ebc1b3cf94acc2b0da260b.patch and you should be fine. :)

SolarAquarion commented on 2019-07-10 21:51 (UTC)

I think "gmock is a makedependency

TeaHistoria commented on 2019-07-10 07:08 (UTC)

Hello AUR!!

help me for fix this problem...

makepkg -sri ==> Making package: anbox-git 1:r1098.cd829e9-1 (Wed 10 Jul 2019 02:00:37 PM WIB) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Updating anbox git repo... Fetching origin -> Updating anbox-modules git repo... Fetching origin -> Found anbox-container-manager.service -> Found anbox-session-manager.service -> Found 99-anbox.rules -> Found anbox.conf -> Found anbox.desktop -> Found anbox-bridge.network -> Found anbox-bridge.netdev ==> Validating source files with sha256sums... anbox ... Skipped anbox-modules ... Skipped anbox-container-manager.service ... Passed anbox-session-manager.service ... Passed 99-anbox.rules ... Passed anbox.conf ... Passed anbox.desktop ... Passed anbox-bridge.network ... Passed anbox-bridge.netdev ... Passed ==> Extracting sources... -> Creating working copy of anbox git repo... Reset branch 'makepkg' -> Creating working copy of anbox-modules git repo... Reset branch 'makepkg' ==> Starting prepare()... ==> Starting pkgver()... ==> Removing existing $pkgdir/ directory... ==> Starting build()... CMake Warning (dev) at CMakeLists.txt:1 (project): Policy CMP0048 is not set: project() command manages VERSION variables. Run "cmake --help-policy CMP0048" for policy details. Use the cmake_policy command to set the policy and suppress this warning.

The following variable(s) would be set to empty:

CMAKE_PROJECT_VERSION
CMAKE_PROJECT_VERSION_MAJOR
CMAKE_PROJECT_VERSION_MINOR
CMAKE_PROJECT_VERSION_PATCH

This warning is for project developers. Use -Wno-dev to suppress it.

-- Treat warnings as errors -- Boost version: 1.69.0 -- Found the following Boost libraries: -- filesystem -- log -- serialization -- system -- thread -- program_options -- date_time -- log_setup -- regex -- chrono -- atomic -- LXC version: 3.1.0 -- Boost version: 1.69.0 -- Found the following Boost libraries: -- iostreams -- system -- regex -- Boost version: 1.69.0 -- Found the following Boost libraries: -- filesystem -- system -- unit_test_framework -- Could NOT find libdwarf (missing: LIBDWARF_LIBRARY LIBDWARF_INCLUDE_DIR) -- Configuring done -- Generating done -- Build files have been written to: /run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/src/anbox/build [ 8%] Built target process-cpp [ 11%] Built target emugen [ 14%] Built target OpenglCodecCommon [ 17%] Built target GLESv2_dec [ 19%] Built target renderControl_dec [ 21%] Built target GLESv1_dec [ 28%] Built target emugl_common [ 30%] Built target OpenGLESDispatch [ 31%] Built target xdg [ 32%] Built target xdg_test [ 33%] Built target backward [ 34%] Built target backward_object [ 40%] Built target cpu_features [ 41%] Built target list_cpu_features [ 44%] Built target anbox-protobuf [ 98%] Built target anbox-core [100%] Built target anbox ==> Entering fakeroot environment... ==> Starting package_anbox-git()... make: Entering directory '/run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/src/anbox/build' make[1]: Entering directory '/run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/src/anbox/build' make[2]: Entering directory '/run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/src/anbox/build' make[2]: Leaving directory '/run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/src/anbox/build' [ 8%] Built target process-cpp make[2]: Entering directory '/run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/src/anbox/build' make[2]: Leaving directory '/run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/src/anbox/build' [ 11%] Built target emugen make[2]: Entering directory '/run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/src/anbox/build' make[2]: Leaving directory '/run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/src/anbox/build' [ 14%] Built target OpenglCodecCommon make[2]: Entering directory '/run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/src/anbox/build' make[2]: Leaving directory '/run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/src/anbox/build' [ 17%] Built target GLESv2_dec make[2]: Entering directory '/run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/src/anbox/build' make[2]: Leaving directory '/run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/src/anbox/build' [ 19%] Built target renderControl_dec make[2]: Entering directory '/run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/src/anbox/build' make[2]: Leaving directory '/run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/src/anbox/build' [ 21%] Built target GLESv1_dec make[2]: Entering directory '/run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/src/anbox/build' make[2]: Leaving directory '/run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/src/anbox/build' [ 28%] Built target emugl_common make[2]: Entering directory '/run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/src/anbox/build' make[2]: Leaving directory '/run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/src/anbox/build' [ 30%] Built target OpenGLESDispatch make[2]: Entering directory '/run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/src/anbox/build' make[2]: Leaving directory '/run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/src/anbox/build' [ 31%] Built target xdg make[2]: Entering directory '/run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/src/anbox/build' make[2]: Leaving directory '/run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/src/anbox/build' [ 32%] Built target xdg_test make[2]: Entering directory '/run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/src/anbox/build' make[2]: Leaving directory '/run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/src/anbox/build' [ 33%] Built target backward make[2]: Entering directory '/run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/src/anbox/build' make[2]: Leaving directory '/run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/src/anbox/build' [ 34%] Built target backward_object make[2]: Entering directory '/run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/src/anbox/build' make[2]: Leaving directory '/run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/src/anbox/build' [ 40%] Built target cpu_features make[2]: Entering directory '/run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/src/anbox/build' make[2]: Leaving directory '/run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/src/anbox/build' [ 41%] Built target list_cpu_features make[2]: Entering directory '/run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/src/anbox/build' make[2]: Leaving directory '/run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/src/anbox/build' [ 44%] Built target anbox-protobuf make[2]: Entering directory '/run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/src/anbox/build' make[2]: Leaving directory '/run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/src/anbox/build' [ 98%] Built target anbox-core make[2]: Entering directory '/run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/src/anbox/build' make[2]: Leaving directory '/run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/src/anbox/build' [100%] Built target anbox make[1]: Leaving directory '/run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/src/anbox/build' Install the project... -- Install configuration: "Release" -- Installing: /run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/pkg/anbox-git/usr/share/anbox/ui/loading-screen.png -- Installing: /run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/pkg/anbox-git/usr/include/backward.hpp -- Installing: /run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/pkg/anbox-git/usr/lib/backward/BackwardConfig.cmake -- Installing: /run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/pkg/anbox-git/usr/lib/libcpu_features.a -- Installing: /run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/pkg/anbox-git/usr/include/cpu_features/cpuinfo_aarch64.h -- Installing: /run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/pkg/anbox-git/usr/include/cpu_features/cpuinfo_arm.h -- Installing: /run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/pkg/anbox-git/usr/include/cpu_features/cpuinfo_mips.h -- Installing: /run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/pkg/anbox-git/usr/include/cpu_features/cpuinfo_ppc.h -- Installing: /run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/pkg/anbox-git/usr/include/cpu_features/cpuinfo_x86.h -- Installing: /run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/pkg/anbox-git/usr/include/cpu_features/cpu_features_macros.h -- Installing: /run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/pkg/anbox-git/usr/bin/list_cpu_features -- Installing: /run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/pkg/anbox-git/usr/lib/cmake/CpuFeatures/CpuFeaturesTargets.cmake -- Installing: /run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/pkg/anbox-git/usr/lib/cmake/CpuFeatures/CpuFeaturesTargets-release.cmake -- Installing: /run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/pkg/anbox-git/usr/lib/cmake/CpuFeatures/CpuFeaturesConfig.cmake -- Installing: /run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/pkg/anbox-git/usr/lib/cmake/CpuFeatures/CpuFeaturesConfigVersion.cmake -- Installing: /run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/pkg/anbox-git/usr/bin/anbox make: Leaving directory '/run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/src/anbox/build' ==> Tidying install... -> Removing libtool files... -> Purging unwanted files... -> Removing static library files... -> Stripping unneeded symbols from binaries and libraries... -> Compressing man and info pages... ==> Checking for packaging issues... ==> WARNING: Package contains reference to $srcdir usr/bin/anbox ==> Creating package "anbox-git"... -> Generating .PKGINFO file... -> Generating .BUILDINFO file... -> Generating .MTREE file... -> Compressing package... /usr/bin/makepkg: line 772: /run/media/jurigwifi/Storage/Download/Git/Anbox/anbox-git/anbox-git-1:r1098.cd829e9-1-x86_64.pkg.tar.xz: Invalid argument bsdtar: Write error ==> ERROR: Failed to create package file

disctanger commented on 2019-07-09 11:58 (UTC) (edited on 2019-07-09 11:58 (UTC) by disctanger)

Hello i am having problems while installing this package (anbox-modules-dkms-git) I tried default PKGBUILD and had the following error

Preparing...
Cloning anbox-git build files...
Checking anbox-modules-dkms-git dependencies...
Edit anbox-git build files

Preparing...
Cloning anbox-git build files...
Checking anbox-modules-dkms-git dependencies...

Building anbox-git...
==> Making package: anbox-git 1:r1098.cd829e9-1 (2019年07月09日 20時54分13秒)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating anbox git repo...
Fetching origin
  -> Updating anbox-modules git repo...
Fetching origin
  -> Found anbox-container-manager.service
  -> Found anbox-session-manager.service
  -> Found 99-anbox.rules
  -> Found anbox.conf
  -> Found anbox.desktop
  -> Found anbox-bridge.network
  -> Found anbox-bridge.netdev
==> Validating source files with sha256sums...
    anbox ... Skipped
    anbox-modules ... Skipped
    anbox-container-manager.service ... Passed
    anbox-session-manager.service ... Passed
    99-anbox.rules ... Passed
    anbox.conf ... Passed
    anbox.desktop ... Passed
    anbox-bridge.network ... Passed
    anbox-bridge.netdev ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of anbox git repo...
Cloning into 'anbox'...
done.
  -> Creating working copy of anbox-modules git repo...
Cloning into 'anbox-modules'...
done.
==> Starting prepare()...
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
-- The C compiler identification is GNU 9.1.0
-- The CXX compiler identification is GNU 9.1.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Treat warnings as errors
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Boost version: 1.69.0
-- Found the following Boost libraries:
--   filesystem
--   log
--   serialization
--   system
--   thread
--   program_options
--   date_time
--   log_setup
--   regex
--   chrono
--   atomic
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.6.1") 
-- Found EGL: /usr/lib/libEGL.so  
-- Found GLESv2: /usr/lib64/libGLESv2.so  
-- Found Protobuf: /usr/lib/libprotobuf.so;-lpthread (found version "3.7.0") 
-- Checking for module 'sdl2'
--   Found sdl2, version 2.0.9
-- Checking for module 'SDL2_image'
--   Found SDL2_image, version 2.0.4
-- Checking for module 'dbus-1'
--   Found dbus-1, version 1.12.16
-- Checking for module 'lxc'
--   Found lxc, version 3.1.0
-- Checking for module 'properties-cpp'
--   Found properties-cpp, version 0.0.1
-- Checking for module 'libsystemd'
--   Found libsystemd, version 242
-- LXC version: 3.1.0
CMake Error at /usr/share/cmake-3.14/Modules/ExternalProject.cmake:1712 (file):
  file problem creating directory: /usr/src/gmock
Call Stack (most recent call first):
  /usr/share/cmake-3.14/Modules/ExternalProject.cmake:3163 (_ep_set_directories)
  cmake/FindGMock.cmake:56 (ExternalProject_Add)
  CMakeLists.txt:111 (find_package)


CMake Error at /usr/share/cmake-3.14/Modules/ExternalProject.cmake:1714 (message):
  dir '/usr/src/gmock' does not exist after file(MAKE_DIRECTORY)
Call Stack (most recent call first):
  /usr/share/cmake-3.14/Modules/ExternalProject.cmake:3163 (_ep_set_directories)
  cmake/FindGMock.cmake:56 (ExternalProject_Add)
  CMakeLists.txt:111 (find_package)


-- Configuring incomplete, errors occurred!
See also "/var/tmp/pamac-build-disctanger/anbox-git/src/anbox/build/CMakeFiles/CMakeOutput.log".
See also "/var/tmp/pamac-build-disctanger/anbox-git/src/anbox/build/CMakeFiles/CMakeError.log".
==> ERROR: A failure occurred in build().
    Aborting...

Then i tried to apply patched PKGBUILD https://aur.archlinux.org/packages/anbox-modules-dkms-git/#comment-699191

in this PKGBUILD i had the following error


Preparing...
Cloning anbox-git build files...
Checking anbox-modules-dkms-git dependencies...
Edit anbox-git build files

Preparing...
Cloning anbox-git build files...
Checking anbox-modules-dkms-git dependencies...

Building anbox-git...
==> Making package: anbox-git 1:r1098.cd829e9-1 (2019年07月09日 20時25分50秒)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating anbox git repo...
Fetching origin
  -> Updating anbox-modules git repo...
Fetching origin
  -> Found anbox-container-manager.service
  -> Found anbox-session-manager.service
  -> Found 99-anbox.rules
  -> Found anbox.conf
  -> Found anbox.desktop
  -> Found anbox-bridge.network
  -> Found 19.patch
  -> Found anbox-bridge.netdev
==> Validating source files with sha256sums...
    anbox ... Skipped
    anbox-modules ... Skipped
    anbox-container-manager.service ... Passed
    anbox-session-manager.service ... Passed
    99-anbox.rules ... Passed
    anbox.conf ... Passed
    anbox.desktop ... Passed
    anbox-bridge.network ... Passed
    19.patch ... Skipped
    anbox-bridge.netdev ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of anbox git repo...
Cloning into 'anbox'...
done.
  -> Creating working copy of anbox-modules git repo...
Cloning into 'anbox-modules'...
done.
==> Starting prepare()...
patching file binder/binder.c
patching file binder/binder.c
Hunk #1 succeeded at 22 with fuzz 3.
patching file binder/binder.c
Hunk #1 succeeded at 4 with fuzz 3.
Hunk #2 succeeded at 14 with fuzz 3.
Hunk #3 FAILED at 25.
1 out of 3 hunks FAILED -- saving rejects to file binder/binder.c.rej
patching file binder/binder.c
Hunk #1 succeeded at 14 with fuzz 3.
Hunk #2 FAILED at 25.
1 out of 2 hunks FAILED -- saving rejects to file binder/binder.c.rej
patching file binder/binder.c
Hunk #1 succeeded at 14 with fuzz 3.
Hunk #2 FAILED at 25.
Hunk #3 FAILED at 38.
2 out of 3 hunks FAILED -- saving rejects to file binder/binder.c.rej
patching file binder/binder.c
Hunk #1 succeeded at 3 with fuzz 3.
patching file binder/binder.c
Hunk #1 FAILED at 19.
1 out of 1 hunk FAILED -- saving rejects to file binder/binder.c.rej
==> ERROR: A failure occurred in prepare().
    Aborting...

result of uname -a command: Linux ablajan 5.1.15-1-surface #1 SMP PREEMPT Sun Jun 30 18:40:40 EDT 2019 x86_64 GNU/Linux By the way same error happened with default manjaro kernel as well.

I am interested in installing build package rather than snap because i want to make some changes in the source code later.

I tried to uninstall everything and reinstall everything. Currently, anbox-git, anbox-image, anbox-bridge (installation order is same as this list) is installed.

Seems i am missing something can anybody help me with this problem?

wrwolf2 commented on 2019-07-02 22:19 (UTC) (edited on 2019-07-03 10:41 (UTC) by wrwolf2)

patched PKGBUILD

  
# Maintainer: Iwan Timmer <irtimmer@gmail.com>



pkgname=('anbox-git' 'anbox-modules-dkms-git') 
_pkgname=anbox 
pkgver=r1098.cd829e9 
pkgrel=1 
epoch=1 
arch=('x86_64') 
url="http://anbox.io/" 
license=('GPL3') 
makedepends=('cmake' 'git' 'glm' 'lxc' 'sdl2_image' 'protobuf' 'boost' 'properties-cpp' 'gtest' 'python2') 
source=("git+https://github.com/anbox/anbox.git" 
        "git+https://github.com/anbox/anbox-modules.git" 
        'anbox-container-manager.service' 
        'anbox-session-manager.service' 
        '99-anbox.rules' 
        'anbox.conf' 
        'anbox.desktop' 
        'anbox-bridge.network' 
        'https://github.com/anbox/anbox-modules/pull/19.patch' 
        'anbox-bridge.netdev') 
sha256sums=('SKIP' 
            'SKIP' 
            '5be94b63dc30d141f15ca7d1be6e3e81f26ef33f844614975537562f5d08236c' 
            '1f22dbb5a3ca6925bbf62899cd0f0bbaa0b77c879adcdd12ff9d43adfa61b1d8' 
            '210eb93342228168f7bb632c8b93d9bfda6f53f62459a6b74987fa1e17530475' 
            '3e07dc524a827c1651857cce28a06c1565bc5188101c140ed213bbafedc5abff' 
            '7332d09865be553a259a53819cebddd21f661c7a251d78c2f46acd75c66676b6' 
            '44899328725667041e6e84912da81c1d0147b708006eb2c2bb6503f271629ff0' 
            'SKIP' 
            '559190df4d6d595480b30d8b13b862081fc4aac52790e33eb24cf7fbcb8003b8') 

pkgver() { 
  cd "$srcdir/$_pkgname" 
  ( set -o pipefail 
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || 
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" 
  ) 
} 

prepare() { 


  cd "$srcdir/${_pkgname}"

  # Don't build tests
  truncate -s 0 cmake/FindGMock.cmake
  truncate -s 0 tests/CMakeLists.txt

  cd "$srcdir/anbox-modules"
  patch -F3 -p0 binder/binder.c < ../19.patch
}

build() {
  mkdir -p "$srcdir/${_pkgname}/build"
  cd "$srcdir/${_pkgname}/build"

  cmake .. -DCMAKE_INSTALL_LIBDIR=/usr/lib -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_CXX_FLAGS="-Wno-error=implicit-fallthrough -Wno-error=missing-field-initializers" -DCMAKE_BUILD_TYPE=Release
  make
}

package_anbox-git() {
  depends=('lxc' 'sdl2_image' 'protobuf' 'anbox-image' 'libsystemd' 'boost-libs')
  optdepends=('anbox-modules-dkms-git: Required Android kernel modules')
  pkgdesc="Running Android in a container"

  cd "$srcdir/${_pkgname}"
  make -C build DESTDIR="$pkgdir" install

  install -Dm 644 -t $pkgdir/usr/lib/systemd/system $srcdir/anbox-container-manager.service
  install -Dm 644 -t $pkgdir/usr/lib/systemd/user $srcdir/anbox-session-manager.service
  install -Dm 644 $srcdir/anbox-bridge.network $pkgdir/usr/lib/systemd/network/80-anbox-bridge.network
  install -Dm 644 $srcdir/anbox-bridge.netdev $pkgdir/usr/lib/systemd/network/80-anbox-bridge.netdev
  install -Dm 644 -t $pkgdir/usr/lib/udev/rules.d $srcdir/99-anbox.rules
  install -Dm 644 -t $pkgdir/usr/share/applications $srcdir/anbox.desktop
  install -Dm 644 snap/gui/icon.png $pkgdir/usr/share/pixmaps/anbox.png
}

package_anbox-modules-dkms-git() {
  pkgdesc="Required kernel module sources for Android"
  depends=('dkms')
  arch=('any')

  cd "$srcdir/anbox-modules"
  modules=(ashmem binder)
  for mod in "${modules[@]}"; do
    install -dm 755 $pkgdir/usr/src
    cp -a $mod $pkgdir/usr/src/anbox-modules-$mod-$pkgver
  done;

  install -Dm 644 -t $pkgdir/usr/lib/modules-load.d $srcdir/anbox.conf
}

 

wrwolf2 commented on 2019-07-02 13:36 (UTC) (edited on 2019-07-02 20:43 (UTC) by wrwolf2)

@WhyNotHugo patch isn't sufficient .



DKMS make.log for anbox-modules-binder-r1098.cd829e9 for kernel 5.1.15-arch1-1-ARCH (x86_64)
mar 2 lug 2019, 14:34:07, UTC
make -C /lib/modules/5.1.15-arch1-1-ARCH/build V=0 M=$PWD
make[1]: ingresso nella directory "/usr/lib/modules/5.1.15-arch1-1-ARCH/build"
  CC [M]  /var/lib/dkms/anbox-modules-binder/r1098.cd829e9/build/deps.o
  CC [M]  /var/lib/dkms/anbox-modules-binder/r1098.cd829e9/build/binder.o
/var/lib/dkms/anbox-modules-binder/r1098.cd829e9/build/binder.c:25:3: error: expected identifier or ‘(’ before ‘-’ token
   25 |   - KVER=5.0
      |   ^
In file included from ./include/asm-generic/bug.h:5,
                 from ./arch/x86/include/asm/bug.h:83,
                 from ./include/linux/bug.h:5,
                 from ./include/linux/mmdebug.h:5,
                 from ./include/linux/mm.h:9,
                 from ./include/asm-generic/cacheflush.h:6,
                 from ./arch/x86/include/asm/cacheflush.h:6,
                 from /var/lib/dkms/anbox-modules-binder/r1098.cd829e9/build/binder.c:20:
./include/linux/freezer.h: In function ‘freezing’:
./include/linux/freezer.h:37:27: error: ‘system_freezing_cnt’ undeclared (first use in this function)
   37 |  if (likely(!atomic_read(&system_freezing_cnt)))
      |                           ^~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:76:40: note: in definition of macro ‘likely’
   76 | # define likely(x) __builtin_expect(!!(x), 1)
      |                                        ^
./include/linux/freezer.h:37:27: note: each undeclared identifier is reported only once for each function it appears in
   37 |  if (likely(!atomic_read(&system_freezing_cnt)))
      |                           ^~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:76:40: note: in definition of macro ‘likely’
   76 | # define likely(x) __builtin_expect(!!(x), 1)
      |                                        ^
make[2]: *** [scripts/Makefile.build:275: /var/lib/dkms/anbox-modules-binder/r1098.cd829e9/build/binder.o] Error 1
make[1]: *** [Makefile:1571: _module_/var/lib/dkms/anbox-modules-binder/r1098.cd829e9/build] Error 2
make[1]: uscita dalla directory "/usr/lib/modules/5.1.15-arch1-1-ARCH/build"
make: *** [Makefile:8: all] Error 2
~                                                                                                                                                      


DKMS make.log for anbox-modules-binder-r1098.cd829e9 for kernel 5.1.15-arch1-1-ARCH (x86_64)
mar 2 lug 2019, 22:31:56, UTC
make -C /lib/modules/5.1.15-arch1-1-ARCH/build V=0 M=$PWD
make[1]: ingresso nella directory "/usr/lib/modules/5.1.15-arch1-1-ARCH/build"
  CC [M]  /var/lib/dkms/anbox-modules-binder/r1098.cd829e9/build/deps.o
  CC [M]  /var/lib/dkms/anbox-modules-binder/r1098.cd829e9/build/binder.o
/var/lib/dkms/anbox-modules-binder/r1098.cd829e9/build/binder.c:3406:11: error: initialization of ‘vm_fault_t (*)(struct vm_fault *)’ {aka ‘unsigned int (*)(struct vm_fault *)’} from incompatible pointer type ‘int (*)(struct vm_fault *)’ [-Werror=incompatible-pointer-types]
 3406 |  .fault = binder_vm_fault,
      |           ^~~~~~~~~~~~~~~
/var/lib/dkms/anbox-modules-binder/r1098.cd829e9/build/binder.c:3406:11: note: (near initialization for ‘binder_vm_ops.fault’)
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:275: /var/lib/dkms/anbox-modules-binder/r1098.cd829e9/build/binder.o] Error 1
make[1]: *** [Makefile:1571: _module_/var/lib/dkms/anbox-modules-binder/r1098.cd829e9/build] Error 2
make[1]: uscita dalla directory "/usr/lib/modules/5.1.15-arch1-1-ARCH/build"
make: *** [Makefile:8: all] Error 2

s123 commented on 2019-06-21 10:46 (UTC) (edited on 2019-06-21 10:56 (UTC) by s123)

Can't build nor with gcc 8.3.0-1 nor 9.1.0-1. module ashmem_linux is fine and there is still problem with binder_linux:

DKMS make.log for anbox-modules-binder-r1096.ea2b7a3 for kernel 5.1.12-arch1-1-ARCH (x86_64)
Fr jun 21 10:55:34 MSK 2019
make -C /lib/modules/5.1.12-arch1-1-ARCH/build V=0 M=$PWD
make[1]: вход в каталог «/usr/lib/modules/5.1.12-arch1-1-ARCH/build»
  CC [M]  /var/lib/dkms/anbox-modules-binder/r1096.ea2b7a3/build/deps.o
  CC [M]  /var/lib/dkms/anbox-modules-binder/r1096.ea2b7a3/build/binder.o
/var/lib/dkms/anbox-modules-binder/r1096.ea2b7a3/build/binder.c:3406:11: error: initialization of «vm_fault_t ()(struct vm_fault )» {aka «unsigned int ()(struct vm_fault )»} from incompatible pointer type «int ()(struct vm_fault )» [-Werror=incompatible-pointer-types]
  .fault = binder_vm_fault,
           ^~~~~~~~~~~~~~~
/var/lib/dkms/anbox-modules-binder/r1096.ea2b7a3/build/binder.c:3406:11: notice: (near initialization «binder_vm_ops.fault»)
cc1: some warnings are considered errors
make[2]:  [scripts/Makefile.build:275: /var/lib/dkms/anbox-modules-binder/r1096.ea2b7a3/build/binder.o] Error 1
make[1]:  [Makefile:1571: module/var/lib/dkms/anbox-modules-binder/r1096.ea2b7a3/build] Error 2
make[1]: exit from catalog «/usr/lib/modules/5.1.12-arch1-1-ARCH/build»
make: *** [Makefile:8: all] Error 2

Immanuel commented on 2019-06-13 14:02 (UTC) (edited on 2019-06-14 07:49 (UTC) by Immanuel)

There is already an issue on Github for the build error error: missing field 'features' initializer etc. I have filed a pull request with a small patch to fix that problem. See the issue here: https://github.com/anbox/anbox/issues/1153

SBAPKat commented on 2019-06-13 08:01 (UTC) (edited on 2019-06-13 08:02 (UTC) by SBAPKat)

binder module doesnt build, here's the makelog:

DKMS make.log for anbox-modules-binder-r1096.ea2b7a3 for kernel 5.1.8-arch1-1-ARCH (x86_64) jeu. juin 13 09:21:02 CEST 2019 make -C /lib/modules/5.1.8-arch1-1-ARCH/build V=0 M=$PWD make[1] : on entre dans le répertoire « /usr/lib/modules/5.1.8-arch1-1-ARCH/build » CC [M] /var/lib/dkms/anbox-modules-binder/r1096.ea2b7a3/build/binder.o CC [M] /var/lib/dkms/anbox-modules-binder/r1096.ea2b7a3/build/deps.o /var/lib/dkms/anbox-modules-binder/r1096.ea2b7a3/build/binder.c:3406:11: error: initialisation de « vm_fault_t ()(struct vm_fault ) » {alias « unsigned int ()(struct vm_fault ) »} depuis le type pointeur « int ()(struct vm_fault ) » qui est incompatible [-Werror=incompatible-pointer-types] .fault = binder_vm_fault, ^~~~~~~~~~~~~~~ /var/lib/dkms/anbox-modules-binder/r1096.ea2b7a3/build/binder.c:3406:11: note: (près de l'initialisation de « binder_vm_ops.fault ») cc1 : certains avertissements sont traités comme des erreurs make[2]: [scripts/Makefile.build:275: /var/lib/dkms/anbox-modules-binder/r1096.ea2b7a3/build/binder.o] Error 1 make[1]: [Makefile:1571: module/var/lib/dkms/anbox-modules-binder/r1096.ea2b7a3/build] Error 2 make[1] : on quitte le répertoire « /usr/lib/modules/5.1.8-arch1-1-ARCH/build » make: *** [Makefile:8: all] Error 2

simona commented on 2019-06-02 21:28 (UTC)

anbox: error while loading shared libraries: libprotobuf-lite.so.17: cannot open shared object file: No such file or directory

satcom886 commented on 2019-05-24 12:07 (UTC)

I can confirm, that the modifications provided by @WhyNotHugo work. The package builds successfully and the module works.

satcom886 commented on 2019-05-24 11:29 (UTC)

Please update the PKGBUILD, so it works with 5.1.x kernels. It seems binder_linux does not build.

whynothugo commented on 2019-05-22 07:50 (UTC)

Apply this patch to PKGBUILD for this to build under the latest kernel:

diff --git a/PKGBUILD b/PKGBUILD
index b3196f9..52d29b5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -17,6 +17,7 @@ source=("git+https://github.com/anbox/anbox.git"
        'anbox.conf'
        'anbox.desktop'
        'anbox-bridge.network'
+        'https://github.com/anbox/anbox-modules/pull/19.patch'
        'anbox-bridge.netdev')
 sha256sums=('SKIP'
             'SKIP'
@@ -26,6 +27,7 @@ sha256sums=('SKIP'
             '3e07dc524a827c1651857cce28a06c1565bc5188101c140ed213bbafedc5abff'
             '7332d09865be553a259a53819cebddd21f661c7a251d78c2f46acd75c66676b6'
             '44899328725667041e6e84912da81c1d0147b708006eb2c2bb6503f271629ff0'
+            'SKIP'
             '559190df4d6d595480b30d8b13b862081fc4aac52790e33eb24cf7fbcb8003b8')

 pkgver() {
@@ -42,6 +44,9 @@ prepare() {
   # Don't build tests
   truncate -s 0 cmake/FindGMock.cmake
   truncate -s 0 tests/CMakeLists.txt
+
+  cd "$srcdir/anbox-modules"
+  patch -p0 binder/binder.c < ../19.patch
 }

 build() {

commented on 2019-05-16 03:20 (UTC)

If you are using a kernel >= 5.1, please see https://github.com/anbox/anbox-modules/pull/19 for a possible fix.

zethex commented on 2019-05-15 09:40 (UTC)

Cannot find kernel modules after installing. Modprobe outputs that it cannot find the modules "binder_linux" and "ashmem_linux". On next boot systemd shows failed "Load Kernel Modules". Most likely because it also cannot find the modules.

JJK commented on 2019-05-12 19:31 (UTC)

For some reason after installing, ashmem is working, while binder is not working.

 ls -l /dev/{ashmem,binder}
ls: cannot access '/dev/binder': No such file or directory
crw-rw-rw- 1 root root 10, 56 May 12 21:11 /dev/ashmem
systemd-modules-load[281]: Inserted module 'ashmem_linux'
systemd-modules-load[281]: Failed to find module 'binder_linux'

HiJack88 commented on 2019-05-08 02:26 (UTC)

I can answer yochananmarqos back on this. gmock & libdwarf are not needed in order to build the package here.

montefuscolo's proposal made the package compiling fine on my build system again, so that should be enough of a PKGBUILD update.

yochananmarqos commented on 2019-05-03 14:37 (UTC)

I had to install gmock & libdwarf to get r1096.ea2b7a3 to build. They need to be added to make dependencies.

montefuscolo commented on 2019-05-01 12:43 (UTC)

As of May 1th, it works only by changing cmake line in build section on PKGBUILD and adding -Wno-error=missing-field-initializers to DCMAKE_CXX_FLAGS.

build() {
  mkdir -p "$srcdir/${_pkgname}/build"
  cd "$srcdir/${_pkgname}/build"

  cmake .. -DCMAKE_INSTALL_LIBDIR=/usr/lib -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_CXX_FLAGS="-Wno-error=missing-field-initializers -Wno-error=implicit-fallthrough" -DCMAKE_BUILD_TYPE=Release
  make
}

freenestor commented on 2019-03-30 00:18 (UTC)

@danisantos got the same error. How to fix this?

In file included from /tmp/yaourt-tmp-aart/aur-anbox-git/src/anbox/src/anbox/dbus/skeleton/application_manager.cpp:20: /tmp/yaourt-tmp-aart/aur-anbox-git/src/anbox/src/anbox/dbus/sd_bus_helpers.h: In function ‘constexpr sd_bus_vtable anbox::dbus::sdbus::vtable::start(uint64_t)’: /tmp/yaourt-tmp-aart/aur-anbox-git/src/anbox/src/anbox/dbus/sd_bus_helpers.h:33:56: error: missing initializer for member ‘sd_bus_vtable::<unnamed union>::<unnamed struct>::features’ [-Werror=missing-field-initializers] v.x.start = decltype(v.x.start){sizeof(sd_bus_vtable)}; ^ /tmp/yaourt-tmp-aart/aur-anbox-git/src/anbox/src/anbox/dbus/sd_bus_helpers.h: In function ‘constexpr sd_bus_vtable anbox::dbus::sdbus::vtable::method_o(const char, const char, const char, sd_bus_message_handler_t, size_t, uint64_t)’: /tmp/yaourt-tmp-aart/aur-anbox-git/src/anbox/src/anbox/dbus/sd_bus_helpers.h:52:79: error: missing initializer for member ‘sd_bus_vtable::<unnamed union>::<unnamed struct>::names’ [-Werror=missing-field-initializers] v.x.method = decltype(v.x.method){member, signature, result, handler, offset}; ^ /tmp/yaourt-tmp-aart/aur-anbox-git/src/anbox/src/anbox/dbus/sd_bus_helpers.h: In function ‘constexpr sd_bus_vtable anbox::dbus::sdbus::vtable::signal(const char, const char, uint64_t)’: /tmp/yaourt-tmp-aart/aur-anbox-git/src/anbox/src/anbox/dbus/sd_bus_helpers.h:67:54: error: missing initializer for member ‘sd_bus_vtable::<unnamed union>::<unnamed struct>::names’ [-Werror=missing-field-initializers] v.x.signal = decltype(v.x.signal){member, signature}; ^ cc1plus: all warnings being treated as errors make[2]: [src/CMakeFiles/anbox-core.dir/build.make:466: src/CMakeFiles/anbox-core.dir/anbox/dbus/skeleton/application_manager.cpp.o] Error 1 make[1]: [CMakeFiles/Makefile2:1970: src/CMakeFiles/anbox-core.dir/all] Error 2 make: ** [Makefile:141: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting... ==> ERROR: Makepkg was unable to build anbox-git.

HiJack88 commented on 2019-03-28 20:23 (UTC)

@dlin and @eri:

thanks for your patches. anbox package builds fine now. :)

Unforturnately anbox container manager runs into an error at startup:

$ sudo /usr/bin/anbox container-manager --daemon --privileged -data-path=/var/lib/anbox [ 2019-03-28 17:14:30] [container_manager.cpp:119@operator()] boost::filesystem::create_directories: Invalid argument

anbox package version is 1:r1063.d521e28-1 as of March 28th, 2019 boost package version is 1.69.0-1

Have you got any idea of what's goin wrong here?

Thx and best regards

dlin commented on 2019-03-26 23:23 (UTC) (edited on 2019-03-26 23:52 (UTC) by dlin)

Here is my patched PKGBUILD for downloading Firenox89/anbox's patch for protobuf 3.7.0-1.

https://github.com/dlintw/myaur/blob/master/anbox-git/PKGBUILD

eri commented on 2019-03-25 12:50 (UTC)

@HiJack88

https://github.com/Firenox89/anbox/commit/62fe2144a1d56fc10eb19a0335a7f4e6d875c2b0

This patch seems to work.

HiJack88 commented on 2019-03-24 18:34 (UTC)

Hi all, build fail with error log given below. Protobuf is v 3.7.0-1 on an up to date Arch Linux.

Cheers.

Scanning dependencies of target anbox-core [ 45%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/android/ip_config_builder.cpp.o [ 45%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/application/database.cpp.o [ 45%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/android/intent.cpp.o [ 45%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/application/launcher_storage.cpp.o [ 46%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/audio/server.cpp.o [ 46%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/bridge/android_api_stub.cpp.o 46%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/bridge/platform_api_skeleton.cpp.o /tmp/yaourt-tmp-user/aur-anbox-git/src/anbox/src/anbox/bridge/android_api_stub.cpp: In member function ‘virtual void anbox::bridge::AndroidApiStub::launch(const anbox::android::Intent&, const anbox::graphics::Rect&, const anbox::wm::Stack::Id&)’: /tmp/yaourt-tmp-user/aur-anbox-git/src/anbox/src/anbox/bridge/android_api_stub.cpp:107:25: error: ‘NewCallback’ is not a member of ‘google::protobuf’ google::protobuf::NewCallback(this, &AndroidApiStub::application_launched, ^~~~~~~~~~~ /tmp/yaourt-tmp-user/aur-anbox-git/src/anbox/src/anbox/bridge/android_api_stub.cpp: In member function ‘void anbox::bridge::AndroidApiStub::set_focused_task(const int32_t&)’: /tmp/yaourt-tmp-user/aur-anbox-git/src/anbox/src/anbox/bridge/android_api_stub.cpp:141:43: error: ‘NewCallback’ is not a member of ‘google::protobuf’ google::protobuf::NewCallback( ^~~~~~~~~~~ /tmp/yaourt-tmp-user/aur-anbox-git/src/anbox/src/anbox/bridge/android_api_stub.cpp: In member function ‘void anbox::bridge::AndroidApiStub::remove_task(const int32_t&)’: /tmp/yaourt-tmp-user/aur-anbox-git/src/anbox/src/anbox/bridge/android_api_stub.cpp:170:43: error: ‘NewCallback’ is not a member of ‘google::protobuf’ google::protobuf::NewCallback( ^~~~~~~~~~~ /tmp/yaourt-tmp-user/aur-anbox-git/src/anbox/src/anbox/bridge/android_api_stub.cpp: In member function ‘void anbox::bridge::AndroidApiStub::resize_task(const int32_t&, const anbox::graphics::Rect&, const int32_t&)’: /tmp/yaourt-tmp-user/aur-anbox-git/src/anbox/src/anbox/bridge/android_api_stub.cpp:208:43: error: ‘NewCallback’ is not a member of ‘google::protobuf’ google::protobuf::NewCallback( ^~~~~~~~~~~ make[2]: [src/CMakeFiles/anbox-core.dir/build.make:128: src/CMakeFiles/anbox-core.dir/anbox/bridge/android_api_stub.cpp.o] Error 1 make[2]: Waiting for unfinished jobs.... /tmp/yaourt-tmp-user/aur-anbox-git/src/anbox/src/anbox/bridge/platform_api_skeleton.cpp: In member function ‘void anbox::bridge::PlatformApiSkeleton::set_clipboard_data(const anbox::protobuf::bridge::ClipboardData, anbox::protobuf::rpc::Void, google::protobuf::Closure)’: /tmp/yaourt-tmp-user/aur-anbox-git/src/anbox/src/anbox/bridge/platform_api_skeleton.cpp:54:7: error: invalid use of incomplete type ‘class google::protobuf::Closure’ done->Run(); ^~ In file included from /tmp/yaourt-tmp-user/aur-anbox-git/src/anbox/src/anbox/bridge/platform_api_skeleton.cpp:18: /tmp/yaourt-tmp-user/aur-anbox-git/src/anbox/src/anbox/bridge/platform_api_skeleton.h:26:7: note: forward declaration of ‘class google::protobuf::Closure’ class Closure; ^~~~~~~ /tmp/yaourt-tmp-user/aur-anbox-git/src/anbox/src/anbox/bridge/platform_api_skeleton.cpp: In member function ‘void anbox::bridge::PlatformApiSkeleton::get_clipboard_data(const anbox::protobuf::rpc::Void, anbox::protobuf::bridge::ClipboardData, google::protobuf::Closure)’: /tmp/yaourt-tmp-user/aur-anbox-git/src/anbox/src/anbox/bridge/platform_api_skeleton.cpp:66:7: error: invalid use of incomplete type ‘class google::protobuf::Closure’ done->Run(); ^~ In file included from /tmp/yaourt-tmp-user/aur-anbox-git/src/anbox/src/anbox/bridge/platform_api_skeleton.cpp:18: /tmp/yaourt-tmp-user/aur-anbox-git/src/anbox/src/anbox/bridge/platform_api_skeleton.h:26:7: note: forward declaration of ‘class google::protobuf::Closure’ class Closure; ^~~~~~~ make[2]: [src/CMakeFiles/anbox-core.dir/build.make:141: src/CMakeFiles/anbox-core.dir/anbox/bridge/platform_api_skeleton.cpp.o] Error 1 make[1]: [CMakeFiles/Makefile2:1970: src/CMakeFiles/anbox-core.dir/all] Error 2 make: *** [Makefile:141: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting... ==> ERROR: Makepkg was unable to build .

whynothugo commented on 2019-03-22 18:33 (UTC)

These changes to the PKGBUILD make sure this patch is included:

 prepare() {
   cd "$srcdir/${_pkgname}"

+  git remote rm protobuf || true
+  git remote add -f protobuf git@github.com:Firenox89/anbox.git
+  git merge protobuf/master
+
   # Don't build tests

kainonergon commented on 2019-03-22 11:08 (UTC) (edited on 2019-03-22 11:08 (UTC) by kainonergon)

PR hasn't been merged yet: https://github.com/anbox/anbox/pull/1079

For now the package can be built from this fork: https://github.com/Firenox89/anbox

whynothugo commented on 2019-03-19 21:02 (UTC)

@kainonergon: There's a patch upstream that fixes this:

https://github.com/anbox/anbox/issues/1071#issuecomment-473049375

Can we get this merged into the PKGBUILD?

kainonergon commented on 2019-03-19 12:58 (UTC)

It doesn't build with protobuf 3.7.0-1, but builds OK with 3.6.1.3-1.

hdk5 commented on 2019-03-19 07:57 (UTC)

-DCMAKE_CXX_FLAGS="-Wno-error=missing-field-initializers" is required for cmake command on 51st line in PKGBUILD

danisantos commented on 2019-03-15 16:37 (UTC)

I can't compile. I get this error:

[ 45%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/dbus/skeleton/application_manager.cpp.o
In file included from /home/daniel/.cache/pacaur/anbox-git/src/anbox/src/anbox/dbus/skeleton/application_manager.cpp:20:
/home/daniel/.cache/pacaur/anbox-git/src/anbox/src/anbox/dbus/sd_bus_helpers.h: In function ‘constexpr sd_bus_vtable anbox::dbus::sdbus::vtable::start(uint64_t)’:
/home/daniel/.cache/pacaur/anbox-git/src/anbox/src/anbox/dbus/sd_bus_helpers.h:33:56: error: missing initializer for member ‘sd_bus_vtable::<unnamed union>::<unnamed struct>::features’ [-Werror=missing-field-initializers]
   v.x.start = decltype(v.x.start){sizeof(sd_bus_vtable)};
                                                        ^
/home/daniel/.cache/pacaur/anbox-git/src/anbox/src/anbox/dbus/sd_bus_helpers.h: In function ‘constexpr sd_bus_vtable anbox::dbus::sdbus::vtable::method_o(const char*, const char*, const char*, sd_bus_message_handler_t, size_t, uint64_t)’:
/home/daniel/.cache/pacaur/anbox-git/src/anbox/src/anbox/dbus/sd_bus_helpers.h:52:79: error: missing initializer for member ‘sd_bus_vtable::<unnamed union>::<unnamed struct>::names’ [-Werror=missing-field-initializers]
   v.x.method = decltype(v.x.method){member, signature, result, handler, offset};
                                                                               ^
/home/daniel/.cache/pacaur/anbox-git/src/anbox/src/anbox/dbus/sd_bus_helpers.h: In function ‘constexpr sd_bus_vtable anbox::dbus::sdbus::vtable::signal(const char*, const char*, uint64_t)’:
/home/daniel/.cache/pacaur/anbox-git/src/anbox/src/anbox/dbus/sd_bus_helpers.h:67:54: error: missing initializer for member ‘sd_bus_vtable::<unnamed union>::<unnamed struct>::names’ [-Werror=missing-field-initializers]
   v.x.signal = decltype(v.x.signal){member, signature};
                                                      ^
cc1plus: all warnings being treated as errors
make[2]: *** [src/CMakeFiles/anbox-core.dir/build.make:466: src/CMakeFiles/anbox-core.dir/anbox/dbus/skeleton/application_manager.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1970: src/CMakeFiles/anbox-core.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

JcChen commented on 2019-03-15 15:22 (UTC)

[ 45%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/dbus/skeleton/application_manager.cpp.o In file included from /home/jc/.cache/aurman/anbox-git/src/anbox/src/anbox/dbus/skeleton/application_manager.cpp:20: /home/jc/.cache/aurman/anbox-git/src/anbox/src/anbox/dbus/sd_bus_helpers.h: in function‘constexpr sd_bus_vtable anbox::dbus::sdbus::vtable::start(uint64_t)’中: /home/jc/.cache/aurman/anbox-git/src/anbox/src/anbox/dbus/sd_bus_helpers.h:33:56: error:member‘sd_bus_vtable::<unnamed union>::<unnamed struct>::features’missing braces around initializer [-Werror=missing-field-initializers] v.x.start = decltype(v.x.start){sizeof(sd_bus_vtable)}; ^ /home/jc/.cache/aurman/anbox-git/src/anbox/src/anbox/dbus/sd_bus_helpers.h: in function'constexpr sd_bus_vtable anbox::dbus::sdbus::vtable::method_o(const char, const char, const char, sd_bus_message_handler_t, size_t, uint64_t)’中: /home/jc/.cache/aurman/anbox-git/src/anbox/src/anbox/dbus/sd_bus_helpers.h:52:79: error: member‘sd_bus_vtable::<unnamed union>::<unnamed struct>::names’missing braces around initializer [-Werror=missing-field-initializers] v.x.method = decltype(v.x.method){member, signature, result, handler, offset}; ^ /home/jc/.cache/aurman/anbox-git/src/anbox/src/anbox/dbus/sd_bus_helpers.h: in function‘constexpr sd_bus_vtable anbox::dbus::sdbus::vtable::signal(const char, const char*, uint64_t)’中: /home/jc/.cache/aurman/anbox-git/src/anbox/src/anbox/dbus/sd_bus_helpers.h:67:54: error: member‘sd_bus_vtable::<unnamed union>::<unnamed struct>::names’missing braces around initializer [-Werror=missing-field-initializers] v.x.signal = decltype(v.x.signal){member, signature};

whynothugo commented on 2019-03-13 16:29 (UTC)

Package no longer builds, not sure why it broke:

[ 46%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/bridge/android_api_stub.cpp.o                                                      
/home/hugo/downloads/ro/anbox-git/src/anbox/src/anbox/bridge/android_api_stub.cpp: In member function ‘virtual void anbox::bridge::AndroidApiStub::launch(const anbox::android::Intent&, const anbox::graphics::Rect&, const anbox::wm::Stack::Id&)’:                                                
/home/hugo/downloads/ro/anbox-git/src/anbox/src/anbox/bridge/android_api_stub.cpp:107:25: error: ‘NewCallback’ is not a member of ‘google::protobuf’
       google::protobuf::NewCallback(this, &AndroidApiStub::application_launched,                                                                 
                         ^~~~~~~~~~~
/home/hugo/downloads/ro/anbox-git/src/anbox/src/anbox/bridge/android_api_stub.cpp: In member function ‘void anbox::bridge::AndroidApiStub::set_focused_task(const int32_t&)’:
/home/hugo/downloads/ro/anbox-git/src/anbox/src/anbox/bridge/android_api_stub.cpp:141:43: error: ‘NewCallback’ is not a member of ‘google::protobuf’
                         google::protobuf::NewCallback(
                                           ^~~~~~~~~~~
/home/hugo/downloads/ro/anbox-git/src/anbox/src/anbox/bridge/android_api_stub.cpp: In member function ‘void anbox::bridge::AndroidApiStub::remove_task(const int32_t&)’:
/home/hugo/downloads/ro/anbox-git/src/anbox/src/anbox/bridge/android_api_stub.cpp:170:43: error: ‘NewCallback’ is not a member of ‘google::protobuf’
                         google::protobuf::NewCallback(
                                           ^~~~~~~~~~~
/home/hugo/downloads/ro/anbox-git/src/anbox/src/anbox/bridge/android_api_stub.cpp: In member function ‘void anbox::bridge::AndroidApiStub::resize_task(const int32_t&, const anbox::graphics::Rect&, const int32_t&)’:
/home/hugo/downloads/ro/anbox-git/src/anbox/src/anbox/bridge/android_api_stub.cpp:208:43: error: ‘NewCallback’ is not a member of ‘google::protobuf’
                         google::protobuf::NewCallback(
                                           ^~~~~~~~~~~
make[2]: *** [src/CMakeFiles/anbox-core.dir/build.make:128: src/CMakeFiles/anbox-core.dir/anbox/bridge/android_api_stub.cpp.o] Error 1            
make[1]: *** [CMakeFiles/Makefile2:1970: src/CMakeFiles/anbox-core.dir/all] Error 2                                                               
make: *** [Makefile:141: all] Error 2

moham_96 commented on 2019-03-05 06:26 (UTC)

anbox-session-manager always crashes for me, I had to add Environment=DISPLAY=:0 to the anbox-session-manager.service file to be able to start it I don't know if this is the case of all desktop setups but I use a minimal setup(i3wm and startx without a login manager) maybe this is why i get the crash

edward-p commented on 2019-03-01 03:44 (UTC)

Can someone help with this issue?

I have anbox-git built from AUR, and I got no input devices.

The console log shows:

...
02-28 14:03:02.531   108   108 I InputManager: Starting input manager
02-28 14:03:02.532   108   145 I EventHub: Opening device: /dev/input/event1
02-28 14:03:02.532   108   145 E EventHub: Failed to connect to input device socket: Permission denied
02-28 14:03:02.532   108   145 I EventHub: Opening device: /dev/input/event0
02-28 14:03:02.532   108   145 E EventHub: Failed to connect to input device socket: Permission denied
02-28 14:03:02.534   108   108 I SystemServer: No Bluetooth Service (emulator)
...

I have no idea of what reason causes this.

I have submitted an issue on anbox repository here. anbox/#1058

But I'm afraid that only snapcraft user can get official support.

dusatvoj commented on 2019-01-27 13:50 (UTC)

curl: (7) Failed to connect to build.anbox.io port 80: Connection timed out

==> ERROR: Failure while downloading http://build.anbox.io/android-images/2018/07/19/android_amd64.img

Aborting...

Error downloading sources: anbox-image

vkill commented on 2019-01-20 02:54 (UTC) (edited on 2019-01-20 02:55 (UTC) by vkill)

anbox: error while loading shared libraries: libboost_log.so.1.68.0: cannot open shared object file: No such file or directory

@linarcx downgrade boost-libs or makepkg from snapshot.

Raansu commented on 2019-01-20 00:36 (UTC)

"linux-headers" should be a makedepends for "anbox-modules-dkms-git"

Raansu commented on 2019-01-19 21:20 (UTC)

@linarcx Seems you might have to rebuild anbox since boost libs were updated recently.

linarcx commented on 2019-01-19 10:47 (UTC) (edited on 2019-01-19 16:08 (UTC) by linarcx)

Hi. i follow these instructions(actually i wrote it and it works before): https://github.com/LinArcX/Blogit/blob/master/Packages/Anbox/anbox.md But this time i can't start anbox and it says:

anbox: error while loading shared libraries: libboost_log.so.1.68.0: cannot open shared object file: No such file or directory

I already installed boost-libs but it's version is 1.69.0-1 (because it is dependency of krita anb boost) and that .so file existed: /usr/lib/libboost_log.so.1.69.0 But anbox needs version 68 of it. how fix this issues?

BrianAllred commented on 2018-11-20 21:34 (UTC)

How do you use the provided network files with NetworkManager?

fabrixx commented on 2018-11-11 07:34 (UTC)

Also i have this error: Application manager service is not running yet

lvspais commented on 2018-10-28 17:42 (UTC) (edited on 2018-10-28 17:47 (UTC) by lvspais)

Everything is working alright except the DNS. I can connect to direct IPs however I'm not able to resolve names on anbox.

nibbson commented on 2018-10-15 14:46 (UTC)

Anbox-bridge not allowing for a nerwork connection. Everything else running fine.

Koloses commented on 2018-10-14 18:47 (UTC)

If you have libboost 1.67 error then you must rebuild the package locally. Clear cache and try to reinstall. It works afterwards.

suiwenfeng commented on 2018-10-11 06:07 (UTC)

failed to launch after installed , and it`s out of date now...

anbox: error while loading shared libraries: libboost_log.so.1.67.0: cannot open shared object file: No such file or directory

Raansu commented on 2018-10-09 08:28 (UTC)

Why is this flagged out of date? It works fine here.

nicholascw commented on 2018-10-03 23:50 (UTC)

pkgbuild doesn't work as boost upgrade to 1.68.0

lukezene commented on 2018-08-23 12:04 (UTC) (edited on 2018-08-23 12:05 (UTC) by lukezene)

Hi all,

@HiJack88 anbox worked until few days ago for me. It was enough for me to start the "anbox-container-manager.service" and add iptables rules.

Since I did some system updates error message is appeared so I don't think the problem is the old CPU.

ps. I have pc with Intel(R) Core(TM) i3 CPU M 350 @ 2.27GHz

HiJack88 commented on 2018-08-22 16:27 (UTC)

Hi all, kernel modules ashmem & binder are loaded automatically at system startup here, so no need to insmod them manually.

But error message remains.

Don't know if that is due to my old CPU as given by feature check:

$ anbox check-features

The CPU of your computer (Intel(R) Core(TM) i5 CPU M 520 @ 2.40GHz) does not support all features Anbox requires. It is missing support for the following features: SSE 4.1, SSE 4.2, SSSE 3 You can for example find more information about SSE here https://en.wikipedia.org/wiki/Streaming_SIMD_Extensions

Maybe you need some addition system info:

$ anbox system-info

version: local-7cc6fb4 cpu: arch: x86 brand: Intel(R) Core(TM) i5 CPU M 520 @ 2.40GHz features: - aes os: name: Antergos Linux version: 16.5-ISO-Rolling snap-based: false kernel: version: Linux version 4.18.3-arch1-1-ARCH (builduser@heftig-24267) (gcc version 8.2.0 (GCC)) #1 SMP PREEMPT Sat Aug 18 09:22:54 UTC 2018 binder: true ashmem: true graphics: egl: vendor: Mesa Project version: 1.4 (DRI2) extensions: - EGL_CHROMIUM_sync_control - EGL_EXT_image_dma_buf_import - EGL_KHR_cl_event2 - EGL_KHR_config_attribs - EGL_KHR_create_context - EGL_KHR_create_context_no_error - EGL_KHR_fence_sync - EGL_KHR_get_all_proc_addresses - EGL_KHR_gl_colorspace - EGL_KHR_gl_renderbuffer_image - EGL_KHR_gl_texture_2D_image - EGL_KHR_gl_texture_3D_image - EGL_KHR_gl_texture_cubemap_image - EGL_KHR_image - EGL_KHR_image_base - EGL_KHR_image_pixmap - EGL_KHR_no_config_context - EGL_KHR_reusable_sync - EGL_KHR_surfaceless_context - EGL_EXT_pixel_format_float - EGL_KHR_wait_sync - EGL_MESA_configless_context - EGL_MESA_drm_image - EGL_MESA_image_dma_buf_export - EGL_NOK_swap_region - EGL_NOK_texture_from_pixmap - EGL_NV_post_sub_buffer - EGL_WL_bind_wayland_display gles2: vendor: nouveau vendor: OpenGL ES 3.0 Mesa 18.1.6 extensions: - GL_ANGLE_texture_compression_dxt3 - GL_ANGLE_texture_compression_dxt5 - GL_APPLE_texture_max_level - GL_EXT_base_instance - GL_EXT_blend_func_extended - GL_EXT_blend_minmax - GL_EXT_clip_cull_distance - GL_EXT_color_buffer_float - GL_EXT_compressed_ETC1_RGB8_sub_texture - GL_EXT_copy_image - GL_EXT_discard_framebuffer - GL_EXT_draw_buffers - GL_EXT_draw_buffers_indexed - GL_EXT_draw_elements_base_vertex - GL_EXT_frag_depth - GL_EXT_map_buffer_range - GL_EXT_multi_draw_arrays - GL_EXT_occlusion_query_boolean - GL_EXT_polygon_offset_clamp - GL_EXT_read_format_bgra - GL_EXT_separate_shader_objects - GL_EXT_shader_integer_mix - GL_EXT_texture_border_clamp - GL_EXT_texture_compression_dxt1 - GL_EXT_texture_filter_anisotropic - GL_EXT_texture_format_BGRA8888 - GL_EXT_texture_rg - GL_EXT_texture_sRGB_decode - GL_EXT_texture_type_2_10_10_10_REV - GL_EXT_unpack_subimage - GL_EXT_window_rectangles - GL_KHR_context_flush_control - GL_KHR_debug - GL_KHR_no_error - GL_MESA_shader_integer_functions - GL_NV_draw_buffers - GL_NV_fbo_color_attachments - GL_NV_read_buffer - GL_NV_read_depth - GL_NV_read_depth_stencil - GL_NV_read_stencil - GL_OES_EGL_image - GL_OES_EGL_image_external - GL_OES_EGL_image_external_essl3 - GL_OES_EGL_sync - GL_OES_compressed_ETC1_RGB8_texture - GL_OES_copy_image - GL_OES_depth24 - GL_OES_depth_texture - GL_OES_depth_texture_cube_map - GL_OES_draw_buffers_indexed - GL_OES_draw_elements_base_vertex - GL_OES_element_index_uint - GL_OES_fbo_render_mipmap - GL_OES_get_program_binary - GL_OES_mapbuffer - GL_OES_packed_depth_stencil - GL_OES_required_internalformat - GL_OES_rgb8_rgba8 - GL_OES_standard_derivatives - GL_OES_stencil8 - GL_OES_surfaceless_context - GL_OES_texture_3D - GL_OES_texture_border_clamp - GL_OES_texture_float - GL_OES_texture_float_linear - GL_OES_texture_half_float - GL_OES_texture_half_float_linear - GL_OES_texture_npot - GL_OES_texture_stencil8 - GL_OES_vertex_array_object - GL_OES_vertex_half_float

Hope that helps getting this done.

Cheers

lukezene commented on 2018-08-21 22:10 (UTC)

Hi all, @HiJack88 I have the same problem too.

gde.satrigraha commented on 2018-08-21 20:37 (UTC)

in case some newbie like me tried to install this stuffs. after installation I need to do: - sudo modprobe binder_linux - sudo modprobe ashmem_linux - sudo systemctl start anbox-container-manager.service - systemctl --user start anbox-session-manager.service

after this, then we can run the anbox application.

HiJack88 commented on 2018-08-21 19:02 (UTC)

Hi all,

Anbox compiles & installs fine here (current Antergos, Lenovo Thinkpad T510), but it won't start with error "[launch.cpp:214@operator()] Session manager failed to become ready".

Start sequence is: 1.) sudo systemctl start anbox-container-manager.service 2.) systemctl --user start anbox-session-manager.service 3.) /usr/bin/anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity &

harsh727 commented on 2018-08-19 13:39 (UTC)

package is not compiling because of new protobuf version 3.6 previously its 3.5 ;__;

H3X0 commented on 2018-08-03 19:40 (UTC) (edited on 2018-08-03 19:48 (UTC) by H3X0)

Hello, I want to activate the arm support, has someone managed to active with this version of anbox-git?

yochananmarqos commented on 2018-07-31 17:01 (UTC) (edited on 2018-07-31 17:01 (UTC) by yochananmarqos)

Should libdwarf be added as a dependency? It builds without it, but it complains:

Could NOT find libdwarf (missing: LIBDWARF_LIBRARY LIBDWARF_INCLUDE_DIR) 

znmeb commented on 2018-07-19 20:11 (UTC)

It looks like the DKMS module source has been broken out into a separate repo - https://github.com/anbox/anbox-modules

I'm not sure when this happened; I've been away from troubleshooting this for a few days.

gavsiu commented on 2018-07-19 20:05 (UTC)

I'm also getting this error. I tried starting the anbox-container-manager.service, but it's the same and the service started without any errors.

anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity
[ 2018-07-19 17:36:50] [daemon.cpp:61@Run] Application manager service is not running yet

Maybe it's related to this: https://github.com/anbox/anbox/issues/781

It was supposedly fixed yesterday.

znmeb commented on 2018-07-19 20:01 (UTC) (edited on 2018-07-19 20:02 (UTC) by znmeb)

This issue is common on the GitHub issues; the maintainers don't seem to be closing duplicates. I saw one note that it had been fixed. I haven't been able to get the upstream source to build either. As irtimmer says, it's alpha.

znmeb commented on 2018-07-15 07:51 (UTC)

It looks like Anbox in AUR has this issue:

https://github.com/anbox/anbox/issues/814

I'm seeing this after the install. I activated it from the command line:

/usr/bin/time anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity [ 2018-07-15 07:46:59] [daemon.cpp:59@Run] Application manager service is not running yet Command exited with non-zero status 1 0.22user 0.15system 0:50.37elapsed 0%CPU (0avgtext+0avgdata 75324maxresident)k 0inputs+0outputs (0major+6407minor)pagefaults 0swaps

JuniorJPDJ commented on 2018-07-05 19:29 (UTC)

@ShalokShalom look into pkgbuild It clones both, anbox and anbox-modules

ShalokShalom commented on 2018-07-05 06:22 (UTC)

How is it possible that this builds from the same source as the main package, since the official way provides an own source for it: https://github.com/anbox/anbox-modules

ullebe1 commented on 2018-06-19 09:24 (UTC)

Seems like 'python2' is missing as a make-dependency. Without it I get:

[ 15%] Linking CXX static library libOpenglCodecCommon.a [ 15%] Built target OpenglCodecCommon Scanning dependencies of target GLHeaders Generating /build/anbox-git/src/anbox/build/external/android-emugl/host/include/OpenGLESDispatch/RenderEGL_functions.h /usr/bin/env: 'python2': No such file or directory make[2]: [external/android-emugl/host/libs/CMakeFiles/GLHeaders.dir/build.make:57: GLHeaders] Error 127 make[1]: [CMakeFiles/Makefile2:1239: external/android-emugl/host/libs/CMakeFiles/GLHeaders.dir/all] Error 2 make: *** [Makefile:141: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting...

joopdo commented on 2018-06-15 09:22 (UTC)

@PDesire Thanks with your PKGBUILD it installs successfully!

PDesire commented on 2018-06-14 11:02 (UTC)

Finally fixed some flaws in the code, and uploaded it to Github. Installation should work fine now.

Code: https://github.com/PDesire/anbox-git

milkii commented on 2018-06-04 17:19 (UTC)

There is a pull request for -Wno-error=switch-default @ https://github.com/anbox/anbox/pull/729

There is discussion on GitHub about adding a GCC version check as -Wno-error=implicit-fallthrough fails for Ubuntu 16.04 packaged GCC.

Until these two are furthered, see my prior comment below.

milkii commented on 2018-05-29 06:24 (UTC) (edited on 2018-06-04 17:19 (UTC) by milkii)

PKGBUILD needs a conflict with backward-cpp package

edit: also, anbox-git doesn't build atm: https://github.com/anbox/anbox/issues/726

adding "-Wno-error=switch-default -Wno-error=implicit-fallthrough" to CMAKE_CXX_FLAGS in external/backtrace-cpp/CMakeLists.txt:44 fixes this

Saren commented on 2018-05-12 13:20 (UTC)

@mcku It does not work anyway, so I gave up XD

HiJack88 commented on 2018-05-07 08:56 (UTC)

Hi all,

i keep getting the same error message when trying to status the anbox-session-manager.service as reported by JuniorJPDJ, mcku, Saren ...

I think anbox depends on some older boost version and may need a futher patch in order to cope with the actual boost & boost-libs 1.66 as present under Arch.

$ systemctl --user start anbox-session-manager.service $ systemctl --user status anbox-session-manager.service ● anbox-session-manager.service - Anbox Session Manager Loaded: loaded (/usr/lib/systemd/user/anbox-session-manager.service; disabled; vendor preset: enabled) Active: failed (Result: signal) since Mon 2018-05-07 10:05:36 CEST; 5s ago Process: 6433 ExecStart=/usr/bin/anbox session-manager (code=killed, signal=ABRT) Main PID: 6433 (code=killed, signal=ABRT) Mai 07 10:05:35 Wonderland systemd[976]: Started Anbox Session Manager. Mai 07 10:05:35 Wonderland anbox[6433]: Failed to start container: Failed to start container: Failed to configure LXC container Mai 07 10:05:35 Wonderland anbox[6433]: Lost connection to container manager, terminating. Mai 07 10:05:35 Wonderland anbox[6433]: Container is not running Mai 07 10:05:35 Wonderland anbox[6433]: terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::log::v2_mt_posix::system_error> >' Mai 07 10:05:35 Wonderland anbox[6433]: what(): Failed to set TLS value: Invalid argument Mai 07 10:05:36 Wonderland systemd[976]: anbox-session-manager.service: Main process exited, code=killed, status=6/ABRT Mai 07 10:05:36 Wonderland systemd[976]: anbox-session-manager.service: Failed with result 'signal'. Mai 07 10:05:36 Wonderland systemd-coredump[6446]: Process 6433 (anbox) of user 1000 dumped core.</boost::exception_detail::error_info_injector<boost::log::v2_mt_posix::system_error>

                                             Stack trace of thread 6444:
                                             #0  0x00007f720165cefb raise (libc.so.6)
                                             #1  0x00007f720165e2c1 abort (libc.so.6)
                                             #2  0x00007f7201c88d57 _ZN9__gnu_cxx27__verbose_terminate_handlerEv (libstdc++.so.6)
                                             #3  0x00007f7201c868c6 _ZN10__cxxabiv111__terminateEPFvvE (libstdc++.so.6)
                                             #4  0x00007f7201c86913 _ZSt9terminatev (libstdc++.so.6)
                                             #5  0x00007f7201cb3bd2 execute_native_thread_routine (libstdc++.so.6)
                                             #6  0x00007f72028180bc start_thread (libpthread.so.0)
                                             #7  0x00007f720171f2ff __clone (libc.so.6)

                                             Stack trace of thread 6442:
                                             #0  0x00007f720281e07c pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                             #1  0x0000563080ed0d5c n/a (anbox)
                                             #2  0x00007f7201cb3b9f execute_native_thread_routine (libstdc++.so.6)
                                             #3  0x00007f72028180bc start_thread (libpthread.so.0)
                                             #4  0x00007f720171f2ff __clone (libc.so.6)

                                             Stack trace of thread 6433:
                                             #0  0x00007f71de153180 n/a (libnvidia-eglcore.so.340.106)
                                             #1  0x0000563080f0872f _ZN11TextureDrawD2Ev (anbox)
                                             #2  0x0000563080efeb9f _ZN8RendererD2Ev (anbox)
                                             #3  0x0000563080efa50d _ZN5anbox8graphics13LayerComposerD1Ev (anbox)
                                             #4  0x0000563080f08015 _ZNSt10shared_ptrIN5anbox8graphics13LayerComposerEED1Ev (anbox)

                                             #5  0x00007f720165f8e1 __run_exit_handlers (libc.so.6)
                                             #6  0x00007f720165f9ea exit (libc.so.6)
                                             #7  0x00007f72016499ae __libc_start_main (libc.so.6)
                                             #8  0x0000563080e8e6fa _start (anbox)

                                             Stack trace of thread 6439:
                                             #0  0x00007f720171f627 epoll_wait (libc.so.6)
                                             #1  0x0000563080ed09ce n/a (anbox)
                                             #2  0x00007f7201cb3b9f execute_native_thread_routine (libstdc++.so.6)
                                             #3  0x00007f72028180bc start_thread (libpthread.so.0)
                                             #4  0x00007f720171f2ff __clone (libc.so.6)

                                             Stack trace of thread 6438:
                                             #0  0x00007f720281e07c pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                             #1  0x0000563080ed0d5c n/a (anbox)
                                             #2  0x00007f7201cb3b9f execute_native_thread_routine (libstdc++.so.6)
                                             #3  0x00007f72028180bc start_thread (libpthread.so.0)
                                             #4  0x00007f720171f2ff __clone (libc.so.6)

                                             Stack trace of thread 6434:
                                             #0  0x00007f7201714dd6 ppoll (libc.so.6)
                                             #1  0x00007f71f5d1ec53 pa_mainloop_poll (libpulse.so.0)
                                             #2  0x00007f71f5d1f271 pa_mainloop_iterate (libpulse.so.0)
                                             #3  0x00007f71f5d1f301 pa_mainloop_run (libpulse.so.0)
                                             #4  0x00007f72031e6450 n/a (libSDL2-2.0.so.0)
                                             #5  0x00007f720318781f n/a (libSDL2-2.0.so.0)
                                             #6  0x00007f720320738a n/a (libSDL2-2.0.so.0)
                                             #7  0x00007f72028180bc start_thread (libpthread.so.0)
                                             #8  0x00007f720171f2ff __clone (libc.so.6)

                                             Stack trace of thread 6443:
                                             #0  0x00007f720281e07c pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                             #1  0x0000563080ed0d5c n/a (anbox)
                                             #2  0x00007f7201cb3b9f execute_native_thread_routine (libstdc++.so.6)
                                             #3  0x00007f72028180bc start_thread (libpthread.so.0)
                                             #4  0x00007f720171f2ff __clone (libc.so.6)

                                             Stack trace of thread 6437:
                                             #0  0x00007f720281e07c pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                             #1  0x0000563080ed0d5c n/a (anbox)
                                             #2  0x00007f7201cb3b9f execute_native_thread_routine (libstdc++.so.6)
                                             #3  0x00007f72028180bc start_thread (libpthread.so.0)
                                             #4  0x00007f720171f2ff __clone (libc.so.6)

                                             Stack trace of thread 6440:
                                             #0  0x00007f720281e07c pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                             #1  0x0000563080ed0d5c n/a (anbox)
                                             #2  0x00007f7201cb3b9f execute_native_thread_routine (libstdc++.so.6)
                                             #3  0x00007f72028180bc start_thread (libpthread.so.0)
                                             #4  0x00007f720171f2ff __clone (libc.so.6)

                                             Stack trace of thread 6441:
                                             #0  0x00007f720281e07c pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                             #1  0x0000563080ed0d5c n/a (anbox)
                                             #2  0x00007f7201cb3b9f execute_native_thread_routine (libstdc++.so.6)
                                             #3  0x00007f72028180bc start_thread (libpthread.so.0)
                                             #4  0x00007f720171f2ff __clone (libc.so.6)

lines 62-96/96 (END)

mcku commented on 2018-04-28 18:48 (UTC)

Hi @Saren, after the patch, i still get the error reported by @JuniorJPDJ

Saren commented on 2018-04-28 16:42 (UTC) (edited on 2018-04-28 16:42 (UTC) by Saren)

If you are eager to apply the patch,

  1. $ git clone <https://aur.archlinux.org/anbox-git.git> && cd anbox-git

  2. Go to https://gist.github.com/Saren-Arterius/b6e63b749a6befa705b98ab6f018506c, download the patch and replace the PKGBUILD with the one above

  3. $ makepkg -si

bradpitcher commented on 2018-04-26 17:58 (UTC)

I think it needs this patch https://github.com/anbox/anbox/issues/669#issuecomment-382745981

butfly commented on 2018-04-23 06:00 (UTC) (edited on 2018-04-23 06:02 (UTC) by butfly)

@yochananmarqos sounds installing anbox-image before anbox-git resolve the resolving error. refer(chinese): https://www.lainme.com/doku.php/blog/2017/04/%E5%9C%A8archlinux%E4%B8%8A%E5%AE%89%E8%A3%85anbox

yaourt -S linux-headers dkms anbox-image
yaourt -S anbox-modules-dkms-git anbox-git
sudo modprobe binder_linux
sudo modprobe ashmem_linux
sudo systemctl start anbox-container-manager.service
systemctl --user start anbox-session-manager.service

I'm building packages now. So the processing will be confirm some minutes later. :)

Reagcz commented on 2018-04-22 09:43 (UTC) (edited on 2018-04-22 09:43 (UTC) by Reagcz)

@JuniorJPDJ I have exactly the same issue, no idea how to fix it yet

yochananmarqos commented on 2018-04-18 16:39 (UTC)

Any idea why I get this error?

Resolving dependencies...
Warning: cannot resolve "anbox-image", a dependency of "anbox-git"

Failed to prepare transaction:
could not satisfy dependencies:
unable to satisfy dependency 'anbox-image' required by anbox-git

JuniorJPDJ commented on 2018-04-12 19:44 (UTC) (edited on 2018-04-12 19:46 (UTC) by JuniorJPDJ)

Can someone help me?


139 juniorjpdj@Junior-x220T ~ % systemctl status anbox-container-manager.service                                                                                                                                                                                            :(
● anbox-container-manager.service - Anbox Container Manager
   Loaded: loaded (/usr/lib/systemd/system/anbox-container-manager.service; enabled; vendor preset: disabled)
   Active: active (running) since Thu 2018-04-12 21:41:43 CEST; 2min 1s ago
 Main PID: 1072 (anbox)
    Tasks: 9 (limit: 4915)
   Memory: 2.0M
   CGroup: /system.slice/anbox-container-manager.service
           └─1072 /usr/bin/anbox container-manager --daemon --privileged --data-path=/var/lib/anbox

Apr 12 21:41:43 Junior-x220T systemd[1]: Started Anbox Container Manager.
juniorjpdj@Junior-x220T ~ % anbox session-manager                           
[ 2018-04-12 19:43:47] [client.cpp:49@start] Failed to start container: Failed to start container: Failed to configure LXC container
[ 2018-04-12 19:43:47] [session_manager.cpp:162@operator()] Lost connection to container manager, terminating.
[ 2018-04-12 19:43:48] [daemon.cpp:58@Run] Container is not running
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::log::v2_mt_posix::system_error> >'
  what():  Failed to set TLS value: Invalid argument
[1]    1301 abort (core dumped)  anbox session-manager
</boost::exception_detail::error_info_injector<boost::log::v2_mt_posix::system_error>

tmn505 commented on 2018-04-06 11:59 (UTC)

Please add python2 to makedepends, it's not in base or base-devel group any more.

postadelmaga commented on 2018-03-15 08:56 (UTC) (edited on 2018-03-15 08:59 (UTC) by postadelmaga)

A workaround for the compilation error:

Edit file /usr/include/core/dbus/asio/executor.h and add '//' this before

// 'class io_service;' => "//class io_service;

Source: https://github.com/anbox/anbox/issues/637

CaptainJellyfish commented on 2018-03-07 17:54 (UTC)

Any chance to just install it with pacman without further hassles, other github repos or anything? Still it can't be compiled correctly but stops at 95%... :(

mcku commented on 2018-03-05 18:20 (UTC) (edited on 2018-03-05 18:20 (UTC) by mcku)

If anyone is still having issue compiling w/boost 1.66, remember to patch dbus-cpp: [code] --- src/include/core/dbus/asio/executor.h.orig 2018-03-05 20:58:01.985697687 +0300 +++ src/include/core/dbus/asio/executor.h 2018-03-05 21:05:58.537930745 +0300 @@ -21,14 +21,15 @@ #include <core bus.h="" dbus=""> #include <core dbus="" executor.h=""> #include <core dbus="" visibility.h=""> +#include <boost asio="" io_service.hpp=""></boost></core></core></core>

-namespace boost -{ -namespace asio -{ -class io_service; -} -}

[/code]

mcku commented on 2018-02-24 15:09 (UTC)

@HiJack88 Some of the errors are present in my system, too. But the app manager window opens, and applications open as well. You mentioned about the boost-compat package, are you using it? I don't think it would be necessary for compiling anbox..

I do have an issue issue with app content. Window contents don't get updated unless the window is moved or resized. Initial rendering is ok. Probably an issue with upstream. Do you also have this issue?

HiJack88 commented on 2018-02-18 18:38 (UTC)

That' the relevant excerpt from dmesg's output:

[45974.124275] init: write_file: Unable to open '/proc/sys/vm/extra_free_kbytes': No such file or directory [45990.396165] binder_linux: undelivered transaction 28141 [45990.396208] binder_linux: undelivered transaction 27484 [46015.177011] binder_linux: undelivered transaction 31597 [46015.177053] binder_linux: undelivered transaction 31258 [46015.177054] binder_linux: undelivered transaction 31588 [46015.386347] anbox[17526]: segfault at 8 ip 00007fd17477632f sp 00007fd15e099958 error 4 in libX11.so.6.3.0[7fd174727000+139000] [46020.714585] init: 139 output lines suppressed due to ratelimiting [46020.728734] binder_linux: 17582:17582 ioctl c0306201 ffa4aed8 returned -14 [46020.746406] binder_linux: release 17577:17752 transaction 31657 in, still active [46020.746411] binder_linux: send failed reply for transaction 31657 to 17681:17702

HiJack88 commented on 2018-02-18 17:04 (UTC)

additional error message given by command: $ anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity

[ 2018-02-18 16:59:32] [launch.cpp:63@try_launch_activity] Failed to launch activity: org.anbox.Error.Failed: RPC call timed out dbus[16415]: Attempted to unregister path (path[0] = null path[1] = null) which isn't registered

Application window attempts to appear on the screen but remains blank. Anbox startup fails shortly after.

HiJack88 commented on 2018-02-17 18:49 (UTC)

@CPanda: running "anbox session-manager" and "anbox system-info" end up in error [error accessing memory (memory dump written)].

Any idea?

mcku commented on 2018-02-17 09:37 (UTC)

install process-cpp and dbus-cpp. then anbox will build fine.

mcku commented on 2018-02-17 08:34 (UTC)

BTW, asio/io_service.hpp is a file that changes the definition of io_service in v1.66. Therefore references to it need to be updated.

mcku commented on 2018-02-17 08:31 (UTC)

@daurnimator The content of /usr/include/core/dbus/asio/executor.h and /usr/include/boost/asio/io_service.hpp are not compatible. The prior has a class, the latter has a typedef-name for io_service. I could not find which package provides the executor.h. Do you have an idea which one that could be?

CPanda commented on 2018-02-14 22:02 (UTC) (edited on 2018-02-14 22:03 (UTC) by CPanda)

@Hijack88, did you run the command "anbox session-manager" before trying to run anbox launch?

I can run session manager and try to get it to launch, there's no error output and nothing happens. ADB also shows no devices.

In gnome I can use the shortcut and the start screen just hangs there before eventually disappearing about 15 minutes later. (The shortcut is supposed to automatically launch session-manager and launch something, I believe.)

HiJack88 commented on 2018-02-12 20:42 (UTC)

I was able to build the packages and kernel modules thanks to mcku's and CPanda's hints. Thank you for your advise!

Starting anbox, however, ends up in an error message like below.

[user@computer]$ anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity [ 2018-02-11 19:48:43] [launch.cpp:134@operator()] Anbox session manager service isn't running, trying to start it. dbus[24203]: Attempted to unregister path (path[0] = null path[1] = null) which isn't registered

Both kernel modules are loaded and systemd service running (start anbox-container-manager.service).

Maybe a problem of a too new dbus version here under Arch?

parkerlreed commented on 2018-02-12 18:06 (UTC)

@dgy18787 There seems to be an open pull request to fix that https://github.com/anbox/anbox/pull/605

mcku commented on 2018-02-11 06:52 (UTC)

@HiJack88 See https://github.com/anbox/anbox/pull/611 for the binder module patch.

dgy18787 commented on 2018-02-11 02:02 (UTC) (edited on 2018-02-11 02:04 (UTC) by dgy18787)

On my laptop, this pkgbuild is stuck at 50% of the process with error 2, seems that this warning is different from the previous:

[ 51%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/utils.cpp.o
[ 51%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/cli.cpp.o
[ 52%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/runtime.cpp.o
/tmp/yaourt-tmp-ud/aur-anbox-git/src/anbox/src/anbox/runtime.cpp: In constructor ‘anbox::Runtime::Runtime(uint32_t)’:
/tmp/yaourt-tmp-ud/aur-anbox-git/src/anbox/src/anbox/runtime.cpp:56:16: error: narrowing conversion of ‘((anbox::Runtime*)this)->anbox::Runtime::pool_size_’ from ‘uint32_t {aka unsigned int}’ to ‘int’ inside { } [-Werror=narrowing]
    service_{pool_size_},
    ^~~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [src/CMakeFiles/anbox-core.dir/build.make:135: src/CMakeFiles/anbox-core.dir/anbox/runtime.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2023: src/CMakeFiles/anbox-core.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

HiJack88 commented on 2018-02-10 15:13 (UTC)

@daurnimator: That's the same issue as reported by 'ibrokemypie' already. Just follow the hints given by 'ilikenwf' and 'CPanda' in order to work around that. However, please have a look on build errors concerning the kernel modules, especially the 'binder' module mentioned below.

daurnimator commented on 2018-02-09 23:03 (UTC) (edited on 2018-02-09 23:03 (UTC) by daurnimator)

After working around the issue hit by @HiJack88 the build hits this issue:

[ 95%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/cmds/session_manager.cpp.o
In file included from /home/james/.cache/aursync/anbox-git/src/anbox/src/anbox/cmds/session_manager.cpp:56:0:
/usr/include/core/dbus/asio/executor.h:29:7: error: using typedef-name ‘boost::asio::io_service’ after ‘class’
 class io_service;
       ^~~~~~~~~~
In file included from /usr/include/boost/asio.hpp:69:0,
                 from /home/james/.cache/aursync/anbox-git/src/anbox/src/anbox/runtime.h:21,
                 from /home/james/.cache/aursync/anbox-git/src/anbox/src/anbox/audio/server.h:21,
                 from /home/james/.cache/aursync/anbox-git/src/anbox/src/anbox/cmds/session_manager.cpp:26:
/usr/include/boost/asio/io_service.hpp:27:20: note: ‘boost::asio::io_service’ has a previous declaration here
 typedef io_context io_service;
                    ^~~~~~~~~~
make[2]: *** [src/CMakeFiles/anbox-core.dir/build.make:2463: src/CMakeFiles/anbox-core.dir/anbox/cmds/session_manager.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2023: src/CMakeFiles/anbox-core.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

HiJack88 commented on 2018-02-07 21:36 (UTC)

@CPanda: Thx for your hint. I was able to build this either using a modified patch.

The following section needs to be removed as it is already changed in the current sources.

diff --git a/src/anbox/network/base_socket_messenger.cpp b/src/anbox/network/base_socket_messenger.cpp index fb093f3..23efc78 100644 --- a/src/anbox/network/base_socket_messenger.cpp +++ b/src/anbox/network/base_socket_messenger.cpp @@ -138,7 +138,7 @@ unsigned short BaseSocketMessenger<stream_protocol>::local_port() const {</stream_protocol>

template <typename stream_protocol=""> void BaseSocketMessenger<stream_protocol>::set_no_delay() { - const auto fd = socket->native(); + const auto fd = socket->native_handle(); int flag = 1; const auto ret = ::setsockopt(fd, IPPROTO_TCP, TCP_NODELAY,</stream_protocol></typename>

But kernel module build keeps failing with the error messages given below. Any advice?

Cheers.

(1/3) Install DKMS modules ==> dkms install anbox-modules-binder/r722.0fef261 -k 4.15.1-2-ARCH Error! Bad return status for module build on kernel: 4.15.1-2-ARCH (x86_64) Consult /var/lib/dkms/anbox-modules-binder/r722.0fef261/build/make.log for more information.

DKMS make.log for anbox-modules-binder-r722.0fef261 for kernel 4.15.1-2-ARCH (x86_64) Mi 7. Feb 20:21:43 CET 2018 make -C /lib/modules/4.15.1-2-ARCH/build V=0 M=$PWD make[1]: entering directory „/usr/lib/modules/4.15.1-2-ARCH/build“ CC [M] /var/lib/dkms/anbox-modules-binder/r722.0fef261/build/deps.o CC [M] /var/lib/dkms/anbox-modules-binder/r722.0fef261/build/binder.o In file included from ./include/linux/module.h:18:0, from /var/lib/dkms/anbox-modules-binder/r722.0fef261/build/binder.c:29: /var/lib/dkms/anbox-modules-binder/r722.0fef261/build/binder.c:149:39: Error: Initialization of inkompatible pointer type [-Werror=incompatible-pointer-types] module_param_call(stop_on_user_error, binder_set_stop_on_user_error, ^ ./include/linux/moduleparam.h:233:24: Annotation: in definition of macro »module_param_call« { .flags = 0, .set = set, .get = _get }; \ ^~~~ /var/lib/dkms/anbox-modules-binder/r722.0fef261/build/binder.c:149:39: Annotation: (near initialization for »__param_ops_stop_on_user_error.set«) module_param_call(stop_on_user_error, binder_set_stop_on_user_error, ^ ./include/linux/moduleparam.h:233:24: Annotation: in definition of macro »module_param_call« { .flags = 0, .set = _set, .get = _get }; \ ^~~~ cc1: treating some warnings as errors make[2]: [scripts/Makefile.build:316: /var/lib/dkms/anbox-modules-binder/r722.0fef261/build/binder.o] Error 1 make[1]: [Makefile:1508: _module/var/lib/dkms/anbox-modules-binder/r722.0fef261/build] Error 2 make[1]: leaving directory „/usr/lib/modules/4.15.1-2-ARCH/build“ make: *** [Makefile:8: all] Error 2

CPanda commented on 2018-02-02 21:57 (UTC) (edited on 2018-02-02 22:12 (UTC) by CPanda)

@HiJack88 I had to re-build dbus-cpp with the boost-65-compat package installed and then I was able to build this. (using ilikenwf's PKGBUILD )

anbox still won't start for me, I don't know what the issue is even after trying to debug it a bit. It shows the splash screen but then just hangs there. I made sure the container service was running.

HiJack88 commented on 2018-02-01 19:49 (UTC)

Hi all, i still keep running into build errors es explained by 'ibrokemypie' on 2018-01-24 10:22.

boost and boost-libs v1.66.0.1 is installed on system as it's needed by some GNOME apps.

I've found the package 'boost-65-compat' an AUR which seems to be a viable option for AnBox.

Is there a way to build AnBox against this boost-package from AUR?

Cheers

ilikenwf commented on 2018-01-29 15:20 (UTC)

I didn't run into that, I just started up the service after building and loading the modules and all worked fine.

I actually removed anbox, though, as I was going to use it for a comic and ebook reader, but found that calibre and the gtk3 version of mcomix work perfectly.

ibrokemypie commented on 2018-01-29 10:32 (UTC)

The new pkgbuild and patch do build however now have this issue: https://github.com/anbox/anbox/issues/437

ilikenwf commented on 2018-01-28 10:10 (UTC)

Here's a fixed up build. I've combined everything here along with a couple of really hacky changes I had to make (namely copying a boost header and editing it, and including that edited copy instead).

I realize that Ubuntu/Debian are stable, but it's at a point with boost right now that they're using very diverged versions.

https://gist.github.com/ilikenwf/77cb7aedb8ab02c6fcd8b3fb3679f6c7

hacker1024 commented on 2018-01-25 03:13 (UTC) (edited on 2018-01-25 03:23 (UTC) by hacker1024)

For those getting narrowing errors, add this line in prepare() in the PKGBUILD

sed -i 's/set(C_AND_CXX_WARNINGS "-pedantic -Wall -Wextra")/set(C_AND_CXX_WARNINGS "-pedantic -Wall -Wextra -Wno-narrowing") /' CMakeLists.txt

EDIT: merge this patch instead: https://www.pastiebin.com/5a53da14bfeaa/rev/56115

ibrokemypie commented on 2018-01-24 10:22 (UTC)

Even after applying the patch from misc, build fails with

[ 57%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/cmds/session_manager.cpp.o
In file included from /tmp/makepkg/anbox-git/src/anbox/src/anbox/cmds/session_manager.cpp:56:
/usr/include/core/dbus/asio/executor.h:29:7: error: definition of type 'io_service' conflicts with typedef of the same name
class io_service;
      ^
/usr/include/boost/asio/io_service.hpp:27:20: note: 'io_service' declared here
typedef io_context io_service;
                   ^
1 error generated.
make[2]: *** [src/CMakeFiles/anbox-core.dir/build.make:2463: src/CMakeFiles/anbox-core.dir/anbox/cmds/session_manager.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2023: src/CMakeFiles/anbox-core.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

After manually removing the defenition i get a different build error

[ 57%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/cmds/session_manager.cpp.o
In file included from /tmp/makepkg/anbox-git/src/anbox/src/anbox/cmds/session_manager.cpp:56:
/usr/include/core/dbus/asio/executor.h:28:1: error: expected '{'
}
^
/usr/include/core/dbus/asio/executor.h:37:89: error: no type named 'asio' in namespace 'boost'
ORG_FREEDESKTOP_DBUS_DLL_PUBLIC Executor::Ptr make_executor(const Bus::Ptr& bus, boost::asio& io);
                                                                                 ~~~~~~~^
/tmp/makepkg/anbox-git/src/anbox/src/anbox/cmds/session_manager.cpp:271:64: error: too many arguments to function call, expected single argument 'bus', have 2 arguments
    bus->install_executor(core::dbus::asio::make_executor(bus, rt->service()));
                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~      ^~~~~~~~~~~~~
/usr/include/core/dbus/asio/executor.h:36:1: note: 'make_executor' declared here
ORG_FREEDESKTOP_DBUS_DLL_PUBLIC Executor::Ptr make_executor(const Bus::Ptr& bus);
^
/usr/include/core/dbus/visibility.h:23:41: note: expanded from macro 'ORG_FREEDESKTOP_DBUS_DLL_PUBLIC'
#define ORG_FREEDESKTOP_DBUS_DLL_PUBLIC __attribute__ ((visibility ("default")))
                                        ^
3 errors generated.
make[2]: *** [src/CMakeFiles/anbox-core.dir/build.make:2463: src/CMakeFiles/anbox-core.dir/anbox/cmds/session_manager.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2023: src/CMakeFiles/anbox-core.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

rains commented on 2018-01-23 06:44 (UTC)

[1] 27882 segmentation fault (core dumped) anbox session-manager :(

hacker1024 commented on 2018-01-21 03:53 (UTC) (edited on 2018-01-21 03:53 (UTC) by hacker1024)

@symen

Thanks for the patch / advice, it now build fine for me. Note that I had to delete the declaration of io_service from /usr/include/core/dbus/asio/executor.h. Also, the kernel modules built correctly on 4.14.12-1-ARCH, but the ashmem module fails to load with the following error: Unknown symbol __vfs_read (err 0)

You need to merge this pull request in the ashmem module source before compiling. https://github.com/anbox/anbox/pull/504/commits/f633d641c21f45e46aa9585fc38389da033c0212

Here is a patch file: https://github.com/anbox/anbox/commit/f633d641c21f45e46aa9585fc38389da033c0212.patch

irtimmer commented on 2018-01-19 10:35 (UTC) (edited on 2019-05-24 21:14 (UTC) by irtimmer)

WARNING: Before you go ahead and install Anbox on your system, please keep in mind that Anbox is not yet stable. Not every feature is working well yet. You will find bugs, see crashes and unexpected problems. As this is a Git package, patches should go upstream as they will not be bundled with the package.

sergey.orloff commented on 2018-01-19 05:59 (UTC)

DELETE THIS PACKAGE! DO NOT LOAD THE SPAM! HE STILL NEVER WORKED FOR ALL THE TIME OF EXISTENCE!

locirga commented on 2018-01-15 18:49 (UTC)

The build failed at the same point for me.

flappy commented on 2018-01-11 10:42 (UTC)

Installation failed.

[ 51%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/cli.cpp.o
[ 52%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/runtime.cpp.o
/tmp/yaourt-tmp-flappy/aur-anbox-git/src/anbox/src/anbox/runtime.cpp: В конструкторе «anbox::Runtime::Runtime(uint32_t)»:
/tmp/yaourt-tmp-flappy/aur-anbox-git/src/anbox/src/anbox/runtime.cpp:56:16: ошибка: сужающее преобразование «((anbox::Runtime*)this)->anbox::Runtime::pool_size_» из «uint32_t {aka unsigned int}» в «int» внутри { } [-Werror=narrowing]
       service_{pool_size_},
                ^~~~~~~~~~
cc1plus: все предупреждения считаются ошибками
make[2]: *** [src/CMakeFiles/anbox-core.dir/build.make:135: src/CMakeFiles/anbox-core.dir/anbox/runtime.cpp.o] Ошибка 1
make[1]: *** [CMakeFiles/Makefile2:2023: src/CMakeFiles/anbox-core.dir/all] Ошибка 2
make: *** [Makefile:141: all] Ошибка 2
==> ОШИБКА: Произошел сбой в build().
    Прерывание...
==> ОШИБКА: Makepkg не смог собрать .
==> Перезапустить сборку anbox-git ? да/Нет [y/N]

pokemontotalwar commented on 2018-01-10 05:11 (UTC)

Clearly I have a lot to learn, how are you guys patching these files? I'm searching through code and I don't know where to implement these patches. Thanks!

Aventura5 commented on 2018-01-09 22:49 (UTC) (edited on 2018-01-09 22:50 (UTC) by Aventura5)

The build fails for me with

Scanning dependencies of target xdg_test
[ 45%] Building CXX object external/xdg/CMakeFiles/xdg_test.dir/xdg_test.cpp.o
[ 46%] Linking CXX executable xdg_test
[ 46%] Built target xdg_test
[ 46%] Running C++ protocol buffer compiler on anbox/protobuf/anbox_container.proto
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: anbox_container.proto. Please use 'syntax = "proto2";' or
'syntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[ 46%] Running C++ protocol buffer compiler on anbox/protobuf/anbox_bridge.proto
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: anbox_bridge.proto. Please use 'syntax = "proto2";' or 's$
ntax = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
[ 47%] Running C++ protocol buffer compiler on anbox/protobuf/anbox_rpc.proto
[libprotobuf WARNING google/protobuf/compiler/parser.cc:546] No syntax specified for the proto file: anbox_rpc.proto. Please use 'syntax = "proto2";' or 'synt$
x = "proto3";' to specify a syntax version. (Defaulted to proto2 syntax.)
Scanning dependencies of target anbox-protobuf
[ 48%] Building CXX object src/CMakeFiles/anbox-protobuf.dir/anbox_bridge.pb.cc.o
[ 48%] Building CXX object src/CMakeFiles/anbox-protobuf.dir/anbox_rpc.pb.cc.o
[ 48%] Building CXX object src/CMakeFiles/anbox-protobuf.dir/anbox_container.pb.cc.o
[ 50%] Building CXX object src/CMakeFiles/anbox-protobuf.dir/anbox/protobuf/google_protobuf_guard.cpp.o
[ 50%] Linking CXX static library libanbox-protobuf.a
[ 50%] Built target anbox-protobuf
Scanning dependencies of target anbox-core
[ 50%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/logger.cpp.o
[ 51%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/utils.cpp.o
[ 51%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/cli.cpp.o
[ 52%] Building CXX object src/CMakeFiles/anbox-core.dir/anbox/runtime.cpp.o
/tmp/trizen-david/anbox-git/src/anbox/src/anbox/runtime.cpp: In constructor ‘anbox::Runtime::Runtime(uint32_t)’:
/tmp/trizen-david/anbox-git/src/anbox/src/anbox/runtime.cpp:56:16: error: narrowing conversion of ‘((anbox::Runtime*)this)->anbox::Runtime::pool_size_’ from ‘$
int32_t {aka unsigned int}’ to ‘int’ inside { } [-Werror=narrowing]
       service_{pool_size_},
                ^~~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [src/CMakeFiles/anbox-core.dir/build.make:135: src/CMakeFiles/anbox-core.dir/anbox/runtime.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2023: src/CMakeFiles/anbox-core.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
:: Unable to build anbox-git - makepkg exited with code: 2

symen commented on 2018-01-09 09:40 (UTC) (edited on 2018-01-09 09:41 (UTC) by symen)

@misc

Thanks for the patch / advice, it now build fine for me. Note that I had to delete the declaration of io_service from /usr/include/core/dbus/asio/executor.h.

Also, the kernel modules built correctly on 4.14.12-1-ARCH, but the ashmem module fails to load with the following error: Unknown symbol __vfs_read (err 0)

misc commented on 2018-01-08 20:56 (UTC) (edited on 2018-01-08 20:56 (UTC) by misc)

Patch for boost 1.66: https://www.pastiebin.com/5a53da14bfeaa

Notes:

  1. the forward declaration of io_service in /usr/include/core/dbus/executor.h also needs to be deleted without substitution

  2. anbox's dkms fails with 4.15

thebombzen commented on 2018-01-07 14:57 (UTC)

It no longer builds with boost 1.66. Boost 1.65 works.

Thaodan commented on 2018-01-06 04:09 (UTC)

One suggestion: anbox.conf should got to /usr/lib not /etc. see man modules-load.d

Preisschild commented on 2018-01-02 19:44 (UTC) (edited on 2018-01-02 19:55 (UTC) by Preisschild)

@guzzard when i use this it gives me an gpg signing error

and when i use pacaur it gives me CMake Error: The source directory "/usr/src/gmock" does not appear to contain CMakeLists.txt.

watchdog commented on 2018-01-02 14:27 (UTC)

Please update one line in the file according to this edit: https://github.com/anbox/anbox/pull/504/files Because of this, people see an error

timofonic commented on 2017-12-23 23:31 (UTC)

Please update properly, modules don't build automatically and ashmen gives the following error in dmesg

[12962.343414] ashmem_linux: Unknown symbol __vfs_read (err 0)

guzzard commented on 2017-12-23 11:02 (UTC)

PKGBUILD with ashmem fix: https://hastebin.com/acaveraned.bash

These lines added:

# Cherry-pick ashmem fix
git remote add other https://github.com/sarangnemo/anbox/
git fetch other
git cherry-pick f633d641c21f45e46aa9585fc38389da033c0212

eizanprime commented on 2017-12-10 23:57 (UTC)

Does anyone have an easy way to to install the package with the patch for ashmem ? This pkgbuild doesn't work when I makepkg it on its own.

zertyz commented on 2017-12-10 02:28 (UTC)

Regarding the window update issue, I confirm that using archlinux with kernel 4.9 resolves the problem (windows are updated normally) and that using it with kernel 4.14 shows up the issue (windows are only updated on resizes, moves, etc.)

benfa commented on 2017-12-08 16:39 (UTC)

@irtimmer Could you add this patch: https://github.com/sarangnemo/anbox/commit/f633d641c21f45e46aa9585fc38389da033c0212.patch

until it would be merged upstream?

tdis8629 commented on 2017-12-05 17:23 (UTC) (edited on 2017-12-05 17:24 (UTC) by tdis8629)

@horosgrisa

In ashmem.c, replace __vfs_read with kernel_read (line 316), then make/install

https://github.com/anbox/anbox/pull/504

erenoglu commented on 2017-12-05 12:44 (UTC)

For the graphics update issue, if you use linux-lts kernel, it works. But I have another issue, the network does not work as the default gateway etc are not set. connecting with adb shell, I can't launch root shell (su), operation is not permitted. Not sure if we need to edit some files on the Arch side to let anbox obtain root rights inside its container.

horosgrisa commented on 2017-12-05 11:06 (UTC)

I have a bug with kernel module ashmem_linux

$ sudo modprobe ashmem_linux
modprobe: ERROR: could not insert 'ashmem_linux': Unknown symbol in module, or unknown parameter (see dmesg)
$ dmesg
[ 7790.977393] ashmem_linux: Unknown symbol __vfs_read (err 0)

Mornielome commented on 2017-11-15 12:38 (UTC)

Downgrading to an old mesa version causes a bunch of other issues on my system. The very first (and most annoying) being, that SDDM won't start. So this is not an option. Any other ideas? Might we get a package update soon, that fixes this?

Vynce commented on 2017-11-15 07:51 (UTC)

Install the old mesa also works for me.

mlody_salceson commented on 2017-11-13 17:54 (UTC) (edited on 2017-11-13 17:54 (UTC) by mlody_salceson)

I have installed a few older mesa packages, and it looks like the last working is version 17.0.5. Since 17.1.0 there are a few important changes: https://www.mesa3d.org/relnotes/17.1.0.html Simplest way to install the old mesa is: sudo pacman -U https://archive.archlinux.org/packages/m/mesa/mesa-17.0.5-1-x86_64.pkg.tar.xz Of course I can't recommend doing it.

Vynce commented on 2017-11-09 15:42 (UTC)

@martisa same problem here too. Is there a way to make it work with Arch ?

ZeroBit commented on 2017-11-03 11:01 (UTC)

I have the same problem. Intel integrated $ anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity [ 2017-11-03 10:59:28] [launch.cpp:134@operator()] Anbox session manager service isn't running, trying to start it. [ 2017-11-03 10:59:33] [launch.cpp:134@operator()] Anbox session manager service isn't running, trying to start it. [ 2017-11-03 10:59:38] [launch.cpp:134@operator()] Anbox session manager service isn't running, trying to start it. [ 2017-11-03 10:59:43] [launch.cpp:206@operator()] Couldn't get a connection with the session manager How to solve it?

martisa commented on 2017-11-03 09:49 (UTC) (edited on 2017-11-03 10:07 (UTC) by martisa)

Hi. I have the same 'frozen' windows issue described here: https://github.com/anbox/anbox/issues/437 (see morphis' last comment) It seems to affect only Arch. If Anbox is installed via snap, there's no issue because it includes a working Mesa version. But we can't install via snap because it requires a 'classic' installation which Arch's implementation of snap doesn't allow. I have a integrated Intel GPU. It works on my Ubuntu install.

kod-kristoff commented on 2017-10-24 08:08 (UTC)

@4m1rk: 'base-devel' is almost always needed to build from AUR and is assumed to be installed, see https://wiki.archlinux.org/index.php/Arch_User_Repository#Prerequisites

4m1rk commented on 2017-10-23 10:40 (UTC)

Needs `base-devel` before being able to install this package.

morphis commented on 2017-10-20 15:25 (UTC) (edited on 2017-10-20 15:25 (UTC) by morphis)

@czapnaper: Yeah I am sorry, I accidentally pushed some old not working code. Fine to get rid of that. What is currently coming in through git+https://github.com/anbox/anbox.git gives you all what you need and should build fine as long as all dependencies are in place.

czapnaper commented on 2017-10-20 12:44 (UTC)

Now builds properly, yesterday when I was building was another version on git with "honeymoon" but today there is no. Yesterday CMakeLists.txt and READMI https://www.dropbox.com/sh/m21egai08gpk31z/AAAOZjD82nzvL2Kf2-JOforYa?dl=0

sergey.orloff commented on 2017-10-20 07:08 (UTC)

Hello! Why create a product that does not work at all? Still never managed to launch Anbox during its existence! Somebody can figure it out. All the same fixated error: $ sudo modprobe binder_linux $ sudo modprobe ashmem_linux $ sudo systemctl start anbox-container-manager.service $ anbox session-manager --gles-driver=host & [1] 1970 $ anbox: error while loading shared libraries: libboost_filesystem.so.1.64.0: cannot open shared object file: No such file or directory

morphis commented on 2017-10-20 05:38 (UTC)

@czapnaper: Can you throw away your current build and give it another try and give me the exact build steps you're performing?

czapnaper commented on 2017-10-19 20:22 (UTC) (edited on 2017-10-19 20:23 (UTC) by czapnaper)

Dont building "Treat warnings as errors -- Boost version: 1.65.1 -- Found the following Boost libraries: -- filesystem -- log -- serialization -- system -- thread -- program_options -- date_time -- log_setup -- regex -- chrono -- atomic -- Building with SDL2 support -- Building with kms/drm support -- Checking for module 'libinput' -- Found libinput, version 1.8.3 -- Checking for module 'libudev' -- Found libudev, version 235 -- Building with honeymoon support -- Checking for module 'wds' -- No package 'wds' found CMake Error at /usr/share/cmake-3.9/Modules/FindPkgConfig.cmake:412 (message): A required package was not found Call Stack (most recent call first): /usr/share/cmake-3.9/Modules/FindPkgConfig.cmake:588 (_pkg_check_modules_internal) CMakeLists.txt:113 (pkg_check_modules) "

daxid commented on 2017-10-15 21:12 (UTC)

I run into this issue : https://github.com/anbox/anbox/issues/437

petelewis commented on 2017-10-15 08:43 (UTC)

Needs python2 as well.

levinit commented on 2017-10-07 16:10 (UTC)

need linux-headers

Dj_Krip commented on 2017-10-07 11:15 (UTC)

binary package avalible here https://github.com/archlinuxcn/repo

Shadowsith commented on 2017-10-03 09:43 (UTC)

Not recommended for Manjaro-Linux. Has broken my system (couldn't read ext4 anymore...) If you want it: test it in a virtual machine if it works.

sergey.orloff commented on 2017-09-28 17:43 (UTC) (edited on 2017-09-28 18:14 (UTC) by sergey.orloff)

Hello! Tell me what to do? Is it possible to update the dependencies ??? [sergey@p43es3g ~]$ anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity anbox: error while loading shared libraries: libboost_filesystem.so.1.64.0: cannot open shared object file: No such file or directory This is required: libboost_filesystem.so.1.64.0 $ pkgfile libboost_filesystem.so extra/boost-libs And the system already has a version $ yaourt -Ss boost-libs extra/boost-libs 1.65.1-1 [installed] AND THIS??? :) :) :) [sergey@p43es3g Загрузки]$ sudo pacman -U *.* загрузка пакетов... предупреждение: откат версии пакета boost (1.65.1-1 => 1.64.0-4) предупреждение: откат версии пакета boost-libs (1.65.1-1 => 1.64.0-4) разрешение зависимостей... проверка конфликтов... Пакеты (2) boost-1.64.0-4 boost-libs-1.64.0-4 Будет установлено: 160,90 MiB Изменение размера: 1,58 MiB :: Приступить к установке? [Y/n] y :: Обработка изменений пакета... :: Работа послеоперационных перехватов... (1/1) Arming ConditionNeedsUpdate... [sergey@p43es3g Загрузки]$ anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity anbox: error while loading shared libraries: libboost_log.so.1.65.1: cannot open shared object file: No such file or directory [sergey@p43es3g Загрузки]$ anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity anbox: error while loading shared libraries: libboost_log.so.1.65.1: cannot open shared object file: No such file or directory [sergey@p43es3g Загрузки]$ sudo pacman -U *.* загрузка пакетов... разрешение зависимостей... проверка конфликтов... Пакеты (2) boost-1.65.1-1 boost-libs-1.65.1-1 Будет установлено: 159,33 MiB Изменение размера: -1,58 MiB :: Приступить к установке? [Y/n] y :: Обработка изменений пакета... :: Работа послеоперационных перехватов... (1/1) Arming ConditionNeedsUpdate... [sergey@p43es3g Загрузки]$ anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity anbox: error while loading shared libraries: libboost_filesystem.so.1.64.0: cannot open shared object file: No such file or directory

viktorchemko commented on 2017-09-26 19:26 (UTC)

$ anbox session-manager [ 2017-09-26 19:26:37] [Renderer.cpp:104@initialize] Failed to initialize EGL Ошибка сегментирования (стек памяти сброшен на диск)

Shatur commented on 2017-09-25 17:47 (UTC) (edited on 2017-09-25 17:49 (UTC) by Shatur)

I suggest adding the linux-headers package as a dependency, otherwise the modules will not work.

heavysink commented on 2017-09-24 02:16 (UTC)

anbox-git is now in archlinuxcn repository and will be automatically updated by a watcher bot following the Github updates. [archlinuxcn] Server = http://repo.archlinuxcn.org/$arch ## or use a CDN (beta) #Server = https://cdn.repo.archlinuxcn.org/$arch ## or install archlinuxcn-mirrorlist-git and use the mirrorlist #Include = /etc/pacman.d/archlinuxcn-mirrorlist Once the repo is added, archlinuxcn-keyring package must be installed before it.

HotblackDesiato commented on 2017-09-16 12:01 (UTC)

I tried to start anbox again today. It seems that the session manager can be started (I don't know why it didn't work yesterday). But now I get another error: "Android hasn't fully booted yet. Waiting a bit ..". Any advice ? ------------------------- $ systemctl --user start anbox-session-manager.service $ systemctl --user status anbox-session-manager.service anbox-session-manager.service - Anbox Session Manager Loaded: loaded (/usr/lib/systemd/user/anbox-session-manager.service; disabled; vendor preset: enabled) Active: active (running) since Sat 2017-09-16 19:53:17 +08; 13s ago Main PID: 2015 (anbox) CGroup: /user.slice/user-1000.slice/user@1000.service/anbox-session-manager.service └─2015 /usr/bin/anbox session-manager Sep 16 19:53:17 stefan systemd[897]: Started Anbox Session Manager. $ ANBOX_LOG_LEVEL=debug anbox launch --package=org.abox.appmgr --component=org.anbox.appmgr.AppViewActivity --gles-driver=host [ 2017-09-16 11:56:01] [launch.cpp:220@operator()] Android hasn't fully booted yet. Waiting a bit .. [ 2017-09-16 12:00:01] [launch.cpp:234@operator()] Stopped waiting as we've already waited for too long. Something [ 2017-09-16 12:00:01] [launch.cpp:235@operator()] is wrong with your setup or the container has failed to boot. [ 2017-09-16 12:00:01] [launch.cpp:236@operator()] If you think you found a bug please don't hesitate to file on [ 2017-09-16 12:00:01] [launch.cpp:237@operator()] at https://github.com/anbox/anbox/issues/new Attempted to unregister path (path[0] = null path[1] = null) which isn't registered

HotblackDesiato commented on 2017-09-15 11:55 (UTC) (edited on 2017-09-15 11:57 (UTC) by HotblackDesiato)

Remark for those of us who use custom kernels: make sure that you include squashfs support in your kernel. Otherwise you would get the following error (systemctl says "OK" during boot, but it isn't): ----------------- # systemctl status anbox-container-manager.service anbox-container-manager.service - Anbox Container Manager Loaded: loaded (/usr/lib/systemd/system/anbox-container-manager.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Fri 2017-09-15 19:17:00 +08; 7min ago Process: 2105 ExecStart=/usr/bin/anbox container-manager --daemon --privileged --data-path=/var/lib/anbox (code=exited, status=1/FAILURE) Main PID: 2105 (code=exited, status=1/FAILURE) Sep 15 19:17:00 stefan systemd[1]: Started Anbox Container Manager. Sep 15 19:17:00 stefan anbox[2105]: Failed to mount Android rootfs Sep 15 19:17:00 stefan systemd[1]: anbox-container-manager.service: Main process exited, code=exited, status=1/FAILURE Sep 15 19:17:00 stefan systemd[1]: anbox-container-manager.service: Unit entered failed state. Sep 15 19:17:00 stefan systemd[1]: anbox-container-manager.service: Failed with result 'exit-code'. -------------------- My container manager is now running, but I get the following error message from the session-manager: ---------------- $ anbox session-manager [ 2017-09-15 11:54:41] [session_manager.cpp:162@operator()] Lost connection to container manager, terminating. [ 2017-09-15 11:54:41] [client.cpp:49@start] Failed to start container: write: Broken pipe [ 2017-09-15 11:54:41] [session_manager.cpp:162@operator()] Lost connection to container manager, terminating. [ 2017-09-15 11:54:41] [daemon.cpp:58@Run] write: Broken pipe ----------------- Any ideas ? 'anbox system-info ' segfaults.

timofonic commented on 2017-09-08 14:22 (UTC)

I can't make it work, it seems because binder doesn't work on my custom kernel (linux-drm-tip-git in AUR that I adopted because it was orphan and needed it) I need because of Intel GPU driver bugs. Issue here: https://github.com/anbox/anbox/issues/453 Relevant part: $ sudo modprobe binder_linux modprobe: ERROR: could not insert 'binder_linux': Unknown symbol in module, or unknown parameter (see dmesg) The other module works, as you can see in the github issue. $ dmesg | grep binder [ 3256.450766] binder_linux: Unknown symbol task_tgid_nr_ns (err 0) [ 3303.761444] binder_linux: Unknown symbol task_tgid_nr_ns (err 0)

twa022 commented on 2017-09-01 02:28 (UTC)

Could you please add: sed -i 's:#!.*python$:&2:' scripts/*py at the end of the prepare function.

ailick commented on 2017-08-20 13:36 (UTC)

Hi,good friend,emmmm...something is so terrible,look that: [ailick@Ailick_Mj ~]$ sudo modprobe binder_linux [ailick@Ailick_Mj ~]$ sudo modprobe ashmem_linux [ailick@Ailick_Mj ~]$ sudo systemctl start anbox-container-manager.service [ailick@Ailick_Mj ~]$ systemctl --user start anbox-session-manager.service [ailick@Ailick_Mj ~]$ ANBOX_LOG_LEVEL=debug anbox session-manager --gles-driver=host [EE 2017-08-20 13:18:21] [Renderer.cpp:104@initialize] Failed to initialize EGL segmentation fault (core dumped) [ailick@Ailick_Mj ~]$ ANBOX_LOG_LEVEL=debug anbox session-manager [EE 2017-08-20 13:18:57] [Renderer.cpp:104@initialize] Failed to initialize EGL segmentation fault (core dumped) [ailick@Ailick_Mj ~]$ anbox system-info[ailick@Ailick_Mj ~]$ ANBOX_LOG_LEVEL=debug anbox system-info segmentation fault (core dumped) I'm useing IntelHD4600 and NvidiaGTX 760M with bumblebee..But look that: [ailick@Ailick_Mj ~]$ ANBOX_LOG_LEVEL=debug primusrun anbox session-manager --gles-driver=host [EE 2017-08-20 13:22:39] [Renderer.cpp:104@initialize] Failed to initialize EGL segmentation fault (core dumped) [ailick@Ailick_Mj ~]$ ANBOX_LOG_LEVEL=debug primusrun anbox system-info segmentation fault (core dumped) So,what shuold I do? Please help me

nobicycle commented on 2017-08-12 04:22 (UTC)

The latest post of sergey.orloff describing how to run anbox worked for me when running video-ati open source drivers but when I switched to video-catalyst I got: $ ANBOX_LOG_LEVEL=debug anbox session-manager --gles-driver=host libEGL warning: DRI2: failed to authenticate [DD 2017-08-12 04:17:16] [Renderer.cpp:165@initialize] Using a surfaceless EGL context [EE 2017-08-12 04:17:16] [Renderer.cpp:190@initialize] Failed: Missing egl_image related extension(s) Segmentation fault (core dumped)

sergey.orloff commented on 2017-08-09 12:11 (UTC) (edited on 2017-08-09 12:13 (UTC) by sergey.orloff)

[sergey@p43es3g ~]$ sudo modprobe binder_linux [sergey@p43es3g ~]$ sudo modprobe ashmem_linux [sergey@p43es3g ~]$ sudo systemctl start anbox-container-manager.service [sergey@p43es3g ~]$ anbox session-manager --gles-driver=host & [sergey@p43es3g ~]$ anbox: error while loading shared libraries: libboost_filesystem.so.1.63.0: cannot open shared object file: No such file or directory [sergey@p43es3g ~]$ pkgfile libboost_filesystem.so extra/boost-libs [sergey@p43es3g ~]$ yaourt -Ss boost-libs extra/boost-libs 1.64.0-4 [installed] Free peer-reviewed portable C++ source libraries - runtime libraries aur/lib32-boost-libs 1.64.0-1 (7) (0,66) Free peer-reviewed portable C++ source libraries - Runtime (32 bit)

mohan226 commented on 2017-08-07 17:21 (UTC)

When I run it, I get the error "error while loading shared libraries: libboost_filesystem.so.1.63.0". So, I downgraded boost and boost-libs to 1.63. But then I get the error "error while loading shared libraries: libboost_log.so.1.64.0". What should I do? We can't have 2 versions of the same package installed.

marcown commented on 2017-08-05 16:53 (UTC)

@hailbreno: So how do/did you get anbox running on arch? Regards, marcown

brneor commented on 2017-08-04 18:45 (UTC)

Looks like the issue related to binder and kernel 4.11 > is now solved.

vishwaprakash commented on 2017-07-20 15:33 (UTC)

@irtimmer Please make sure these packages are updated. https://launchpad.net/~morphis/+archive/ubuntu/anbox-support Shows packages of 2017-07-14

vishwaprakash commented on 2017-07-07 20:59 (UTC) (edited on 2017-07-07 21:09 (UTC) by vishwaprakash)

Having the following error : Link to log file : https://ptpb.pw/RoDx (1/2) Install DKMS modules ==> dkms install anbox-modules-ashmem/r625.7fc8bb4 -k 4.11.9-1-ARCH libkmod: kmod_config_parse: /etc/modprobe.d/alsa-base.conf line 1: ignoring bad line starting with 'options' Job for systemd-modules-load.service failed because the control process exited with error code. See "systemctl status systemd-modules-load.service" and "journalctl -xe" for details. ==> dkms install anbox-modules-binder/r625.7fc8bb4 -k 4.11.9-1-ARCH Error! Bad return status for module build on kernel: 4.11.9-1-ARCH (x86_64) Consult /var/lib/dkms/anbox-modules-binder/r625.7fc8bb4/build/make.log for more information.

Ulin commented on 2017-06-22 23:46 (UTC)

==> dkms install anbox-modules-ashmem/r614.2900829 -k 4.11.6-1-ARCH Job for systemd-modules-load.service failed because the control process exited with error code. See "systemctl status systemd-modules-load.service" and "journalctl -xe" for details. ==> dkms install anbox-modules-ashmem/r614.2900829 -k 4.11.6-3-zen Job for systemd-modules-load.service failed because the control process exited with error code. See "systemctl status systemd-modules-load.service" and "journalctl -xe" for details. ==> dkms install anbox-modules-binder/r614.2900829 -k 4.11.6-1-ARCH Error! Bad return status for module build on kernel: 4.11.6-1-ARCH (x86_64) Consult /var/lib/dkms/anbox-modules-binder/r614.2900829/build/make.log for more information. ==> dkms install anbox-modules-binder/r614.2900829 -k 4.11.6-3-zen Error! Bad return status for module build on kernel: 4.11.6-3-zen (x86_64) Consult /var/lib/dkms/anbox-modules-binder/r614.2900829/build/make.log for more information.

tmn505 commented on 2017-06-16 10:25 (UTC) (edited on 2017-06-16 10:26 (UTC) by tmn505)

@evilgnome Read my comment made on 2017-05-25. Also this issue > https://github.com/anbox/anbox/issues/223.

andykluger commented on 2017-06-14 19:06 (UTC)

@tmn505 I don't understand. The changes you mention to dkms.conf files are already made upstream. Why should we have to install lts kernel to compile these modules (if that even works)? --- ==> dkms install anbox-modules-ashmem/r602.d33d98a -k 4.11.4-1-ARCH Job for systemd-modules-load.service failed because the control process exited with error code. See "systemctl status systemd-modules-load.service" and "journalctl -xe" for details. ==> dkms install anbox-modules-binder/r602.d33d98a -k 4.11.4-1-ARCH Error! Bad return status for module build on kernel: 4.11.4-1-ARCH (x86_64) Consult /var/lib/dkms/anbox-modules-binder/r602.d33d98a/build/make.log for more information. ==> dkms install anbox-modules-binder/r602.d33d98a -k 4.11.3-2-zen Error! Bad return status for module build on kernel: 4.11.3-2-zen (x86_64) Consult /var/lib/dkms/anbox-modules-binder/r602.d33d98a/build/make.log for more information. ==> dkms install anbox-modules-ashmem/r602.d33d98a -k 4.11.3-2-zen Job for systemd-modules-load.service failed because the control process exited with error code. See "systemctl status systemd-modules-load.service" and "journalctl -xe" for details. https://0x0.st/IhZ.log

tmn505 commented on 2017-06-05 10:20 (UTC)

As You can see in attached make.log, dkms is building lts modules against current running kernel (in this line): make -C /lib/modules/4.11.2-1-ARCH/build V=0 M=$PWD The makefile for ashmem and binder have this line: KERNEL_SRC ?= /lib/modules/$(shell uname -r)/build so it will always build those modules against running kernel. This fault should be fixed in dkms.conf, replacing the line: MAKE[0]="make all KVERSION=$kernelver" with MAKE[0]="make all KERNEL_SRC=/usr/lib/modules/$kernelver/build" Until upstream or package owner fix this, You can work around this issue. Reboot to lts kernel and reinstall anbox modules.

MicroJoe commented on 2017-05-31 20:47 (UTC) (edited on 2017-05-31 20:48 (UTC) by MicroJoe)

@tmn505 I tried on 4.9 LTS kernel and had same error message: https://ptpb.pw/y5G1 Content of log for 4.9 error: https://ptpb.pw/66Zc So switching to lts kernel does not seem to fix the issue.

tmn505 commented on 2017-05-25 20:42 (UTC)

@mohan226 and @eizanprime. This is upstream issue, You have too recent kernel. There are few options for You: 1. Switch to lts kernel, 2. Remove anbox-modules-dkms-git and compile custom kernel with ashmem and binder enabled (see: https://aur.archlinux.org/cgit/aur.git/commit/?h=linux-zen-anbox&id=3e0fe11b9c2336141f4c3bbafc67dd20f54416ec), 3. Or report it on anbox issues, and wait for a fix. @irtimmer With recent changes it is necessary to add --data-path=/var/lib/anbox to anbox-container-manager.service. Also can you add to optdepends: 'android-sdk-platform-tools: install and uninstall apps in anbox android image'

eizanprime commented on 2017-05-25 16:07 (UTC)

@mohan226 I have the exact same bug, tell me if you manage to solve it !

mohan226 commented on 2017-05-24 21:02 (UTC)

(1/2) Install DKMS modules ==> dkms install anbox-modules-binder/r578.e82afd1 -k 4.11.2-1-ARCH Error! Bad return status for module build on kernel: 4.11.2-1-ARCH (x86_64) Consult /var/lib/dkms/anbox-modules-binder/r578.e82afd1/build/make.log for more information. https://pastebin.com/Y47uaA2f

czapnaper commented on 2017-05-14 20:36 (UTC)

Hi. After the last update, the internet connection stopped working. After changing anboxbr0 to anbox0 in the anbox-bridge.netdev and anbox-bridge.network files, the internet will start working . https://github.com/anbox/anbox/commit/5c1418b849a04648defd7e20252a25414d0ce361

sergey.orloff commented on 2017-05-11 11:33 (UTC)

Hello! I took the following steps: sudo pacman -S linux-headers dkms yaourt -S anbox-image anbox-modules-dkms-git anbox-git sudo modprobe binder_linux sudo modprobe ashmem_linux sudo systemctl start anbox-container-manager.service anbox session-manager --gles-driver=host & anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity And nothing happens. I pressed "Ctrl+C" and received the following response: Attempted to unregister path (path[0] = null path[1] = null) which isn't registered Help please solve the problem, who knows what's the matter. Thank you for your help!

keyolk commented on 2017-05-10 06:44 (UTC) (edited on 2017-05-10 06:44 (UTC) by keyolk)

I failed to launch anbox container-manager and got below message does it needs CONFIG_SQUASHFS_XZ to Kernel ? ``` May 10 15:42:56 keyolk-book kernel: squashfs: SQUASHFS error: Filesystem uses "xz" compression. This is not supported May 10 15:42:56 keyolk-book anbox[13017]: [EE 2017-05-10 06:42:56] [container_manager.cpp:129@setup_mounts] Failed to mount Android rootfs ```

denvit commented on 2017-05-09 07:16 (UTC) (edited on 2017-05-09 07:20 (UTC) by denvit)

sdl2_image and anbox-image should be added as dependencies

hoshi411 commented on 2017-05-04 23:23 (UTC) (edited on 2017-05-04 23:33 (UTC) by hoshi411)

I did it. I needed to do a few things like set my XDG Runtime $XDG_RUNTIME_DIR=/run/user/$(id -u) or $XDG_RUNTIME_DIR=/run/user/1000 That had to be done before starting the container. When starting the container I had to do the following: $sudo anbox container-manager --android-image=/var/lib/anbox/android.img --data-path=/home/<USERNAME>/anbox-data --privileged Your android image file may be located in a different place and your anbox data may also . Note that --privileged is also very important. Then I was able to start the session manager with this : $anbox session-manager --gles-driver=host Then I click on the Anbox.desktop launcher And the apps popped right up , working wonderfully.

Saren commented on 2017-05-04 02:53 (UTC)

please add gtest as makedepend

teraflops commented on 2017-05-02 16:09 (UTC)

same issue here, DNS isn't resolving

danbrough commented on 2017-04-30 03:48 (UTC)

Got the most recent version building and running fine but the DNS isn't resolving. I use "adb shell" to login and "setprop net.dns1" and "setprop net.eth0.dns1" to specify a DNS server (which I can ping) but domain name querys aren't resolving.

c1tas commented on 2017-04-29 02:31 (UTC)

[Unit] Description=Anbox Session Manager [Service] ExecStart=/usr/bin/anbox session-manager --gles-driver=host [Install] WantedBy=default.target change /usr/lib/systemd/user/anbox-session-manager.service works for me

mohan226 commented on 2017-04-28 16:38 (UTC) (edited on 2017-04-28 17:23 (UTC) by mohan226)

I can start the session-manager, it says something like android is booted. I cannot start the appmgr, it just opens and with a black screen and close. If I try to launch an application directly "primusrun anbox launch --action=android.intent.action.MAIN --package=com.devhd.feedly --component=com.devhd.feedly.Main" as in the desktop file, nothing happens. "anbox system-info" gives me segfault dmesg says [ 182.982380] init: write_file: Unable to open '/proc/sys/vm/extra_free_kbytes': No such file or directory [ 184.026085] init: write_file: Unable to open '/proc/sys/net/ipv4/tcp_default_init_rwnd': No such file or directory segfault at 0 ip 00007f935a9f9d36 sp 00007ffcb8d86078 error 4 in libc-2.25.so[7f935a978000+19b000] EDIT: Opening Contacts gives me distorted graphics and closes, same with feedly.

kirill9617 commented on 2017-04-28 07:24 (UTC) (edited on 2017-04-28 07:54 (UTC) by kirill9617)

wild34, I had the same issue try to add rm cmake/FindGMock.cmake in prepare() But now I have segfault on start [ 4810.423105] init: write_file: Unable to open '/proc/sys/vm/extra_free_kbytes': No such file or directory [ 4811.010233] anbox[6525]: segfault at 10 ip 00007fe7fa4c5998 sp 00007fe7b1bfa930 error 4 in i965_dri.so[7fe7fa0ca000+6c6000]

wild34 commented on 2017-04-27 12:36 (UTC) (edited on 2017-04-27 12:37 (UTC) by wild34)

I have other issue, have a look (community/gmock 1.8.0-1 [installed]): -- Configuring done -- Generating done -- Build files have been written to: /tmp/makepkg/anbox-git/src/anbox/build [ 2%] Built target OpenglCodecCommon [ 2%] Performing configure step for 'GMock' [ 3%] Built target xdg [ 6%] Built target emugen [ 12%] Built target emugl_common CMake Error: The source directory "/usr/src/gmock" does not appear to contain CMakeLists.txt. Specify --help for usage, or press the help button on the CMake GUI. make[2]: *** [CMakeFiles/GMock.dir/build.make:106: GMock-prefix/src/GMock-stamp/GMock-configure] Error 1 make[1]: *** [CMakeFiles/Makefile2:68: CMakeFiles/GMock.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 20%] Built target process-cpp

leidola commented on 2017-04-22 00:24 (UTC)

FYI: As an alternative to using these modules - which do not work with e.g. linux-git - one can compile the upstream kernel with binder and ashmen included. I added the following snipplet to linux-git's PKGBUILD and I successfully run anbox with these modules. cat << EOF >> .config CONFIG_ANDROID=y CONFIG_ANDROID_LOW_MEMORY_KILLER=n CONFIG_ANDROID_BINDER_IPC=y CONFIG_ANDROID_BINDER_DEVICES="binder" CONFIG_ASHMEM=y CONFIG_ION=n EOF

Ravenman commented on 2017-04-21 18:24 (UTC)

Here I have the same issue, like talonz: (1/7) Install DKMS modules ==> dkms install anbox-modules-binder/r468.76be0e2 -k 4.10.11-1-ARCH Error! Bad return status for module build on kernel: 4.10.11-1-ARCH (x86_64) Consult /var/lib/dkms/anbox-modules-binder/r468.76be0e2/build/make.log for more information. ==> No kernel 4.10.8-1-ARCH modules. You must install them to use DKMS! ==> dkms install vboxhost/5.1.20_OSE -k 4.10.11-1-ARCH ==> dkms install anbox-modules-ashmem/r468.76be0e2 -k 4.10.11-1-ARCH Error! Bad return status for module build on kernel: 4.10.11-1-ARCH (x86_64) Consult /var/lib/dkms/anbox-modules-ashmem/r468.76be0e2/build/make.log for more information. (2/7) Updating linux initcpios Checking the files, I found this: [user@localhost ~]$ cat /var/lib/dkms/anbox-modules-binder/r468.76be0e2/build/make.log DKMS make.log for anbox-modules-binder-r468.76be0e2 for kernel 4.10.11-1-ARCH (x86_64) vie abr 21 11:30:48 -05 2017 make -C /lib/modules/4.10.10-1-ARCH/build V=0 M=$PWD make[1]: *** /lib/modules/4.10.10-1-ARCH/build: No such file or directory. Stop. make: *** [Makefile:8: all] Error 2 [user@localhost ~]$ cat /var/lib/dkms/anbox-modules-ashmem/r468.76be0e2/build/make.log DKMS make.log for anbox-modules-ashmem-r468.76be0e2 for kernel 4.10.11-1-ARCH (x86_64) vie abr 21 11:31:12 -05 2017 make -C /lib/modules/4.10.10-1-ARCH/build V=0 M=$PWD make[1]: *** /lib/modules/4.10.10-1-ARCH/build: No such file or directory. Stop. make: *** [Makefile:8: all] Error 2 What am I doing wrong here?

StarterX4 commented on 2017-04-21 17:12 (UTC)

I can't compile this, the code horrible. Someone can report this to devs? Files like "/anbox/runtime.cpp", "/anbox/rpc/connection_creator.cpp", "/anbox/rpc/connection_creator.cpp" etc. contain same declared functions (dev's backups?), these second contained functions are with "~". I tried with CXX flags like "-Wno-unused-const-variable", "-Wno-implicit-exception-spec-mismatch" but it doesn't work. I tried to fix them manually, but it doesn't have sense. Example errors: /tmp/yaourt-tmp-starterx4/aur-anbox-git/src/anbox/external/xdg/xdg.cpp:60:23: error: unused variable 'xdg_runtime_dir' [-Werror,-Wunused-const-variable] constexpr const char* xdg_runtime_dir{"XDG_RUNTIME_DIR"}; ^ 1 error generated. make[2]: *** [external/xdg/CMakeFiles/xdg.dir/build.make:63: external/xdg/CMakeFiles/xdg.dir/xdg.cpp.o] Błąd 1 make[1]: *** [CMakeFiles/Makefile2:1851: external/xdg/CMakeFiles/xdg.dir/all] Błąd 2 make: *** [Makefile:141: all] Błąd 2 /tmp/yaourt-tmp-starterx4/aur-anbox-git/src/anbox/src/anbox/rpc/connection_creator.cpp:37:20: error: function previously declared with an explicit exception specification redeclared with an implicit exception specification [-Werror,-Wimplicit-exception-spec-mismatch] ConnectionCreator::~ConnectionCreator() {} ^ /tmp/yaourt-tmp-starterx4/aur-anbox-git/src/anbox/src/anbox/rpc/connection_creator.h:43:3: note: previous declaration is here ~ConnectionCreator() noexcept; ^ 1 error generated.

mhspace commented on 2017-04-20 05:58 (UTC)

Is there any chance of supporting NetworkManager along with systemd-network?

win_chen commented on 2017-04-20 04:27 (UTC)

anbox session-manager [EE 2017-04-20 12:22:19] [daemon.cpp:58@Run] Failed to connect to socket /run/anbox-container.socket: Connection refused please help, how can i fix it?

subjectdenied commented on 2017-04-19 11:39 (UTC)

@irtimmer: thanks for the explanation, got it working now by setting a dns manually

irtimmer commented on 2017-04-19 11:24 (UTC)

@subjectdenied Only systemd-networkd should be started. This will create a bridge and enable DHCP and masquerading. Unless configuration files for other network devices are added it shouldn't disrupt your internet connection. The only disadvantage is it can't automatically detect your DNS server unless you use systemd-networkd to also control your internet connection. So in most cases you have to manually add your DNS server to anbox-bridge.network

subjectdenied commented on 2017-04-19 10:32 (UTC)

can anyone explain how this new systemd.network bridge is activated with latest revision? after enabling systemd.neworking and systemd.resolver networking isn't available at the host for me, and no network available in anbox itself too

talonz commented on 2017-04-19 03:48 (UTC)

dkms fails for some reason ==> dkms install anbox-modules-ashmem/r468.76be0e2 -k 4.11.0-rc7-g4f7d029b9bf0 ==> dkms install anbox-modules-binder/r468.76be0e2 -k 4.10.10-1-ARCH Error! Bad return status for module build on kernel: 4.10.10-1-ARCH (x86_64) Consult /var/lib/dkms/anbox-modules-binder/r468.76be0e2/build/make.log for more information. ==> dkms install anbox-modules-binder/r468.76be0e2 -k 4.11.0-rc7-g4f7d029b9bf0 Error! Bad return status for module build on kernel: 4.11.0-rc7-g4f7d029b9bf0 (x86_64) Consult /var/lib/dkms/anbox-modules-binder/r468.76be0e2/build/make.log for more information. ==> dkms install anbox-modules-ashmem/r468.76be0e2 -k 4.10.10-1-ARCH (2/3) Arming ConditionNeedsUpdate... (3/3) Updating the desktop file MIME type cache...

gamer01 commented on 2017-04-18 22:15 (UTC) (edited on 2017-04-18 22:23 (UTC) by gamer01)

i can install everything successful after making sure i have `linux-headers`installed. anbox-container-manager.service runs fine, but when i call `anbox session-manager` i get a segfault. PS: https://github.com/anbox/anbox/issues/117 using `anbox session-manager --gles-driver=host` works

Ravenman commented on 2017-04-18 21:41 (UTC)

@subjectdenied I did it step by step as you said me, but I get the same messages. :(

subjectdenied commented on 2017-04-18 20:56 (UTC)

@Ravenman: did you install a newer kernel version, but have not rebooted since? if so reboot, and reinstall the anbox-modules again

Ravenman commented on 2017-04-18 20:34 (UTC)

@subjectdenied. Thanks by share your effort with us. Could you fix this, please?: (1/2) Install DKMS modules ==> dkms install anbox-modules-binder/468 -k 4.10.10-1-ARCH ==> No kernel 4.10.8-1-ARCH modules. You must install them to use DKMS! ==> dkms install anbox-modules-ashmem/468 -k 4.10.10-1-ARCH ==> No kernel 4.10.8-1-ARCH modules. You must install them to use DKMS! (2/2) Arming ConditionNeedsUpdate...

mufeed2000 commented on 2017-04-18 14:55 (UTC) (edited on 2017-04-18 14:56 (UTC) by mufeed2000)

Thank you, subjectdenied! I'm using your package now! EDIT: For my older issue, only solution was to switch back to the original kernel.

subjectdenied commented on 2017-04-17 20:56 (UTC)

for anyone interested, here is a working makepkg directory with networking enabled https://github.com/subjectdenied/anbox-aur-with-networking it uses anbox-bridge.sh from scripts directory, and anbox-container-bridge.service from anbox debian fork now to getting google play store working ...

mufeed2000 commented on 2017-04-17 04:46 (UTC)

DKMS make.log for anbox-modules-ashmem-466 for kernel 4.10.9-zen-nightglare-lizen-g2589ab7cf9c6-dirty (x86_64) Sat Apr 15 20:07:28 IST 2017 make -C /lib/modules/4.10.9-zen-nightglare-lizen-g2589ab7cf9c6-dirty/build V=0 M=$PWD make[1]: Entering directory '/usr/src/linux-4.10.9-zen-nightglare-lizen-g2589ab7cf9c6-dirty' LD /var/lib/dkms/anbox-modules-ashmem/466/build/built-in.o make[2]: *** No rule to make target '/var/lib/dkms/anbox-modules-ashmem/466/build/deps.o', needed by '/var/lib/dkms/anbox-modules-ashmem/466/build/ashmem_linux.o'. Stop. make[1]: *** [Makefile:1500: _module_/var/lib/dkms/anbox-modules-ashmem/466/build] Error 2 make[1]: Leaving directory '/usr/src/linux-4.10.9-zen-nightglare-lizen-g2589ab7cf9c6-dirty' make: *** [Makefile:8: all] Error 2 similar log for the other module too. :( Please help. I still have this issue. Please help.

skintigth commented on 2017-04-16 21:10 (UTC)

@subjectdenied I tried this but still isn't working, after the systemctl command I tried using the .desktop launcher but nothing happened then I tried with "anbox session-manager" and "anbox session-manager --gles-driver=host" and I get, in both cases: [EE 2017-04-16 20:54:45] [daemon.cpp:58@Run] bind: Address already in use I tried using adb to see if the android started but the adb don't show any device note: when I use the systemctl command my screen blinked note 2: I think the only ting that don't work is the graphic interface.

subjectdenied commented on 2017-04-16 13:01 (UTC)

@gcala no but, the virtual interface and bridge are created it seems there is a debian fork, where a systemd-service is used for controlling the bridge, didn't try it yet https://github.com/zhsj/anbox/commit/6beb07367a059b44711609badd61aae8418db2a4

gcala commented on 2017-04-16 09:47 (UTC)

Do you have internet connection? I do not.

mohan226 commented on 2017-04-16 07:40 (UTC)

anbox session-manager --gles-driver=host gives me the error [Renderer.cpp:105@initialize] Failed to initialize EGL and a segfault anbox system-info also gives me segfault dmesg shows something like "error 4 in libc-2.25.so" I'm using nvidia 378.13-5

mufeed2000 commented on 2017-04-15 14:39 (UTC)

DKMS make.log for anbox-modules-ashmem-466 for kernel 4.10.9-zen-nightglare-lizen-g2589ab7cf9c6-dirty (x86_64) Sat Apr 15 20:07:28 IST 2017 make -C /lib/modules/4.10.9-zen-nightglare-lizen-g2589ab7cf9c6-dirty/build V=0 M=$PWD make[1]: Entering directory '/usr/src/linux-4.10.9-zen-nightglare-lizen-g2589ab7cf9c6-dirty' LD /var/lib/dkms/anbox-modules-ashmem/466/build/built-in.o make[2]: *** No rule to make target '/var/lib/dkms/anbox-modules-ashmem/466/build/deps.o', needed by '/var/lib/dkms/anbox-modules-ashmem/466/build/ashmem_linux.o'. Stop. make[1]: *** [Makefile:1500: _module_/var/lib/dkms/anbox-modules-ashmem/466/build] Error 2 make[1]: Leaving directory '/usr/src/linux-4.10.9-zen-nightglare-lizen-g2589ab7cf9c6-dirty' make: *** [Makefile:8: all] Error 2 similar log for the other module too. :( Please help

subjectdenied commented on 2017-04-15 11:00 (UTC)

@skintigth: you can start it by using (add the gles-flag to the service if needed) $systemctl --user start anbox-session-manager.service after that you can use the desktop link to start the application-manager

skintigth commented on 2017-04-15 02:06 (UTC) (edited on 2017-04-16 20:56 (UTC) by skintigth)

I can't get this start, any suggestions? tried this to find any error but this doesn't say anything else $ ANBOX_LOG_LEVEL=debug anbox session-manager --gles-driver=host [DD 2017-04-15 02:01:50] [Renderer.cpp:166@initialize] Using a surfaceless EGL context [DD 2017-04-15 02:01:50] [Renderer.cpp:249@initialize] Successfully initialized EGL

ImNtReal commented on 2017-04-14 19:28 (UTC)

I think this thing requires mir: anbox/ubuntu/window.cpp:27:44: fatal error: mir_toolkit/mir_client_library.h: No such file or directory

gcala commented on 2017-04-14 16:55 (UTC) (edited on 2017-04-14 17:39 (UTC) by gcala)

-= Solved reinstalling anbox-modules-dkms after linux-headers =- I have the following error when launching "anbox session-manager": Failed to start as either binder or ashmem kernel drivers are not loaded If I try "sudo modprobe binder_linux" i have the error: Module binder_linux not found in directory /lib/modules/4.10.9-1-ARCH Any idea? Thanks. P.S. Using amd cpu

thorstenhirsch commented on 2017-04-14 13:19 (UTC)

Some more missing dependencies: boost, gtest

dansantos commented on 2017-04-14 12:40 (UTC) (edited on 2017-04-14 12:48 (UTC) by dansantos)

It works!!! <3 <<< AUR USERS, READ THE MINI TUTORIAL BEFORE INSTALLING >>> https://github.com/anbox/anbox/issues/3#issuecomment-294023515 To run the application, open the terminal and execute the command: anbox session-manager --gles-driver=host And open the application with the desktop icon. Thanks for the help @subjectdenied @atondwal !!! Big thanks for the AUR package @irtimmer !!!

guiniol commented on 2017-04-14 09:26 (UTC)

Not sure if there's a way to cleanly stop an application. I just close the window. As for the network, I didn't see any routing configuration, so that's probably the problem.

guiniol commented on 2017-04-14 09:21 (UTC)

@subjectdenied Thanks. --gles-driver=host did the trick

subjectdenied commented on 2017-04-14 09:18 (UTC)

also on my skylake notebook, i have to use: anbox session-manager --gles-driver=host or else i get segfault

subjectdenied commented on 2017-04-14 09:17 (UTC)

https://github.com/anbox/anbox/issues/3#issuecomment-294023515 i just followed this short guide

gabmus commented on 2017-04-14 08:10 (UTC)

This is what I did: Installed anbox-git from AUR (pulled the binder and ashmem modules with it) sudo modprobe binder_linux sudo modprobe ashmem_linux export anboxdir=/home/gabmus/Documents/anbox export datadir=$anboxdir/anbox-data export rootdir=$datadir/rootfs export androidimage=$anboxdir/android_1_amd64.img sudo anbox container-manager --android-image=$androidimage --data-path=$datadir At this point container-manager seems to work fine, it doesn't output anything and doesn't return until I Ctrl+c. Then I run anbox session-manager (also tried with XDG_RUNTIME_DIR=$HOME/Documents/anbox/anbox-data anbox session-manager) And I get [EE 2017-04-14 08:03:56] [client.cpp:49@start] Failed to start container: Failed to start container: Failed to start container [WW 2017-04-14 08:03:56] [session_manager.cpp:140@operator()] Lost connection to container manager, terminating. [WW 2017-04-14 08:03:56] [session_manager.cpp:140@operator()] Lost connection to container manager, terminating. [1] 6354 segmentation fault (core dumped) XDG_RUNTIME_DIR=$(pwd) anbox session-manager Any idea?

guiniol commented on 2017-04-14 07:30 (UTC)

@subjectdenied Did you do anything to get the anbox session-manager to run? I'm getting a segfault

Tallix commented on 2017-04-14 07:19 (UTC)

I am getting the same error as @namoo4u and what @subjectdenied was formerly getting. Attempting to run the container manager as non-root says that it should be started by the OS's init system. Does that have anything to do with it?

namoo4u commented on 2017-04-14 07:08 (UTC)

I run 'anbox container-manager' as root first and run 'anbox session-manager' BUT it doesn't not work with this error [EE 2017-04-14 07:06:25] [client.cpp:49@start] Failed to start container: Failed to start container: Failed to start container [WW 2017-04-14 07:06:25] [session_manager.cpp:140@operator()] Lost connection to container manager, terminating. [WW 2017-04-14 07:06:25] [session_manager.cpp:140@operator()] Lost connection to container manager, terminating. [EE 2017-04-14 07:06:25] [daemon.cpp:58@Run] Container is not running is there any solutions to fix it?

atondwal commented on 2017-04-14 03:58 (UTC)

@MichaelMcEntire @dansantos you need to run `anbox container-manager` as root first.

atondwal commented on 2017-04-14 03:58 (UTC)

@subjectdenied How did you get past the `Lost connection to container manager` error you were getting?

MichaelMcEntire commented on 2017-04-14 03:56 (UTC)

I have the same issue as dansantos.

p4block commented on 2017-04-14 02:40 (UTC)

Warning for mainline users, it doesn't build on 4.11.0-rc6

dansantos commented on 2017-04-14 00:39 (UTC)

I installed all the necessary packages (anbox-git, anbox-image and anbox-modules-dkms-git) and when starting with the command 'anbox session-manager' return at the terminal: [EE 2017-04-14 00:26:24] [daemon.cpp:58@Run] Failed to connect to socket /run/anbox-container.socket: No such file or directory How to fix this?

subjectdenied commented on 2017-04-14 00:06 (UTC)

anyone having a working internet connection inside anbox? the webview app included does seem to indicate that networking isn't enabled

tm-x commented on 2017-04-13 19:21 (UTC) (edited on 2017-04-13 19:27 (UTC) by tm-x)

The kernel headers are missing to use dkms. depends=('dkms' 'linux-headers') makedepends=(... 'process-cpp' 'properties-cpp' ...)

Krutonium commented on 2017-04-13 18:34 (UTC)

-- Installing: /tmp/yaourt-tmp-krutonium/aur-anbox-git/pkg/anbox-git/usr/bin/anbox make: Leaving directory '/tmp/yaourt-tmp-krutonium/aur-anbox-git/src/anbox/build' install: cannot stat '/tmp/yaourt-tmp-krutonium/aur-anbox-git/src/anbox.desktop': No such file or directory ==> ERROR: A failure occurred in package_anbox-git().

tm-x commented on 2017-04-13 12:27 (UTC)

@ovalmartini: https://aur.archlinux.org/packages/anbox-modules-dkms/

ovalmartini commented on 2017-04-13 12:16 (UTC)

@tm-x Could you publish that PKGBUILD via pastebin?

EXL commented on 2017-04-13 11:55 (UTC)

@guiniol I compiled modules and load them: $ sudo modprobe ashmem_linux $ sudo modprobe binder_linux Then, I created /usr/usr/lib/anbox/ directory and symlink /usr/lib/anbox/translators/ to created dir. Now, when I type: $ XDG_RUNTIME_DIR=$HOME/Downloads/anbox-data/ anbox session-manager I get the same error as @subjectdenied. I hope someone can got further.

tm-x commented on 2017-04-13 11:42 (UTC) (edited on 2017-04-13 12:29 (UTC) by tm-x)

You can either use the source package https://launchpad.net/~morphis/+archive/ubuntu/anbox-support/+files/anbox-modules-dkms_4.tar.gz and compile them via: cd kernel/binder make cd kernel/ashmem make or use my PKGBUILD: https://aur.archlinux.org/packages/anbox-modules-dkms/

ovalmartini commented on 2017-04-13 11:37 (UTC)

I can't compile the binder- and the ashmem-module using dkms. Does anybody know how to do this?

tm-x commented on 2017-04-13 11:32 (UTC)

The PKGBUILD doesn't compile the required kernel modules. [session_manager.cpp:119@operator()] Failed to start as either binder or ashmem kernel drivers are not loaded

guiniol commented on 2017-04-13 11:26 (UTC)

@EXL if you've got all that working, you should be able to 'anbox session-manager' and go from there. I couldn't get that to work but @subjectdenied seems to have got further along than me

subjectdenied commented on 2017-04-13 09:57 (UTC)

$ anbox session-manager but it crashes with: [EE 2017-04-13 09:56:07] [client.cpp:49@start] Failed to start container: Failed to start container: Failed to start container [WW 2017-04-13 09:56:07] [session_manager.cpp:140@operator()] Lost connection to container manager, terminating. [WW 2017-04-13 09:56:07] [session_manager.cpp:140@operator()] Lost connection to container manager, terminating. [EE 2017-04-13 09:56:07] [daemon.cpp:58@Run] Container is not running

EXL commented on 2017-04-13 09:45 (UTC) (edited on 2017-04-13 09:49 (UTC) by EXL)

1. Install properties-cpp: $ yaourt -S properties-cpp 2. Install process-cpp: $ yaourt -S process-cpp --- Edit PKBUILD and replace "_pkgver" to "pkgver" here: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=process-cpp#n16 3. Now install anbox-git: $ yaourt -S anbox-git 4. Download android.img: $ cd ~/Download/ $ wget http://build.anbox.io/android-images/2017/04/12/android_1_amd64.img 5. Run? $ datadir=$HOME/Downloads/anbox-data $ mkdir -p $datadir/rootfs $ sudo anbox container-manager --android-image=/home/exl/Downloads/android_1_amd64.img --data-path=$datadir === @guiniol @subjectdenied But what's next? Please help me.

guiniol commented on 2017-04-13 09:11 (UTC)

Next error: Failed to open /usr//usr/lib/anbox/translators/libEGL_translator.so: [/usr//usr/lib/anbox/translators/libEGL_translator.so: cannot open shared object file: No such file or directory] it's not looking in the right place

subjectdenied commented on 2017-04-13 09:01 (UTC)

android-image can be found here i guess: wget http://build.anbox.io/android-images/2017/04/12/android_1_amd64.img

guiniol commented on 2017-04-13 08:38 (UTC) (edited on 2017-04-13 08:48 (UTC) by guiniol)

To launch the daemon, you need to run (this must be done before anbox session-manager): anbox container-manager If you get an error about 'No runtime directory specified' make sure 'XDG_RUNTIME_DIR' is set to something. Now, all we need is the android.img

snowyyyy commented on 2017-04-13 08:08 (UTC)

[daemon.cpp:58@Run] Failed to connect to socket /run/anbox-container.socket: No such file or directory

guiniol commented on 2017-04-13 07:45 (UTC) (edited on 2017-04-13 07:47 (UTC) by guiniol)

The kernel modules are in the package, however, they are not installed at the right place. They are in /usr/src/anbox-modules-ashmem-/ /usr/src/anbox-modules-binder-/ but they should be in /usr/src/anbox-modules-ashmem-<version>/ /usr/src/anbox-modules-binder-<version>/ you can create a symlink (put whatever in the version) and then dkms add anbox-modules-ashmem/<version> dkms build anbox-modules-ashmem/<version> dkms install anbox-modules-ashmem/<version> The modules can then be loaded (ashmem_linux and binder_linux) However, now it complains about `No runtime directory specified` and I have yet to figure out how to specify it

mufeed2000 commented on 2017-04-13 07:12 (UTC)

Has anyone got it actually running? Looks like we need kernel modules and a (very stripped down) android image. I can't seem to find either. Any help would be appreciated. :)

mufeed2000 commented on 2017-04-13 05:49 (UTC) (edited on 2017-04-13 05:50 (UTC) by mufeed2000)

So, how do i use this? Installed it but session manager is not running because of the 2 kernel modules needed. How do i make that work?

shellkr commented on 2017-04-13 03:30 (UTC)

@ProfessorKaos64: Check the process-cpp package and make it build and install

ProfessorKaos64 commented on 2017-04-13 03:17 (UTC)

Does not build for me: ==> ERROR: A failure occurred in prepare(). Aborting... :: Building dbus-cpp package(s)... ==> Making package: dbus-cpp 5.0.0-1 (Wed Apr 12 23:15:28 EDT 2017) ==> Checking runtime dependencies... ==> Installing missing dependencies... error: target not found: process-cpp ==> ERROR: 'pacman' failed to install missing dependencies. :: Building anbox-git package(s)... ==> Making package: anbox-git 466-1 (Wed Apr 12 23:15:29 EDT 2017) ==> Checking runtime dependencies... ==> Installing missing dependencies... error: target not found: dbus-cpp ==> ERROR: 'pacman' failed to install missing dependencies. :: properties-cpp is a new orphan package :: failed to build process-cpp package(s) :: failed to build dbus-cpp package(s) :: failed to build anbox-git package(s)