Help Porting OMNIROM to KLTE (S5) - Omni Q&A

Ive been trying to build it for the last 3 days and been running into errors and fixing some of them.
here is the latest error. I have no clue :
http://paste.omnirom.org/view/fe1c8798 (too long to i decided to paste errors here).
I also get this trying to sync repo:
Fetching projects: 100% (483/483), done.
Traceback (most recent call last):
File "/home/android/android/omni/.repo/repo/main.py", line 506, in <module>
_Main(sys.argv[1:])
File "/home/android/android/omni/.repo/repo/main.py", line 482, in _Main
result = repo._Run(argv) or 0
File "/home/android/android/omni/.repo/repo/main.py", line 161, in _Run
result = cmd.Execute(copts, cargs)
File "/home/android/android/omni/.repo/repo/subcmds/sync.py", line 669, in Execute
if self.UpdateProjectList():
File "/home/android/android/omni/.repo/repo/subcmds/sync.py", line 449, in UpdateProjectList
if project.IsDirty():
File "/home/android/android/omni/.repo/repo/project.py", line 637, in IsDirty
'--refresh')
File "/home/android/android/omni/.repo/repo/project.py", line 2533, in runner
p.stderr))
error.GitError: framework/base update-index: fatal: Not a git repository (or any of the parent directories): .git

look through official nightly?
fumes007 said:
Ive been trying to build it for the last 3 days and been running into errors and fixing some of them.
here is the latest error. I have no clue :
http://paste.omnirom.org/view/fe1c8798 (too long to i decided to paste errors here).
I also get this trying to sync repo:
Fetching projects: 100% (483/483), done.
Traceback (most recent call last):
File "/home/android/android/omni/.repo/repo/main.py", line 506, in <module>
_Main(sys.argv[1:])
File "/home/android/android/omni/.repo/repo/main.py", line 482, in _Main
result = repo._Run(argv) or 0
File "/home/android/android/omni/.repo/repo/main.py", line 161, in _Run
result = cmd.Execute(copts, cargs)
File "/home/android/android/omni/.repo/repo/subcmds/sync.py", line 669, in Execute
if self.UpdateProjectList():
File "/home/android/android/omni/.repo/repo/subcmds/sync.py", line 449, in UpdateProjectList
if project.IsDirty():
File "/home/android/android/omni/.repo/repo/project.py", line 637, in IsDirty
'--refresh')
File "/home/android/android/omni/.repo/repo/project.py", line 2533, in runner
p.stderr))
error.GitError: framework/base update-index: fatal: Not a git repository (or any of the parent directories): .git
Click to expand...
Click to collapse
why not use the official nightly as a base and check through bugs and fix. bluetooth isnt working for latest omnirom nightly from nov 18 2014. use it as reference.

halo12lol said:
why not use the official nightly as a base and check through bugs and fix. bluetooth isnt working for latest omnirom nightly from nov 18 2014. use it as reference.
Click to expand...
Click to collapse
Lol, I have grown further than I did when I posted this. ?

Related

[Q] [CM7][SOURCE] Build CM7 [NEED HELP]

[email protected]:~/android/system$ . build/envsetup.sh
including device/motorola/jordan-common/vendorsetup.sh
including device/samsung/totoro/vendorsetup.sh
including vendor/cyanogen/vendorsetup.sh
[email protected]:~/android/system$ lunch
You're building on Linux
Lunch menu... pick a combo:
1. full-eng
2. full_x86-eng
3. simulator
4. totoro-eng
5. totoro-userdebug
6. cyanogen_generic-eng
Which would you like? [full-eng] 5
build/core/product_config.mk:196: *** _nic.PRODUCTS.[[vendor/cyanogen/products/cyanogen_ace.mk]]: "device/htc/ace/ace.mk" does not exist. Stop.
Traceback (most recent call last):
File "build/tools/roomservice.py", line 24, in <module>
device = product[product.index("_") + 1:]
ValueError: substring not found
build/core/product_config.mk:196: *** _nic.PRODUCTS.[[vendor/cyanogen/products/cyanogen_ace.mk]]: "device/htc/ace/ace.mk" does not exist. Stop.
** Don't have a product spec for: 'totoro'
** Do you have the right repo manifest?
Can anyone tell me what's wrong with this?
P.S. I've copied the cyanogen_totoro.mk in vendor/cyanogen/products

[Q] [hammerhead] Problems building from source

Hey, first off I'm still new to this, so learning as I go, I've built previously for Mako but having a bit of trouble building for Hammerhead (Nexus 5) using Ubuntu 12.04 64bit
Seems to be a error where the script can't find the file/directory, but I haven't had any repo sync errors or anything.
(full log: http://pastebin.com/DSzDJDRb)
Error seems to be located
Code:
mkdir -p /home/parker/android/omni/out/target/product/hammerhead/obj/GYP/shared_intermediates/blink; cd external/chromium_org/third_party/WebKit/Source/core; python scripts/rule_bison.py xml/XPathGrammar.y "/home/parker/android/omni/out/target/product/hammerhead/obj/GYP/shared_intermediates/blink" bison
target thumb C++: third_party_WebKit_Source_wtf_wtf_gyp <= external/chromium_org/third_party/WebKit/Source/wtf/CryptographicallyRandomNumber.cpp
Traceback (most recent call last):
File "scripts/rule_bison.py", line 75, in <module>
returnCode = subprocess.call([bisonExe, '-d', '-p', prefix, inputFile, '-o', outputCpp])
File "/usr/lib/python2.7/subprocess.py", line 524, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1308, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
make: *** [/home/parker/android/omni/out/target/product/hammerhead/obj/GYP/shared_intermediates/blink/CSSGrammar.cpp] Error 1
make: *** Waiting for unfinished jobs....
Traceback (most recent call last):
File "scripts/rule_bison.py", line 75, in <module>
returnCode = subprocess.call([bisonExe, '-d', '-p', prefix, inputFile, '-o', outputCpp])
File "/usr/lib/python2.7/subprocess.py", line 524, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1308, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
target thumb C++: third_party_WebKit_Source_wtf_wtf_gyp <= external/chromium_org/third_party/WebKit/Source/wtf/CurrentTime.cpp
make: *** [/home/parker/android/omni/out/target/product/hammerhead/obj/GYP/shared_intermediates/blink/XPathGrammar.cpp] Error 1
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

[Q] Compiling CM for my d802

Hi all,
I'm trying to build CyanogenMod for intl G2 (the only change I've made is to add halo)
for the repo init I've done:
Code:
repo init -u git://github.com/CyanogenMod/android.git -b cm-11.0 -g all,-notdefault,d802,lge
And then repo sync -j8
After that, like I've said, I've added halo.
And now I'm trying to build by doing:
Code:
$ source build/envsetup.sh
$ breakfast d802
but the only things I get is:
Code:
[email protected]:~/CM/G2# breakfast d802
including vendor/cm/vendorsetup.sh
build/core/product_config.mk:238: *** _nic.PRODUCTS.[[device/lge/d802/cm.mk]]: "device/lge/g2-common/g2.mk" does not exist. Arrêt.
Device d802 not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Traceback (most recent call last):
File "build/tools/roomservice.py", line 76, in <module>
result = json.loads(urllib.request.urlopen(githubreq).read().decode())
File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 448, in error
return self._call_chain(*args)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 403: Forbidden
build/core/product_config.mk:238: *** _nic.PRODUCTS.[[device/lge/d802/cm.mk]]: "device/lge/g2-common/g2.mk" does not exist. Arrêt.
** Don't have a product spec for: 'cm_d802'
** Do you have the right repo manifest?
I don't understand because when I take a look to device, there is no lge/d802 directory. By doing the init command, I would have to download specific files
also lunch and breakfast command gave me the same error...
Do you have an idea where I'm wrong and what can I do ? I think I've to download device specific files but how can I do this (if this is the error), normally before building, the files are downloaded ? I don't see...
Thanks in advance !
Up, if someone can help me :fingers-crossed:
I have the same problem, someone can help?

Error during build

Okay guys so I started to build Omni for the Droid Turbo using existing CM 14 device trees. I got to the point where I was starting the build and had an error pop up. Does anyone know what this may be?
[email protected] ~/omni $ lunch
You're building on Linux
Lunch menu... pick a combo:
1. aosp_arm-eng
2. aosp_arm64-eng
3. aosp_mips-eng
4. aosp_mips64-eng
5. aosp_x86-eng
6. aosp_x86_64-eng
7. omni_quark-userdebug
Which would you like? [aosp_arm-eng] 7
device/generic/motorola/quark/AndroidProducts.mk:18: *** missing separator. Stop.
WARNING: Trying to fetch a device that's already there
Traceback (most recent call last):
File "build/tools/roomservice.py", line 353, in <module>
fetch_device(device)
File "build/tools/roomservice.py", line 321, in fetch_device
git_data = search_gerrit_for_device(device)
File "build/tools/roomservice.py", line 81, in search_gerrit_for_device
device_data = check_repo_exists(git_data, device)
File "build/tools/roomservice.py", line 58, in check_repo_exists
"exiting roomservice".format(device=device))
Exception: quark not found,exiting roomservice
device/generic/motorola/quark/AndroidProducts.mk:18: *** missing separator. Stop.
** Don't have a product spec for: 'omni_quark'
** Do you have the right repo manifest?
DREWHAMM974 said:
Okay guys so I started to build Omni for the Droid Turbo using existing CM 14 device trees. I got to the point where I was starting the build and had an error pop up. Does anyone know what this may be?
[email protected] ~/omni $ lunch
You're building on Linux
Lunch menu... pick a combo:
1. aosp_arm-eng
2. aosp_arm64-eng
3. aosp_mips-eng
4. aosp_mips64-eng
5. aosp_x86-eng
6. aosp_x86_64-eng
7. omni_quark-userdebug
Which would you like? [aosp_arm-eng] 7
device/generic/motorola/quark/AndroidProducts.mk:18: *** missing separator. Stop.
WARNING: Trying to fetch a device that's already there
Traceback (most recent call last):
File "build/tools/roomservice.py", line 353, in <module>
fetch_device(device)
File "build/tools/roomservice.py", line 321, in fetch_device
git_data = search_gerrit_for_device(device)
File "build/tools/roomservice.py", line 81, in search_gerrit_for_device
device_data = check_repo_exists(git_data, device)
File "build/tools/roomservice.py", line 58, in check_repo_exists
"exiting roomservice".format(device=device))
Exception: quark not found,exiting roomservice
device/generic/motorola/quark/AndroidProducts.mk:18: *** missing separator. Stop.
** Don't have a product spec for: 'omni_quark'
** Do you have the right repo manifest?
Click to expand...
Click to collapse
Just add a separator on androidproducts line #18 & error's gone
help plz
Im also getting same error.. im unsing cm tree for aosp 6.0.1
Device is merlin .. im a nood im still learn so please can you say how to solve this error.
Thnks in advace bro
ChinmayXD said:
Just add a separator on androidproducts line #18 & error's gone
Click to expand...
Click to collapse
where can open androidproducts
ChinmayXD said:
Just add a separator on androidproducts line #18 & error's gone
Click to expand...
Click to collapse
What is even a separator
How can I add a separator my English is quite bad

error while repo init

Hellow guys, i have an hP laptop with 16 gigs of ram and enough hdd space. also i am running xubuntu 16.04 where i was previously able to compile custom roms. however recently my hard drive had crashed and i had to recover using easeUS. then i formatted it to exFat. Xubuntu as such is giving me write operations on exFat devices. my problem is now whenever am using repo sync a custom rom source it gives error like
Code:
[email protected]:/media/ayan/Ayan/Mobile/mo/pixel$ repo init -u https://github.com/PixelExperience/manifest -b oreo-mr1
Get https://gerrit.googlesource.com/git-repo/clone.bundle
Get https://gerrit.googlesource.com/git-repo
remote: Finding sources: 100% (5/5)
remote: Total 5 (delta 0), reused 5 (delta 0)
Unpacking objects: 100% (5/5), done.
From https://gerrit.googlesource.com/git-repo
cf7c083..0f2e45a master -> origin/master
Get https://github.com/PixelExperience/manifest
Traceback (most recent call last):
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/main.py", line 531, in <module>
_Main(sys.argv[1:])
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/main.py", line 507, in _Main
result = repo._Run(argv) or 0
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/main.py", line 180, in _Run
result = cmd.Execute(copts, cargs)
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/subcmds/init.py", line 399, in Execute
self._SyncManifest(opt)
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/subcmds/init.py", line 171, in _SyncManifest
m._InitGitDir(mirror_git=mirrored_manifest_git)
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/project.py", line 2292, in _InitGitDir
self._UpdateHooks()
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/project.py", line 2312, in _UpdateHooks
self._InitHooks()
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/project.py", line 2341, in _InitHooks
os.symlink(os.path.relpath(stock_hook, os.path.dirname(dst)), dst)
OSError: [Errno 38] Function not implemented
[email protected]:/media/ayan/Ayan/Mobile/mo/pixel$
any help would be recommended and appreciated
Ayan Uchiha Choudhury said:
Code:
[email protected]:/media/ayan/Ayan/Mobile/mo/pixel$ repo init -u https://github.com/PixelExperience/manifest -b oreo-mr1
Get https://gerrit.googlesource.com/git-repo/clone.bundle
Get https://gerrit.googlesource.com/git-repo
remote: Finding sources: 100% (5/5)
remote: Total 5 (delta 0), reused 5 (delta 0)
Unpacking objects: 100% (5/5), done.
From https://gerrit.googlesource.com/git-repo
cf7c083..0f2e45a master -> origin/master
Get https://github.com/PixelExperience/manifest
Traceback (most recent call last):
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/main.py", line 531, in <module>
_Main(sys.argv[1:])
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/main.py", line 507, in _Main
result = repo._Run(argv) or 0
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/main.py", line 180, in _Run
result = cmd.Execute(copts, cargs)
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/subcmds/init.py", line 399, in Execute
self._SyncManifest(opt)
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/subcmds/init.py", line 171, in _SyncManifest
m._InitGitDir(mirror_git=mirrored_manifest_git)
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/project.py", line 2292, in _InitGitDir
self._UpdateHooks()
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/project.py", line 2312, in _UpdateHooks
self._InitHooks()
File "/media/ayan/Ayan/Mobile/mo/pixel/.repo/repo/project.py", line 2341, in _InitHooks
os.symlink(os.path.relpath(stock_hook, os.path.dirname(dst)), dst)
OSError: [Errno 38] Function not implemented
[email protected]:/media/ayan/Ayan/Mobile/mo/pixel$
any help would be recommended and appreciated
Click to expand...
Click to collapse
Wrong place to ask but yeah, have you installed the latest version of repo and python2 ?
Or before that try `rm -rf .repo` and then init again.
Android Building queries can be discussed here:
https://forum.xda-developers.com/chef-central/android/guide-android-rom-development-t2814763
Yes yes I did both. I also created a new directory and tried repo init. But still
emmm....
Ayan Uchiha Choudhury said:
Yes yes I did both. I also created a new directory and tried repo init. But still
Click to expand...
Click to collapse
Have you found anything to solution ?
SchafferWang said:
Have you found anything to solution ?
Click to expand...
Click to collapse
Exfat was the problem. Formatted to NTFS to fix it

Categories

Resources