-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to build for emulator? #58
Comments
Can you post the build failure details? You can get our mozbuild from https://packages.preprod.kaiostech.com/ndk/v7/mozbuild.tar.bz2 and you should make sure to have rustc 1.56.1 installed. |
Hey @fabricedesre https://packages.preprod.kaiostech.com/ndk/v7/mozbuild.tar.bz2 worked and all LLVM version mismatch errors are resolved. i had to use 1.57.0 rustc though. |
@fabricedesre need a bit help here, after successful build, i tried to start the emulator, and I get nothing but black screen.
i tried without host gpu, but same black screen
adb logcatI was able to get adb shell though and logcat shows following error
adb shell b2g-infosome times it reports two b2g main process
can you please assist here! |
I'll ask around but I haven't used an emulator build in a while. |
I have tried both arm and x86_64 emulator builds, both have same issue, emulator black screen & below kind of errors
Also tried with different host systems to check if its a GPU driver error, but same behaviour across all host systems. I really need help at this point as my team is stuck here. Please help me to resolve this. Steps followed Workspace setup
install build dependency sudo apt-get install git-core gnupg flex bison build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 libncurses5 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z1-dev libgl1-mesa-dev libxml2-utils xsltproc unzip fontconfig texinfo python python3-pip ccache wget install mozbuild perbuilt host dependency cd $HOME
rm -rf .mozbuild/
wget https://packages.preprod.kaiostech.com/ndk/v7/mozbuild.tar.bz2
tar -xvf mozbuild.tar.bz2 install repo sudo curl -o /usr/local/bin/repo https://storage.googleapis.com/git-repo-downloads/repo && sudo chmod +x /usr/local/bin/repo install rust and dependency export RUSTUP_TOOLCHAIN=1.57.0
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup install $RUSTUP_TOOLCHAIN
rustup default $RUSTUP_TOOLCHAIN
rustup target add armv7-linux-androideabi
rustup target add thumbv7neon-linux-androideabi
rustup target add x86_64-linux-android
cargo install bindgen
(please restart terminal session after this to make $PATH changes available) install node and dependency curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
(please restart terminal session after this to make $PATH changes available)
nvm install node
npm install -g yarn clone & sync B2G repo cd $HOME
git clone https://github.com/kaiostech/B2G.git
cd B2G
export GITREPO=https://github.com/kaiostech/manifests.git
export REPO_INIT_FLAGS="--depth=1"
./config.sh emulator-10-x86_64
cd gonk-misc/api-daemon/support/libsignal-sys
git submodule init
git submodule update
cd ../../../../ patch source cd $HOME
# had to disable SELINUX as it blocks build with errors
cp patches/buildspec.mk B2G/buildspec.mk
cp patches/Android.mk B2G/system/sepolicy/Android.mk
cp patches/sepolicy.mk B2G/gonk-misc/sepolicy/sepolicy.mk build B2G export LOCAL_NDK_BASE_URL='ftp://ftp.kaiostech.com/ndk/android-ndk'
export ANDROID_NDK=$HOME/.mozbuild/android-ndk-r21d
export ANDROID_NDK_HOME=$HOME/.mozbuild/android-ndk-r21d
export RUSTUP_TOOLCHAIN=1.57.0
cd $HOME/B2G
cd gecko
# choose option 4
./mach bootstrap
cd ..
./build.sh |
@fabricedesre any help regarding running the emulator is deeply appreciated! |
I followed the instructions provided here https://github.com/kaiostech/B2G#building-and-running-the-android-10-emulator but the buid fails, Can some one direct me the right steps?
The text was updated successfully, but these errors were encountered: