Package Base Details: anbox-git

Git Clone URL: https://aur.archlinux.org/anbox-git.git (read-only)
Submitter: irtimmer
Maintainer: irtimmer
Last Packager: irtimmer
Votes: 120
Popularity: 4.60
First Submitted: 2017-04-12 21:41
Last Updated: 2019-05-14 18:21

Pinned Comments

irtimmer commented on 2018-01-19 10:35

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

« First ‹ Previous 1 2 3 4 5 6 7 8 9 ... Next › Last »

HiJack88 commented on 2019-07-23 17:38

@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

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

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

@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

@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

@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

I think "gmock is a makedependency

TeaHistoria commented on 2019-07-10 07:08

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

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

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
}