Errors compiling `anbox-bridge`

It seems that there is a missed library:

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

I do not know which packages which comes with this library.

I have to reinstall Anbox.

https://packages.archlinux32.org/extra/i686/boost-libs

AUR packages often need to be rebuilt when dependencies are updated. It appears you updated to boost-libs 1.68 so anbox can’t find the library from 1.67.

1 Like

It said “not found”.

the script for remplacing the android.img didn’t work

[=========================================================================|] 8401/8401 100%

created 1659 files
created 280 directories
created 177 symlinks
created 0 devices
created 0 fifos
configupdater-all/
configupdater-all/nodpi/
configupdater-all/nodpi/priv-app/
configupdater-all/nodpi/priv-app/ConfigUpdater/
configupdater-all/nodpi/priv-app/ConfigUpdater/ConfigUpdater.apk
defaultetc-common/
defaultetc-common/common/
defaultetc-common/common/etc/
defaultetc-common/common/etc/default-permissions/
defaultetc-common/common/etc/default-permissions/default-permissions.xml
defaultetc-common/common/etc/default-permissions/opengapps-permissions.xml
defaultetc-common/common/etc/permissions/
defaultetc-common/common/etc/permissions/privapp-permissions-google.xml
defaultetc-common/common/etc/sysconfig/
defaultetc-common/common/etc/sysconfig/framework-sysconfig.xml
defaultetc-common/common/etc/sysconfig/google.xml
defaultetc-common/common/etc/sysconfig/google_build.xml
defaultetc-common/common/etc/sysconfig/whitelist_com.android.omadm.service.xml
defaultetc-common/common/etc/preferred-apps/
defaultetc-common/common/etc/preferred-apps/google.xml
defaultframework-common/
defaultframework-common/common/
defaultframework-common/common/etc/
defaultframework-common/common/etc/permissions/
defaultframework-common/common/etc/permissions/com.google.android.maps.xml
defaultframework-common/common/etc/permissions/com.google.android.media.effects.xml
defaultframework-common/common/etc/permissions/com.google.widevine.software.drm.xml
defaultframework-common/common/framework/
defaultframework-common/common/framework/com.google.android.maps.jar
defaultframework-common/common/framework/com.google.android.media.effects.jar
defaultframework-common/common/framework/com.google.widevine.software.drm.jar
extservicesgoogle-all/
extservicesgoogle-all/nodpi/
extservicesgoogle-all/nodpi/priv-app/
extservicesgoogle-all/nodpi/priv-app/GoogleExtServices/
extservicesgoogle-all/nodpi/priv-app/GoogleExtServices/GoogleExtServices.apk
extsharedgoogle-all/
extsharedgoogle-all/nodpi/
extsharedgoogle-all/nodpi/app/
extsharedgoogle-all/nodpi/app/GoogleExtShared/
extsharedgoogle-all/nodpi/app/GoogleExtShared/GoogleExtShared.apk
gmscore-x86_64/
gmscore-x86_64/nodpi/
gmscore-x86_64/nodpi/priv-app/
gmscore-x86_64/nodpi/priv-app/PrebuiltGmsCore/
gmscore-x86_64/nodpi/priv-app/PrebuiltGmsCore/PrebuiltGmsCore.apk
gmssetup-all/
gmssetup-all/nodpi/
gmssetup-all/nodpi/priv-app/
gmssetup-all/nodpi/priv-app/GmsCoreSetupPrebuilt/
gmssetup-all/nodpi/priv-app/GmsCoreSetupPrebuilt/GmsCoreSetupPrebuilt.apk
googlebackuptransport-all/
googlebackuptransport-all/nodpi/
googlebackuptransport-all/nodpi/priv-app/
googlebackuptransport-all/nodpi/priv-app/GoogleBackupTransport/
googlebackuptransport-all/nodpi/priv-app/GoogleBackupTransport/GoogleBackupTransport.apk
googlecontactssync-all/
googlecontactssync-all/nodpi/
googlecontactssync-all/nodpi/app/
googlecontactssync-all/nodpi/app/GoogleContactsSyncAdapter/
googlecontactssync-all/nodpi/app/GoogleContactsSyncAdapter/GoogleContactsSyncAdapter.apk
googlefeedback-all/
googlefeedback-all/nodpi/
googlefeedback-all/nodpi/priv-app/
googlefeedback-all/nodpi/priv-app/GoogleFeedback/
googlefeedback-all/nodpi/priv-app/GoogleFeedback/GoogleFeedback.apk
googleonetimeinitializer-all/
googleonetimeinitializer-all/nodpi/
googleonetimeinitializer-all/nodpi/priv-app/
googleonetimeinitializer-all/nodpi/priv-app/GoogleOneTimeInitializer/
googleonetimeinitializer-all/nodpi/priv-app/GoogleOneTimeInitializer/GoogleOneTimeInitialize
r.apk
googlepartnersetup-all/
googlepartnersetup-all/nodpi/
googlepartnersetup-all/nodpi/priv-app/
googlepartnersetup-all/nodpi/priv-app/GooglePartnerSetup/
googlepartnersetup-all/nodpi/priv-app/GooglePartnerSetup/GooglePartnerSetup.apk
gsfcore-all/
gsfcore-all/nodpi/
gsfcore-all/nodpi/priv-app/
gsfcore-all/nodpi/priv-app/GoogleServicesFramework/
gsfcore-all/nodpi/priv-app/GoogleServicesFramework/GoogleServicesFramework.apk
gsflogin-all/
gsflogin-all/nodpi/
gsflogin-all/nodpi/priv-app/
gsflogin-all/nodpi/priv-app/GoogleLoginService/
gsflogin-all/nodpi/priv-app/GoogleLoginService/GoogleLoginService.apk
setupwizarddefault-all/
setupwizarddefault-all/nodpi/
setupwizarddefault-all/nodpi/priv-app/
setupwizarddefault-all/nodpi/priv-app/SetupWizard/
setupwizarddefault-all/nodpi/priv-app/SetupWizard/SetupWizard.apk
setupwizardtablet-all/
setupwizardtablet-all/nodpi/
setupwizardtablet-all/nodpi/priv-app/
setupwizardtablet-all/nodpi/priv-app/SetupWizard/
setupwizardtablet-all/nodpi/priv-app/SetupWizard/SetupWizard.apk
vending-x86_64/
vending-x86_64/240-320-480/
vending-x86_64/240-320-480/priv-app/
vending-x86_64/240-320-480/priv-app/Phonesky/
vending-x86_64/240-320-480/priv-app/Phonesky/Phonesky.apk

