I'm trying to build AOSP ICS source for my device, the Samsung Galaxy Ace II X (GT-S7560M and Canadian variant of Galaxy Ace 2. My device comes with ICS 4.0.4 stock with Touchwiz UX), which is similar to the Galaxy S Duos (GT-S7562) for those of you that are having trouble finding specs. I attempted to port the device tree from the Galaxy Tab 7.7 because they have similiar specs (besides the screen size). I'm using Ubuntu 10.04 and I keep on getting this error message (in the terminal) after entering the command 'lunch kylessopen-userdebug'. I found that the device also has similar specs to the Nexus S so I executed the proprietary binary .sh files from https://developers.google.com/android/nexus/drivers#crespoimm76d (sorry having trouble with hyperlink button) because I was unable to collect proprietary files from my device (didn't work). Please help me out, it would be awesome if I could compile at the very least a partially-functional AOSP ICS build. If you need anything as a reference (ie device tree), feel free to ask for it. Thanks! Below is the message that I got in the Ubuntu 10.04 terminal:
[email protected]:~/ICS_SOURCE# lunch kylessopen-user
build/core/product_config.mk:204: *** No matches for product "kylessopen". Stop.
** Don't have a product spec for: 'kylessopen'
** Do you have the right repo manifest?
Read my SOURCE TUT WARPED420 it may help
Warped420 said:
Read my SOURCE TUT WARPED420 it may help
Click to expand...
Click to collapse
I'm getting a different error after fixing up the device tree (a bit). When I initiate the compile process ("make"), I get the following:
[email protected]:~/ICS_SOURCE# make
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.4
TARGET_PRODUCT=kylessopen
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=IMM76
============================================
build/core/main.mk:347: implicitly installing apns-conf_sdk.xml
build/core/main.mk:806: *** missing separator. Stop.
Click to expand...
Click to collapse
The line "build/core/main.mk:347: implicitly installing apns-conf_sdk.xml" stays for 15-30 seconds then I get the 'missing separator' message and the compile process stops. I've tried putting a separator (only works with =) at the end of line 806 in my main.mk, but then I get another missing separator message for a different line in main.mk. After putting separators at the end of a dozen or so lines, I get a different message when initiating the 'make' process:
[email protected]:~/ICS_SOURCE# make
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.4
TARGET_PRODUCT=kylessopen
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=IMM76
============================================
build/core/main.mk:347: implicitly installing apns-conf_sdk.xml
host Java: jsr305lib (out/host/common/obj/JAVA_LIBRARIES/jsr305lib_intermediates/classes)
/bin/bash: javac: command not found
make: *** [out/host/common/obj/JAVA_LIBRARIES/jsr305lib_intermediates/javalib.jar] Error 41
Click to expand...
Click to collapse
Attached is my main.mk (from ICS_SOURCE/build/core/) renamed to main.txt because XDA won't let me upload an .mk file. If anybody is reading this, please help me. You can either tell me what to fix, or you can modify my main.mk for me. Please help!
EDIT - NEW PROBLEM!!!
[email protected]:~/ICS_SOURCE# make
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.4
TARGET_PRODUCT=kylessopen
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=IMM76
============================================
build/core/main.mk:347: implicitly installing apns-conf_sdk.xml
make: *** No rule to make target `/usr/lib/jvm/jdk1.6.0_45/jre/lib/tools.jar', needed by `out/target/common/docs/doc-comment-check-timestamp'. Stop.
Click to expand...
Click to collapse
I don't have a doc-comment-check-timestamp....somebody help me out?
try using ". build/envsetup.sh && brunch (name of device ) and post your results... and dont run under root #.. run under $
and u may want to check your java version, i use Oracle 6 without issues.. and did you put java and sdk in your path of the build, its all explained in my tutorial
I am trying to build my own custom ROM based on PAC-man. However, I am running into a few build issues.
Here is the error:
Code:
make: *** No rule to make target `/home/brandon/WORKING_FAMIGO/out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/classes.jar', needed by `/home/brandon/WORKING_FAMIGO/out/target/common/obj/APPS/Calculator_intermediates/classes-full-debug.jar'. Stop.
And attached below is the full terminal output.
Also here is the code itself: https://github.com/FamigoROM/android
dotmaniac said:
I am trying to build my own custom ROM based on PAC-man. However, I am running into a few build issues.
Here is the error:
Code:
make: *** No rule to make target `/home/brandon/WORKING_FAMIGO/out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/classes.jar', needed by `/home/brandon/WORKING_FAMIGO/out/target/common/obj/APPS/Calculator_intermediates/classes-full-debug.jar'. Stop.
And attached below is the full terminal output.
Also here is the code itself: https://github.com/FamigoROM/android
Click to expand...
Click to collapse
Hey Dotmaniac,
Did you ever resolve this? I'm having this same error building AOKP on my HTC Desire HD (ace)
espmartin said:
Hey Dotmaniac,
Did you ever resolve this? I'm having this same error building AOKP on my HTC Desire HD (ace)
Click to expand...
Click to collapse
Nope...
Sent from my Nexus 7 using Tapatalk
Google search suggests java version issues, but I've verified I'm running it as recommended... Frustrating!
Android 4.2.2/AOKP built from source
Can you post the full log?
SMillerNL said:
Can you post the full log?
Click to expand...
Click to collapse
I'll post on pastbin asap.
FYI: I get this same exact error when I build just the calc module as such:
mmm packages/apps/Calculator
Android 4.2.2/AOKP built from source
---------- Post added at 09:13 PM ---------- Previous post was at 08:55 PM ----------
Here's the full build log:
http://pastebin.com/ScKDbeej
And here's the full error when just building Calc module (pastbin too):
Code:
[LIST=1]
[*][email protected]:~/SchutzhundAOKP$ . build/envsetup.sh && lunch aokp_ace-userdebug && mmm packages/apps/Calculator
including device/htc/ace/vendorsetup.sh
including vendor/aokp/vendorsetup.sh
including sdk/bash_completion/adb.bash
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
TARGET_PRODUCT=aokp_ace
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a8
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.8.0-35-generic-x86_64-with-Ubuntu-13.10-saucy
HOST_BUILD_TYPE=release
BUILD_ID=KOT49H
OUT_DIR=/home/martin/SchutzhundAOKP/out
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
TARGET_PRODUCT=aokp_ace
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a8
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.8.0-35-generic-x86_64-with-Ubuntu-13.10-saucy
HOST_BUILD_TYPE=release
BUILD_ID=KOT49H
OUT_DIR=/home/martin/SchutzhundAOKP/out
============================================
make: Entering directory `/home/martin/SchutzhundAOKP'
build/core/Makefile:43: warning: overriding commands for target `/home/martin/SchutzhundAOKP/out/target/product/ace/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/Makefile:43: warning: ignoring old commands for target `/home/martin/SchutzhundAOKP/out/target/product/ace/system/etc/permissions/android.software.live_wallpaper.xml'
PRODUCT_COPY_FILES device/htc/ace/keylayout/keylayout/AVRCP.kl:system/usr/keylayout/AVRCP.kl ignored.
PRODUCT_COPY_FILES device/htc/ace/keylayout/keylayout/qwerty.kl:system/usr/keylayout/qwerty.kl ignored.
build/core/Makefile:43: warning: overriding commands for target `/home/martin/SchutzhundAOKP/out/target/product/ace/system/etc/AudioBTID.csv'
build/core/Makefile:43: warning: ignoring old commands for target `/home/martin/SchutzhundAOKP/out/target/product/ace/system/etc/AudioBTID.csv'
PRODUCT_COPY_FILES vendor/aokp/prebuilt/bootanimation/bootanimation_480_800.zip:system/media/bootanimation.zip ignored.
No private recovery resources for TARGET_DEVICE ace
make: *** No rule to make target `/home/martin/SchutzhundAOKP/out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/classes.jar', needed by `/home/martin/SchutzhundAOKP/out/target/common/obj/APPS/Calculator_intermediates/classes-full-debug.jar'. Stop.
make: Leaving directory `/home/martin/SchutzhundAOKP'
[email protected]:~/SchutzhundAOKP$
[/LIST]
espmartin said:
Google search suggests java version issues, but I've verified I'm running it as recommended... Frustrating!
Android 4.2.2/AOKP built from source
Click to expand...
Click to collapse
I'm also having exactly this error. And it is really frustrating
[email protected] said:
I'm also having exactly this error. And it is really frustrating
Click to expand...
Click to collapse
My fix was to use different repos.
Using my own Android Open Kang Project - (4.4.2 Kitkat) build
espmartin said:
My fix was to use different repos.
Using my own Android Open Kang Project - (4.4.2 Kitkat) build
Click to expand...
Click to collapse
What do you mean by different repos? Device? Kernel? or Just Packages app?
I've kept the same device/kernels
Using my own Android Open Kang Project - (4.4.2 Kitkat) build
espmartin said:
I've kept the same device/kernels
Using my own Android Open Kang Project - (4.4.2 Kitkat) build
Click to expand...
Click to collapse
You mean you completely sync an another Rom?
Hey, I just ran into the same issue with no clue yet so resolve this problem. I just wondered if someone came up with a solution in the meantime and could post some information about the issue
UPDATE: I figured out at least what the problem in my case was. Apparently, removing the project "platform/development" from the manifest was not a good idea. Well, I learned my lesson.
This is the line of the local_manifest.xml which should arouse suspection:
Code:
<remove-project path="development" name="platform/development" />
Hello,
I am a noob and i am trying to learn to port make custom Roms etc. I am trying to port CM 10 to Lg L7 2 (p710). I downloaded the original source code from lg website (4.1.2 Jelly Bean) and the corresponding open source android from git with repo sync (the version i needed 4.1.2_r1). Followed Lg instruction to build AOSP and at the last step when i am using the command make -j4 this stupid error blows everything. I searched the Sun Java 1.6 but on Ubuntu forums it says that is discontinued. Please help. You have the log down. Thank you.
[email protected]:~/WORKING_DIRECTORY$ make -j4
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.1.2
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.11.0-19-generic-x86_64-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=JZO54K
OUT_DIR=out
============================================
Checking build tools versions...
************************************************************
You are attempting to build with the incorrect version
of java.
Your version is: java version "1.6.0_30".
The correct version is: Java SE 1.6.
Please follow the machine setup instructions at
https://source.android.com/source/download.html
************************************************************
build/core/main.mk:141: *** stop. Stop.
@christi9503 http://forum.xda-developers.com/showthread.php?t=2464683 read the bit up until setting up repo which you've already done. Android needs a specific Java version
HTCDreamOn said:
@christi9503 http://forum.xda-developers.com/showthread.php?t=2464683 read the bit up until setting up repo which you've already done. Android needs a specific Java version
Click to expand...
Click to collapse
Amazing man solved pretty fast. I understand i needed a different version but all the infos i found were ambiguous. Thanks a tone really helpfull
Hi all,
I used the device, hardware, and kernel trees as given in the pastebin link in the legacy-xperia github
After applying munjeni's patches, I tried to compile. I got this error.
bootable/recovery/ui.c: In function 'update_leds':
bootable/recovery/ui.c:768:42: error: 'RED_LED_FILE' undeclared (first use in this function)
bootable/recovery/ui.c:768:42: note: each undeclared identifier is reported only once for each function it appears in
bootable/recovery/ui.c:769:42: error: 'GREEN_LED_FILE' undeclared (first use in this function)
make: *** [/home/fadhil/android/pac/out/target/product/nypon/obj/EXECUTABLES/recovery_intermediates/ui.o] Error 1
Click to expand...
Click to collapse
From what I saw in ui.c, the affected section is telling the colour of the charging led to change from red to green when battery level increases above 90%.
How do I resolve this error?
I think I have found the reason for the error. When the patches were applied, they produced errors.
What is the cause of this? Does another working set of patches exist?
MuffinIsCute said:
I think I have found the reason for the error. When the patches were applied, they produced errors.
What is the cause of this? Does another working set of patches exist?
Click to expand...
Click to collapse
see here
https://github.com/munjeni/android_hardware_semc/blob/master/patches/bootable_recovery.patch#L30
this is the line causing problem.
alwaysadeel said:
see here
https://github.com/munjeni/android_hardware_semc/blob/master/patches/bootable_recovery.patch#L30
this is the line causing problem.
Click to expand...
Click to collapse
You mean it should be changed to pac_nypon?
One more question here: I tried to use the device hardware and kernel trees from the aosx project instead. However, it was unable to compile as the file cm.mk was missing. Is it alright to just copy the cm.mk file over from the sources suggested in percy's pastebin? Or do I have to modify it to point somewhere else?
MuffinIsCute said:
You mean it should be changed to pac_nypon?
One more question here: I tried to use the device hardware and kernel trees from the aosx project instead. However, it was unable to compile as the file cm.mk was missing. Is it alright to just copy the cm.mk file over from the sources suggested in percy's pastebin? Or do I have to modify it to point somewhere else?
Click to expand...
Click to collapse
xperiaste github is already setup to build cm, it uses aosx trees. use it!
github.com/XperiaSTE
Sent from my Nexus 7
Cherrypick this- https://github.com/XperiaSTE/androi...mmit/bf7216061b2da51c18ecbe4d8f980e8a7c85be01
Cheers,
AJ
Abhinav2 said:
Cherrypick this- https://github.com/XperiaSTE/androi...mmit/bf7216061b2da51c18ecbe4d8f980e8a7c85be01
Cheers,
AJ
Click to expand...
Click to collapse
Stupid question here: How do I cherry pick?
Never mind. I'm still wondering why the change got reverted.
alwaysadeel: You're a lifesaver. I didn't know that XperiaSTE existed. Here's a thank you.
MuffinIsCute said:
Stupid question here: How do I cherry pick?
Never mind. I'm still wondering why the change got reverted.
Click to expand...
Click to collapse
Because when I was part of that team, I told i4g to do that since we were testing something.
AJ
Abhinav2 said:
Because when I was part of that team, I told i4g to do that since we were testing something.
AJ
Click to expand...
Click to collapse
Noob question: The only trees needed are the nypon, the montblanc, the kernel and hardware sources and the vendor tree right? Is that correct?
MuffinIsCute said:
Noob question: The only trees needed are the nypon, the montblanc, the kernel and hardware sources and the vendor tree right? Is that correct?
Click to expand...
Click to collapse
Yeah, more or less.
Cheers,
AJ
Abhinav2 said:
Yeah, more or less.
Cheers,
AJ
Click to expand...
Click to collapse
I tried compiling with the XperiaSTE trees and got this error
[email protected]:~/android/zz$ ./build-pac.sh nypon
No external out, using default (/home/fadhil/android/zz/out)
./build-pac.sh: command substitution: line 117: syntax error near unexpected token `fi'
./build-pac.sh: command substitution: line 117: `shellif[-s~/PACname];thencat~/PACname;elseecho"Beta-1.0";fi)'
Building P A C v..
Looking for PAC product dependencies
Check for XperiaSTE/android_device_sony_nypon in local_manifest
XperiaSTE/android_device_sony_nypon already in local_manifest
Check for XperiaSTE/android_device_sony_montblanc-common in local_manifest
XperiaSTE/android_device_sony_montblanc-common already in local_manifest
Check for XperiaSTE/android_kernel_sony_u8500 in local_manifest
XperiaSTE/android_kernel_sony_u8500 already in local_manifest
Check for XperiaSTE/android_hardware_ste-sony in local_manifest
XperiaSTE/android_hardware_ste-sony already in local_manifest
Check for XperiaSTE/android_vendor_sony in local_manifest
XperiaSTE/android_vendor_sony already in local_manifest
Downloading prebuilts
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 178 100 178 0 0 456 0 --:--:-- --:--:-- --:--:-- 656
100 502k 100 502k 0 0 413k 0 0:00:01 0:00:01 --:--:-- 413k
Archive: vendor/cm/proprietary/Term.apk
inflating: vendor/cm/proprietary/lib/armeabi/libjackpal-androidterm4.so
inflating: vendor/cm/proprietary/lib/mips/libjackpal-androidterm4.so
inflating: vendor/cm/proprietary/lib/x86/libjackpal-androidterm4.so
Setting up environment
including device/generic/armv7-a-neon/vendorsetup.sh
including device/generic/goldfish/vendorsetup.sh
including device/generic/mips/vendorsetup.sh
including device/generic/x86/vendorsetup.sh
including device/sony/nypon/vendorsetup.sh
including vendor/cm/vendorsetup.sh
including vendor/pac/vendorsetup.sh
including vendor/pa/vendorsetup.sh
including sdk/bash_completion/adb.bash
including vendor/cm/bash_completion/git.bash
including vendor/cm/bash_completion/repo.bash
Lunching device
Looking for dependencies
Dependencies file not found, bailing out.
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
CM_VERSION=11-20140606-UNOFFICIAL-nypon
TARGET_PRODUCT=pac_nypon
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.8.0-41-generic-x86_64-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=KVT49L
OUT_DIR=/home/fadhil/android/zz/out
============================================
Starting compilation
Using the default GCC Optimization Level, O2
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
CM_VERSION=11-20140606-UNOFFICIAL-nypon
TARGET_PRODUCT=pac_nypon
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.8.0-41-generic-x86_64-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=KVT49L
OUT_DIR=/home/fadhil/android/zz/out
============================================
Checking build tools versions...
/home/fadhil/android/zz/out/target/product/nypon/obj/APPS/SignatureTest_intermediates
external/chromium_org/GypAndroid.linux-arm.mk:109: external/chromium_org/third_party/WebKit/Source/bindings/bindings_sources.target.linux-arm.mk: No such file or directory
external/chromium_org/GypAndroid.linux-arm.mk:120: external/chromium_org/third_party/WebKit/Source/core/make_core_derived_sources.target.linux-arm.mk: No such file or directory
external/chromium_org/GypAndroid.linux-arm.mk:135: external/chromium_org/third_party/WebKit/Source/devtools/concatenated_devtools_layers_js.target.linux-arm.mk: No such file or directory
external/chromium_org/GypAndroid.linux-arm.mk:147: external/chromium_org/third_party/WebKit/Source/heap/blink_heap.target.linux-arm.mk: No such file or directory
external/chromium_org/GypAndroid.linux-arm.mk:148: external/chromium_org/third_party/WebKit/Source/heap/blink_heap_asm_stubs.target.linux-arm.mk: No such file or directory
external/chromium_org/GypAndroid.linux-arm.mk:150: external/chromium_org/third_party/WebKit/Source/platform/blink_arm_neon.target.linux-arm.mk: No such file or directory
external/chromium_org/GypAndroid.linux-arm.mk:151: external/chromium_org/third_party/WebKit/Source/platform/blink_common.target.linux-arm.mk: No such file or directory
external/chromium_org/GypAndroid.linux-arm.mk:152: external/chromium_org/third_party/WebKit/Source/platform/blink_platform.target.linux-arm.mk: No such file or directory
external/chromium_org/GypAndroid.linux-arm.mk:153: external/chromium_org/third_party/WebKit/Source/platform/blink_prerequisites.target.linux-arm.mk: No such file or directory
external/chromium_org/GypAndroid.linux-arm.mk:154: external/chromium_org/third_party/WebKit/Source/platform/make_platform_derived_sources.target.linux-arm.mk: No such file or directory
external/chromium_org/GypAndroid.linux-arm.mk:159: external/chromium_org/third_party/WebKit/public/blink_generate_devtools_grd.target.linux-arm.mk: No such file or directory
external/chromium_org/GypAndroid.linux-arm.mk:161: external/chromium_org/third_party/angle/src/preprocessor.target.linux-arm.mk: No such file or directory
external/chromium_org/GypAndroid.linux-arm.mk:162: external/chromium_org/third_party/angle/src/translator.target.linux-arm.mk: No such file or directory
external/chromium_org/GypAndroid.linux-arm.mk:228: external/chromium_org/v8/tools/gyp/generate_trig_table.host.linux-arm.mk: No such file or directory
"ebtables is disabled on this build"
find: `src': No such file or directory
build/core/base_rules.mk:134: *** prebuilts/misc/common/ub-uiautomator: MODULE.TARGET.JAVA_LIBRARIES.ub-uiautomator already defined by frameworks/uiautomator. Stop.
/home/fadhil/android/zz/out/target/product/nypon/pac_nypon-ota-eng.fadhil.zip doesn't exist!
Click to expand...
Click to collapse
I have no idea what happened.
MuffinIsCute said:
I tried compiling with the XperiaSTE trees and got this error
I have no idea what happened.
Click to expand...
Click to collapse
there are changes in uiautomator in 4.4.3 . repo sync again maybe u have a broken sync
Sent from my Nexus 7
MuffinIsCute said:
I tried compiling with the XperiaSTE trees and got this error
I have no idea what happened.
Click to expand...
Click to collapse
We(PAC team) are currently merging 4.4.3 changes so please don't build until repos are stable.
Cheers,
AJ
MuffinIsCute said:
I tried compiling with the XperiaSTE trees and got this error
I have no idea what happened.
Click to expand...
Click to collapse
from base source directory
cd prebuilts/misc
git revert -m1 490e397ee8b37485ac19967974758dee1db28673
or
rm frameworks/uiautomator
the issue is CM is using a prebuilt version and PAC still has the AOSP from source method in place. I'm using git revert because I prefer the from source method over a prebuilt method. Haven't tested either, but both are technically correct....
skeevydude said:
from base source directory
cd prebuilts/misc
git revert -m1 490e397ee8b37485ac19967974758dee1db28673
or
rm frameworks/uiautomator
the issue is CM is using a prebuilt version and PAC still has the AOSP from source method in place. I'm using git revert because I prefer the from source method over a prebuilt method. Haven't tested either, but both are technically correct....
Click to expand...
Click to collapse
Same error appeared after I used rm -rf frameworks/uiautomator.Resyncing repo.
MuffinIsCute said:
Same error appeared after I used rm -rf frameworks/uiautomator.Resyncing repo.
Click to expand...
Click to collapse
Even after you do that, a crap ton of things need to be merged. Check the gerrit, but all the 4.4.3 merges need to be picked in as well as the main repo manifest being majorly updated. Just got a build error 192 mins in with frameworks/base, that's with all the 4.4.3 picks, Archidroid, gcc 4.8, and the main manifest updates. I normally suck with Java, but I actually figured the error out on my own -- illegal statement start -- CM had the same fix my non-programming self came up with...removing a ")". Time to clean and start a new build.
I'm also doing my builds with Archidroid's Optimizations. Once I get it successfully building, I'm gonna submit that to gerrit along with builder selectable GCC (4.6 to 4.10 with some linaros too) versions (I'm currently hiding his Optimizations in the -o3 option, but I'll make his o4 because I can
If you resync the repo after doing the rm -rf command, it'll add that right back in and you'll still get that error...oh, and rm -rf is the fix in PAC's gerrit right now...sync, do modifications, compile,,,,not mod, sync, compile (I made that mistake plenty of times when I first started out kanging)
skeevydude said:
Even after you do that, a crap ton of things need to be merged. Check the gerrit, but all the 4.4.3 merges need to be picked in as well as the main repo manifest being majorly updated. Just got a build error 192 mins in with frameworks/base, that's with all the 4.4.3 picks, Archidroid, gcc 4.8, and the main manifest updates. I normally suck with Java, but I actually figured the error out on my own -- illegal statement start -- CM had the same fix my non-programming self came up with...removing a ")". Time to clean and start a new build.
I'm also doing my builds with Archidroid's Optimizations. Once I get it successfully building, I'm gonna submit that to gerrit along with builder selectable GCC (4.6 to 4.10 with some linaros too) versions (I'm currently hiding his Optimizations in the -o3 option, but I'll make his o4 because I can
If you resync the repo after doing the rm -rf command, it'll add that right back in and you'll still get that error...oh, and rm -rf is the fix in PAC's gerrit right now...sync, do modifications, compile,,,,not mod, sync, compile (I made that mistake plenty of times when I first started out kanging)
Click to expand...
Click to collapse
Wow... that scared me. If I wait a month, do I still have to do this?
MuffinIsCute said:
Wow... that scared me. If I wait a month, do I still have to do this?
Click to expand...
Click to collapse
Maybe for the next week or two, it usually doesn't take that long in-between minor Android version updates...
All the 4.4.3 gerrit picks can be done inside a half an hour, so it's not like it's that hard.
Try a build now.
AJ
Abhinav2 said:
Try a build now.
AJ
Click to expand...
Click to collapse
While I wait for the repo to sync, let me ask a question, regarding ROMs in general. Besides PA, which ROMs allow you to launch an app in floating mode from the recents list? Does PAC have it yet?
Hi folks,
I've been trying to port OmniROM to ZTE's new Nubia Z18 (codename NX606J) but I'm stuck when trying to compile the ROM and need some help and leading advice as I'm new to ROM development as a whole.
I already asked in the Omni specific thread but didn't get an answer up until now. So since I believe this isn't just Omni related, please forgive me to ask again in the general section. :angel:
Device specific source can be found on my GitHub.
Kernel source is taken from nubia directly but forked by me for modifications in the future
Now onto the error I'm experiencing:
I run make -j4 after lunch-ing my device and it fails with:
Code:
[945/945] including vendor/omni/Android.mk ...
packages/apps/Bluetooth/Android.mk: error: Bluetooth (APPS android-arm) missing libbluetooth_jni (SHARED_LIBRARIES android-arm)
Available variants:
libbluetooth_jni (SHARED_LIBRARIES android-arm64)
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
build/make/core/main.mk:833: error: exiting from previous errors.
03:34:57 ckati failed with: exit status 1
If I set ALLOW_MISSING_DEPENDENCIES=true (which I guess is bad practice) I get:
Code:
[ 99% 1390/1391] glob vendor/omni/overlay/common/**/*
ninja: error: '/run/media/curtisy/Solus-Data/omni_nx606j/out/target/product/nx606j/obj_arm/SHARED_LIBRARIES/libbluetooth_jni_intermediates/link_type', needed by '/run/media/curtisy/Solus-Data/omni_nx606j/out/target/product/nx606j/obj/APPS/Bluetooth_intermediates/2ND_jni_link_type', missing and no known rule to make it
03:39:28 ninja failed with: exit status 1
The lunch overview in case that's of any use, looks like this:
Code:
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
TARGET_PRODUCT=omni_nx606j
TARGET_BUILD_VARIANT=user
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=kryo300
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=kryo
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.19.1-98.current-x86_64-Solus-3.9999
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=PQ1A.181105.017.A1
OUT_DIR=/run/media/curtisy/Solus-Data/omni_nx606j/out
============================================
I'm hoping anyone with more experience has some idea as to what's the issue here. Maybe a look at my boardconfig will help, but I'm not sure. (My uneducated guess is that it's trying to compile for arm and arm64 but fails to link libbluetooth_jni to arm?)
Thanks in advance for any help, I'm really grateful for any straw I can hold onto currently.
better ask omni or lineage team my friend~gd luck!
If anyone comes across this in the future. Seems to be some weird setup with how some things use Android.bp and others Android.mk. That and the interaction the two have between each other. A quick fix is to just make it build both by editing the Android.bp file. Worked for me, though this issue doesn't seem to be that prevalent, might be caused by some other configuration issue? This works as quick fix, not sure if having two different binaries has some other negative effects though.
Code:
android/lineage/packages/apps/Bluetooth/jni/Android.bp:
cc_library_shared {
name: "libbluetooth_jni",
compile_multilib: "both", <---------- from "first" -> "both"