not brunch sorry. Run: repo sync -j1
Running repo sync -j1 gave me the following:
Fetching project device/generic/x86_64
Fetching project TheMuppets/proprietary_vendor_qcom_binaries
fatal: Couldn't find remote ref refs/heads/lineage-15.1
When I look at "TheMuppets/proprietary_vendor_qcom_binaries/Android.mk: it seems that the the source is depreciated:
$(error This repo is now deprecated. Move your blobs to your device's vendor repo.)
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
ifeq ($(BOARD_USES_QCOM_HARDWARE),true)
include $(call all-makefiles-under,$(LOCAL_PATH)/$(TARGET_BOARD_PLATFORM))
endif
Remove first line inside:
"TheMuppets/proprietary_vendor_qcom_binaries/Android.mk"
I couldn't find the actual TheMuppets/proprietary_vendor_qcom_binaries/Android.mk file, so I made a fork of the "Muppets" source, "patched it" by removing the line that you told me and I added it to my roomservice.xml:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="LineageOS/android_device_samsung_klte" path="device/samsung/klte" remote="github" />
<project name="LineageOS/android_device_samsung_klte-common" path="device/samsung/klte-common" remote="github" />
<project name="LineageOS/android_device_samsung_msm8974-common" path="device/samsung/msm8974-common" remote="github" />
<project name="LineageOS/android_kernel_samsung_msm8974" path="kernel/samsung/msm8974" remote="github" />
<project name="LineageOS/android_packages_apps_FlipFlap" path="packages/apps/FlipFlap" remote="github" />
<project name="LineageOS/android_device_samsung_qcom-common" path="device/samsung/qcom-common" remote="github" />
<project name="LineageOS/android_hardware_samsung" path="hardware/samsung" remote="github" />
<project name="LineageOS/android_packages_resources_devicesettings" path="packages/resources/devicesettings" remote="github" />
<project name="zogthegreat/proprietary_vendor_qcom_binaries" path="device/samsung/proprietary_vendor_qcom_binaries" remote="github" revision="zogthegreat-patch-1" />
</manifest>
I was able to sync my repo, but now my build is failing with the follow:
zog@X220:~/work/los$ croot
zog@X220:~/work/los$ time brunch klte
including vendor/lineage/vendorsetup.sh
Looking for dependencies in device/samsung/klte
Looking for dependencies in device/samsung/klte-common
Looking for dependencies in device/samsung/msm8974-common
Looking for dependencies in device/samsung/qcom-common
Looking for dependencies in hardware/samsung
Looking for dependencies in packages/resources/devicesettings
packages/resources/devicesettings has no additional dependencies.
Looking for dependencies in packages/resources/devicesettings
packages/resources/devicesettings has no additional dependencies.
Looking for dependencies in kernel/samsung/msm8974
kernel/samsung/msm8974 has no additional dependencies.
Looking for dependencies in packages/apps/FlipFlap
packages/apps/FlipFlap has no additional dependencies.
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
LINEAGE_VERSION=15.1-20181113-UNOFFICIAL-klte
TARGET_PRODUCT=lineage_klte
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_PLATFORM_VERSION=OPM1
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.18.0-10-generic-x86_64-with-Ubuntu-18.10-cosmic
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=OPM7.181105.004
OUT_DIR=/home/zog/work/los/out
AUX_OS_VARIANT_LIST=
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
TARGET_PRODUCT=lineage_klte
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.18.0-10-generic-x86_64-with-Ubuntu-18.10-cosmic
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=OPM7.181105.004
OUT_DIR=/home/zog/work/los/out
============================================
[44/44] bootstrap /home/zog/work/los/out/soong/.minibootstrap/build.ninja.in
[4/4] /home/zog/work/los/out/soong/.bootstrap/bin/minibp /home/zog/work/los/out/soong/.bootstrap/build.ninja
[873/874] glob vendor/qcom/opensource/interfaces/wifi/supplicant/1.0/Android.bp
[56/56] /home/zog/work/los/out/soong/.bootstrap/bin/soong_build /home/zog/work/los/out/soong/build.ninja
/home/zog/work/los/out/build-lineage_klte.ninja is missing, regenerating...
[412/1154] including ./frameworks/av/camera/Android.mk ...
frameworks/av/camera/cameraserver/Android.mk:18: warning: Target has integrated cameraserver into mediaserver. This is weakening security measures introduced in 7.0
[1154/1154] including ./vendor/qcom/opensource/rcs-service/Android.mk ...
[ 99% 1277/1278] glob vendor/qcom/opensource/interfaces/wifi/supplicant/1.0/Android.bp
[ 0% 139/77640] host C++: conscrypt_generate_constants <= external/conscrypt/constants/src/gen/cpp/generate_constants.cpp
FAILED: /home/zog/work/los/out/host/linux-x86/obj/EXECUTABLES/conscrypt_generate_constants_intermediates/constants/src/gen/cpp/generate_constants.o
/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-4053586/bin/clang++ -I device/samsung/klte-common/include -I external/conscrypt -I /home/zog/work/los/out/host/linux-x86/obj/EXECUTABLES/conscrypt_generate_constants_intermediates -I /home/zog/work/los/out/host/linux-x86/gen/EXECUTABLES/conscrypt_generate_constants_intermediates -I libnativehelper/include_deprecated \$(cat /home/zog/work/los/out/host/linux-x86/obj/EXECUTABLES/conscrypt_generate_constants_intermediates/import_includes) -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I libnativehelper/include -I frameworks/native/include -I frameworks/native/opengl/include -I frameworks/av/include -c -fno-exceptions -Wno-multichar -Wa,--noexecstack -fPIC -no-canonical-prefixes -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -O2 -g -fno-strict-aliasing --gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8 --sysroot prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot -fstack-protector-strong -m64 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined -fdebug-prefix-map=\$PWD/= -target x86_64-linux-gnu -Bprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/bin -Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-thread-safety-negative -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8 -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/backward -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/x86_64-linux -std=gnu++14 -fPIE -D_USING_LIBCXX -nostdinc++ -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -MD -MF /home/zog/work/los/out/host/linux-x86/obj/EXECUTABLES/conscrypt_generate_constants_intermediates/constants/src/gen/cpp/generate_constants.d -o /home/zog/work/los/out/host/linux-x86/obj/EXECUTABLES/conscrypt_generate_constants_intermediates/constants/src/gen/cpp/generate_constants.o external/conscrypt/constants/src/gen/cpp/generate_constants.cpp"
prebuilts/clang/host/linux-x86/clang-4053586/bin/clang++.real: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
[ 0% 144/77640] Check module type: /home/zog/work/los/out/host/linux-x86/obj/EXECUTABLES/conscrypt_generate_constants_intermediates/link_type
ninja: build stopped: subcommand failed.
11:52:28 ninja failed with: exit status 1
#### failed to build some targets (01:11 (mm:ss)) ####
I can see where the build is failing, but I don't understand the output.
Hi, my device is a Samsung S4 mini (i9195) and the codename is serranoltexx.
my repo is: //github.com/LineageOS/android.git -b cm-14.1
I make $ source build / envsetup.sh and perfect, but $ breakfast serranoltexx I get this error: build / core / product_config.mk: 254: *** _nic.PRODUCTS. [[Device / samsung / serranoltexx / lineage.mk]] : "vendor / samsung / serrano-common / serrano-common-vendor.mk" does not exist. High.
build / core / product_config.mk: 254: *** _nic.PRODUCTS. [[device / samsung / serranoltexx / lineage.mk]]: "vendor / samsung / serrano-common / serrano-common-vendor.mk" does not exist High.
** Do not have a product spec for: 'lineage_serranoltexx'
** Do you have the right repo manifest?
Jump to the option: Extracting proprietary blobs from block-based OTAs, I assemble the image well, I position myself in the directory where are the sources of my device:
~ / android / lineage / device / samsung / serranoltexx #, I enter the command ./extract-files.sh ~ / android / system_dump / and I get this error: db: error: remote object '/ system / bin / btnvtool' does not exist
I check the remote object and if it exists.
Can you give me a hand to give me light in the matter?
Thank you.
Add repo blobs directly into manifest.
Search here //github.com/TheMuppets
Hi,
How add repo blobs directly into manifest.?
Thank you.
Add repo blobs directly into manifest.
Search here //github.com/TheMuppets
Hi,
How add repo blobs directly into manifest.?
Thank you.
Please read second post.
OK, I took a big step back, wiped my hard drive and reinstalled Ubuntu 16.04. After that, I was able to successfully build LineageOS 14.1 for my Samsung S5.
I then ran "make clobber" and reinitialized my my build tree with:
repo init -u https://github.com/LineageOS/android.git -b lineage-15.1
However when I try to sync my repo, I get the following error:
Syncing work tree: 78% (512/656) error: Your local changes to the following files would be overwritten by checkout:
res/xml/device_info_settings.xml
Please, commit your changes or stash them before you can switch branches.
Aborting
Syncing work tree: 100% (656/656), done.
packages/apps/Settings/: discarding 858 commits
error: packages/apps/Settings/: LineageOS/android_packages_apps_Settings checkout b9634cdec5784b2bc341712865172b8910828d03
I've tried to add "<project name="LineageOS/android_packages_apps_Settings" path="vendor/samsung" remote="github" />" to my roomservice.xml, but I still get the same error.
Does anyone have any suggestions?
Thanks!
zog
make clobber is not enough if you want to sync entirely new branches.
I recommend you create new working directory for 15.1 branch
After building LineageOS Oreo, I made a new directory and I tried to compile LineageOS Pie. When I tried to start jack server, I encountered a java error:
zog@x220:~/work/pie$ export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx6g"
zog@x220:~/work/pie$ ./prebuilts/sdk/tools/jack-admin start-server
Launching Jack server java -XX:MaxJavaStackTraceDepth=-1 -Djava.io.tmpdir=/tmp -Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx6g -cp /home/zog/.jack-server/launcher.jar com.android.jack.launcher.ServerLauncher
Jack server failed to (re)start, try 'jack-diagnose' or see Jack server log
zog@x220:~/work/pie$ ./prebuilts/sdk/tools/jack-diagnose
/home/zog/work/pie/prebuilts/jdk/jdk9/linux-x86/bin/java': Failed to parse version, please ensure you're running a supported java
zog@x220:~/work/pie$ java -version
openjdk version "9"
OpenJDK Runtime Environment (build 9+181-android4627429)
OpenJDK 64-Bit Server VM (build 9+181-android4627429, mixed mode)
Which version of java do I need for Android Pie?
unzip platform-tools-latest-linux.zip -d ~
# add Android SDK platform tools to path
if [ -d "$HOME/platform-tools" ] ; then
PATH="$HOME/platform-tools:$PATH"
fi
source ~/.profile
bc bison build-essential ccache curl flex g++-multilib gcc-multilib git gnupg gperf imagemagick lib32ncurses5-dev lib32readline-dev lib32z1-dev liblz4-tool libncurses5-dev libsdl1.2-dev libssl-dev libwxgtk3.0-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc zip zlib1g-dev
$ mkdir -p ~/bin
$ mkdir -p ~/android/system
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
source ~/.profile
$ cd ~/android/system
$ repo init -u https://github.com/LineageOS/android.git -b lineage-16.0
$ repo sync
$ source build/envsetup.sh
$ breakfast "DEVICE"
$ ./extract-files.sh
$ export USE_CCACHE=1
$ prebuilts/misc/linux-x86/ccache/ccache -M 50.0G
$ export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4096m"
$ croot
$ brunch [COLOR="red"]device[/COLOR]
$ cd $OUT
cd ~/working_dir/.repo
ls
gedit ~/working_dir/.repo/manifest.xml
<project name="LineageOS/android_device_oneplus_bacon" path="device/oneplus/bacon" remote="github" revision="cm-14.1" />
<remote fetch="https://github.com" name="github" />
if I have a unsopported device (zuk z2 pro) how can sobstitute the breakfast and brunch command?