and then it stopss
it stops at phonesky.apk take like 40 minute and show me like its completed .
i did not see the back up android.img file
there were no google services in anbox , neither when i rebooted the services or when i rebooted my whole computer .
it just stops
can you please help?
i re-did it 4 time already

It seems that the author of https://github.com/opengapps/x86_64 has just upgraded his repository yesterday, changing the path of apps.

Then @Galveston01 has to readjust the path in his shell script.

1 Like

Thanks gus…I was trying to install and compile Anbox and had the same. Thought I did something wrong with the bash script. Phonesky.apk just stops…nothing…nadda…zip.

If you’re online, do you know the new path to phonesky so I can edit the script?

OPENGAPPS_RELEASEDATE="20180706" 

Replace for:

OPENGAPPS_RELEASEDATE="20180922"

I checked the repository, it does not have Phonesky.

If it does not work yet, only can @Galveston01 can solve it.

2 Likes

The @Galveston01’s tutorial is still not good, because he still makes mistakes.

Here is the error:

gcc -o anbox-bridge anbox-bridge.c/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../lib/Scrt1.o: in function `_start':
(.text+0x24): undefined reference to `main'
collect2: error: ld returned 1 exit status

It is because of system((char *)buf);.

Any update in this issue? I’ve got everything set up but network which kinda makes everything else pointless?

I’m not getting any visible errors, for some reason anbox just won’t connect.

I have switched from old version to the latest version of OpenGAPPS and from C to C++ and it worked. But every time you boot your computer, you will have to run anbox-bridge as sudo via terminal.

Therefore, I switched from Anbox to Genymotion which comes with OpenGAPPS.

I’m less interested in emulating a full android environment and more interested in the intergration of android apps into my desktop. Would you be willing to explain how exactly you got it to work?

Hello,

Just small changes. Start that tutorial until you read that he asks you to create a file called anbox-bash.sh.

  1. In the file anbox-bash.sh, replace:
OPENGAPPS_RELEASEDATE="20180706"
OPENGAPPS_FILE="open_gapps-x86_64-7.1-mini-$OPENGAPPS_RELEASEDATE.zip"
OPENGAPPS_URL="https://github.com/opengapps/x86_64/releases/download/$OPENGAPPS_RELEASEDATE/$OPENGAPPS_FILE"

for

OPENGAPPS_RELEASEDATE="20181016"
OPENGAPPS_FILE="open_gapps-x86_64-7.1-mini-$OPENGAPPS_RELEASEDATE.zip"
OPENGAPPS_URL="https://github.com/opengapps/x86_64/releases/download/$OPENGAPPS_RELEASEDATE/$OPENGAPPS_FILE"

Until he asks you to create a C file, but…

  1. Create a C++ file instead. Create a file called anbox-bridge.cpp, here is the code:
#include <stdio.h>
#include <cstdlib>
#include <unistd.h>
#include <errno.h>

int main(void)
{
	setuid(0);

	char buf[512];
	sprintf(buf, "/usr/lib/anbox/anbox-bridge.sh %s", "start");
	system((char *)buf);
}

Then continue that tutorial. Remember when you want to use Anbox and connect to internet, you have to run as sudo before starting Anbox, every time.

sudo anbox-bridge

If this give gives error, there is another alternative:

sudo /usr/lib/anbox/anbox-bridge.sh start

Thanks so much for taking the time to explain how you got it working. Made your changes, but still a no-go. I cannot for the life of me figure out why my system won’t allow for network connection. Guess I’ll wait until there is activity on the AUR packages because I can’t get the Snap installation to work either.

Thanks again :slight_smile:

1 Like

I will talk with a moderator.

@jonathon, as according to the Remove tutorials from unanswered?, I think that only you, as a moderator, should press the author of the tutorial to answer these issues. If the tutorial is remaining unanswered for a long time, I think it should be removed for not frustrating or prejudicing the users who seek for unanswered issues.

Why on Earth should anyone press anyone to do anything? Everyone here is a volunteer.

Here is: Running Android applications on Arch using anbox

This tutorial is no longer working. I and these three users reported these issues. I had to fix by myself and tried to help them, but unsuccessfully because in his tutorial, he used the old version of OpenGAPPS, and his C file is still broken.

Press = ask, request, solicit.

Post a diff with a fix. Looks like all you have to do is change the date variable in the script:

It compiles fine for me. What issue do you have?

It’s also possible that the tutorial author doesn’t want to deal with ongoing support requests for something he posted simply as a reference for others to use. As posted in the tutorial:

If it works for the author, but not for you, then it’s something you’re doing wrong or different in your setup.

See

The right version of OpenGAPPs did not include Phonesky.

Here are two issues:

But the author of the original seemed to fix the C file yesterday. I will test his fixed C file.

OK, I have just tested it and it worked now.

But once the tutorial is finished, you have to run anbox-bridge as sudo every time before starting Anbox when you turn on your computer next times, because although it be activated automatically to autostart, it can not run due to denied permission, which requires sudo.

OK.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by Bytemark