yashsingh1/xdaforums huggingface dataset:
[HTC One S] phoenixita:
Put the ~/bin directory in your path of execution

Make sure that the ~/bin directory you just created is in your path of execution so that you can easily run the repo command even when you're not in ~/bin.

Code:

export PATH=${PATH}:~/bin

Pasted from wiki.cyanogenmod:

Put the ~/bin directory in your path of execution

Make sure that the ~/bin directory you just created is in your path of execution so that you can easily run the repo command even when you're not in ~/bin. Assuming you are using the BASH shell, the default in recent versions of Ubuntu, you can set it like this:

$ export PATH=${PATH}:~/bin

Helpful Tip

You can make this change to the path permanent for all future Terminal sessions:

$ gedit ~/.bashrc

This will launch a graphical text editor. Enter

export PATH=${PATH}:~/bin

on its own line, then save the file.
[HTC One S] F-L-Y-E-R:
Is i necessary to be logged in? Because whe I do "repo init -u git://github.com/CyanogenMod/android.git -b cm-11.0" after some loading it says: giterror, please tell me who you are, does it means I need to register on github website?
[HTC One S] WhiTeRhiNo:
Try a

$ git config

And setup a username and email then try again
[HTC One S] F-L-Y-E-R:
Yeh... "repo sync'' killed me, I set up 10gb of partition for ubuntu, was thinking it's gonna be enough and suddenly ran out of space... Idk what to do now really ;D
[HTC One S] WhiTeRhiNo:
Your gonna need at least 50 GB I would say for a complete build to be safe. And really on some repos that's cutting it close lol. U can run the live CD of Ubuntu and off the live CD you can use gparted to resize your partitions. U have to do it from the live CD because it won't resize a partition that is mounted
[HTC One S] F-L-Y-E-R:
Hello again, somehow 'device/htc/ville' folder is not being created after creating 'local manifests' folder and 'sync repo' :?
[HTC One S] WhiTeRhiNo:
Can u show what you local_manifest.xml looks like
[HTC One S] F-L-Y-E-R:
As it says I created 'roomservice.xml' in '/.repo/local manifests/' with text:

<manifest><remote name="github" fetch="git://github.com/"/><project name="CyanogenMod/android_device_htc_ville" path="device/htc/ville" remote="github" revision="cm-11.0"/><project name="CyanogenMod/android_device_htc_s4-common" path="device/htc/s4-common" remote="github" revision="cm-11.0"/><project name="CyanogenMod/android_device_htc_msm8960-common" path="device/htc/msm8960-common" remote="github" revision="cm-11.0"/><project name="CyanogenMod/android_kernel_htc_msm8960" path="kernel/htc/msm8960" remote="github" revision="cm-11.0"/><project name="TheMuppets/proprietary_vendor_htc" path="vendor/htc" remote="github" revision="cm-11.0"/></manifest>

Bye the way, after these steps, I stopped working and turned off my pc, them I came back again, obviously I did repo sync, and when I wanted to continue I found out that nothing was there
[HTC One S] WhiTeRhiNo:
copy and paste everything from the one in the op. It looks like your missing this at the top of yours. <?xml version="1.0" encoding="UTF-8"?>
[HTC One S] F-L-Y-E-R:
No it's actually

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="github"
fetch="git://github.com/" />
<project name="CyanogenMod/android_device_htc_ville" path="ROM/device/htc/ville" remote="github" revision="cm-11.0" />
<project name="CyanogenMod/android_device_htc_s4-common" path="device/htc/s4-common" remote="github" revision="cm-11.0" />
<project name="CyanogenMod/android_device_htc_msm8960-common" path="device/htc/msm8960-common" remote="github" revision="cm-11.0" />
<project name="CyanogenMod/android_kernel_htc_msm8960" path="kernel/htc/msm8960" remote="github" revision="cm-11.0" />
<project name="TheMuppets/proprietary_vendor_htc" path="vendor/htc" remote="github" revision="cm-11.0" />
</manifest>
[HTC One S] Darknites:
I think its not liking the layout. When I used Local it didn't have the bit in bold so have it like this.

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="CyanogenMod/android_device_htc_ville" path="ROM/device/htc/ville" remote="cm" revision="cm-11.0" />
<project name="CyanogenMod/android_device_htc_s4-common" path="device/htc/s4-common" remote="cm" revision="cm-11.0" />
<project name="CyanogenMod/android_device_htc_msm8960-common" path="device/htc/msm8960-common" remote="cm" revision="cm-11.0" />
<project name="CyanogenMod/android_kernel_htc_msm8960" path="kernel/htc/msm8960" remote="cm" revision="cm-11.0" />
<project name="TheMuppets/proprietary_vendor_htc" path="vendor/htc" remote="cm" revision="cm-11.0" />
</manifest>

Edit also remote= seemed wrong so changed that too.
[HTC One S] F-L-Y-E-R:
So your one is correct? Because my one is the one from the thread, meaning that he done it incorrectly?
[HTC One S] Darknites:
Give mine a try but I feel TheMuppets might be wrong so might need to remove that line for now just to see if it syncs right.
[HTC One S] F-L-Y-E-R:
Ok, I made everything work but now I'm stuck when build the rom...

When I type:

lunch

89

device/htc/s4-common/BoardConfigCommon.mk:26: *** missing separator. Stop.

** Don't have a product spec for: 'cm_ville'
** Do you have the right repo manifest?

Or when I type:

brunch ville

device/htc/s4-common/BoardConfigCommon.mk:26: *** missing separator. Stop.

** Don't have a product spec for: 'cm_ville'
** Do you have the right repo manifest?

No such item in brunch menu. Try 'breakfast'

P.S. Where do I have to add the lines about hboot 2.16 because all of these lines: (I added to: device/htc/s4-common/BoardConfigCommon.mk)

cd device/htc/ville

git fetch http://review.cyanogenmod.org/CyanogenMod/android_device_htc_ville refs/changes/47/53647/2 && git cherry-pick FETCH_HEAD

Flashable via normal TWRP

add this line

SKIP_SET_METADATA := true

in device/htc/s4-common/BoardConfigCommon.mk

cd workingdirectory/build

git fetch http://review.cyanogenmod.org/CyanogenMod/android_build refs/changes/59/53559/4 && git cherry-pick FETCH_HEAD
[HTC One S] Darknites:
Did you do the vendorsetup.sh bit?
[HTC One S] F-L-Y-E-R:
No I missed it because I thought it's not needed for CM rom, but is this why I get those errors?
[HTC One S] Darknites:
Think so but not sure since not done that myself but ya would of thought Ville would of been in a menu to build so you don't have to mess with stuff like that.
[HTC One S] phoenixita:
no need for vendorsetup.sh for cyanogenmod..anway for 2.16 just open boardconfig.mk and past the line where you like.

then in your terminal you'll have to cherry pick. When you have done this you can type in terminal brunch ville!

if you have issue cherry-picking afte the c-p commad give a git commit -a then press ctrl+x.
[HTC One S] $droyd$:
Look at the path for device_ htc_ville... It should be device/htc/ville not ROM/device/htc/ville.. I bet if you look in your working directory there will be a folder named ROM that was created with the ville in it... We call that a derp lol.

And remote should be github not cm you defined it in the beginning as github.

Build command

. build/envsetup.sh && brunch ville

That's it it'll go. If you can't get your manifest straight you can just clone the repos you need and place them where their needed.
[HTC One S] F-L-Y-E-R:
This is what I get when c-p :confused:

error: could not apply 8a10b37... ville: use FUSE sdcard daemon
hint: after resolving the conflicts, mark the corrected paths
hint: with 'git add <paths>' or 'git rm <paths>'
hint: and commit the result with 'git commit'
error: Could not parse conflict hunks in rootdir/etc/fstab.qcom
error: Could not parse conflict hunks in rootdir/etc/init.target.rc

P.S. Even with failind c-p I tried to build and now I get this error:

No private recovery resources for TARGET_DEVICE ville
build/core/Makefile:1387: *** empty variable name. Stop.

EDIT: I think I fixed all the problems and I built the rom, so what's next? There's no any .zip in '/out/target/product/ville' is this how it suppose to be or something is wrong?
[HTC One S] F-L-Y-E-R:
Oh I think it didn't finish building...

Now I'm stuck on:

[/home/arcioma/android/system/out/target/product/ville/obj/GYP/shared_intermediates/ui/gl/jni/Surface_jni.h] Error 1
[HTC One S] phoenixita:
for cyanogenmod you are ok with this guide.

before sarting the build(just for 2.16

cd device/htc/ville
git fetch http://review.cyanogenmod.org/CyanogenMod/android_device_htc_ville refs/changes/47/53647/2 && git cherry-pick FETCH_HEAD
croot
cd build
git fetch http://review.cyanogenmod.org/CyanogenMod/android_build refs/changes/59/53559/4 && git cherry-pick FETCH_HEAD
git commit -a
Now you have to press ctrl+x

And add this line

SKIP_SET_METADATA := true

in device/htc/s4-common/BoardConfigCommon.mk

brunch ville

It should finish with no problems.
[HTC One S] F-L-Y-E-R:
what is this for:

make bacon
make

Because I thought the problem is in them and I tried 'make bacon' it's taking ages, still loading :eek:

Edit: It's been ~3 hours and still processing :eek:
[HTC One S] F-L-Y-E-R:
Another error, once again...

File "../../base/android/jni_generator/jni_generator.py", line 457, in __init__
contents[1]).group('class_name')
AttributeError: 'NoneType' object has no attribute 'group'

Any thoughts?
[HTC One S] $droyd$:
My thought would be try linking the actual error and what led up to it.. No one will ever be able to help you if you just link 2 or three lines compilation errors are usually huge and several lines are needed to decipher the problem.. Try using paste bin and copying the entire terminal window worth of info and pasting it there.. Then you can link something worth looking at.. If your building cm and your getting errors its likely something you personally did or didn't do cm builds with one command all the way through without errors..
[HTC One S] F-L-Y-E-R:
Ok, IMO that's where it begins..:

Gyp action: Generating JNI bindings from /home/arcioma/android/system/prebuilts/sdk/17/android.jar/android/view/Surface.class (/home/arcioma/android/system/out/target/product/ville/obj/GYP/shared_intermediates/ui/gl/jni/Surface_jni.h)
Traceback (most recent call last):
File "../../base/android/jni_generator/jni_generator.py", line 1070, in <module>
sys.exit(main(sys.argv))
File "../../base/android/jni_generator/jni_generator.py", line 1066, in main
options.optimize_generation)
File "../../base/android/jni_generator/jni_generator.py", line 1001, in GenerateJNIHeader
jni_from_javap = JNIFromJavaP.CreateFromClass(input_file, namespace)
File "../../base/android/jni_generator/jni_generator.py", line 514, in CreateFromClass
jni_from_javap = JNIFromJavaP(stdout.split('\n'), namespace)
File "../../base/android/jni_generator/jni_generator.py", line 457, in __init__
contents[1]).group('class_name')
AttributeError: 'NoneType' object has no attribute 'group'
make: *** [/home/arcioma/android/system/out/target/product/ville/obj/GYP/shared_intermediates/ui/gl/jni/Surface_jni.h] Error 1

EDIT: this issue fixed, something was wrong with java configuration
[HTC One S] F-L-Y-E-R:
Someone who had this problem, maybe knows the solution?

[/home/arcioma/android/system/out/target/product/ville/obj/SHARED_LIBRARIES/libwebviewchromium_intermediates/LINKED/libwebviewchromium.so] Error 1
[HTC One S] F-L-Y-E-R:
Omg I set up 60gb drive and I ran out of space lol? Maybe there's something that I can delete?
[HTC One S] phoenixita:
You need more space. But you can delete unneeded devices...
[HTC One S] F-L-Y-E-R:
can you tell me where are them devices?
[HTC One S] F-L-Y-E-R:
Now something serious:

Package target files: /home/arcioma/android/out/target/product/ville/obj/PACKAGING/target_files_intermediates/cm_ville-target_files-7246849067.zip
Package OTA: /home/arcioma/android/out/target/product/ville/cm_ville-ota-7246849067.zip
MKBOOTIMG= \
./build/tools/releasetools/ota_from_target_files -v \
-p /home/arcioma/android/out/host/linux-x86 \
-k build/target/product/security/testkey \
--backup=true \
--override_device=auto \
/home/arcioma/android/out/target/product/ville/obj/PACKAGING/target_files_intermediates/cm_ville-target_files-7246849067.zip /home/arcioma/android/out/target/product/ville/cm_ville-ota-7246849067.zip
unzipping target target-files...
running: unzip -o -q /home/arcioma/android/out/target/product/ville/obj/PACKAGING/target_files_intermediates/cm_ville-target_files-7246849067.zip -d /tmp/targetfiles-nuw94D
unzip: cannot find or open /home/arcioma/android/out/target/product/ville/obj/PACKAGING/target_files_intermediates/cm_ville-target_files-7246849067.zip, /home/arcioma/android/out/target/product/ville/obj/PACKAGING/target_files_intermediates/cm_ville-target_files-7246849067.zip.zip or /home/arcioma/android/out/target/product/ville/obj/PACKAGING/target_files_intermediates/cm_ville-target_files-7246849067.zip.ZIP.

ERROR: failed to unzip input target-files "/home/arcioma/android/out/target/product/ville/obj/PACKAGING/target_files_intermediates/cm_ville-target_files-7246849067.zip"

make: *** [/home/arcioma/android/out/target/product/ville/cm_ville-ota-7246849067.zip] Error 1
[HTC One S] phoenixita:
2.16 is no more buildable due to changes in CM...sorry...

I meant the cherry pick for making every rom flashable with every recovery..
[HTC One S] F-L-Y-E-R:
So what actually happened? Did CM blocked something? Or it's just now, maybe someone will find a way to make it or 2.16 is definitely dead :confused:
[HTC One S] Hai96:
Error

Iam getting this Error and dont know how to deal with it..

Do you have any solutions for me?I looked in the other devices folders but i didnt saw any diffrences...

View attachment 2517873
[HTC One S] ilbarone87:
Anyone get this error?

Assembler messages:
Fatal error: can't create drivers/thermal/intelli/.tmp_msm_thermal.o: File o directory non esistente
/home/ilbarone87/PAkk/system/kernel/htc/msm8960/drivers/thermal/intelli/msm_thermal.c:604:1: fatal error: error writing to -: Broken pipe
compilation terminated.
make[4]: *** [drivers/thermal/intelli/msm_thermal.o] Errore 1
make[3]: *** [drivers/thermal] Errore 2
make[2]: *** [drivers] Errore 2
make[1]: *** [sub-make] Errore 2
make[1]: uscita dalla directory "/home/ilbarone87/PAkk/system/kernel/htc/msm8960
[HTC One S] phoenixita:
if you are trying mahdi rom look at this! https://github.com/rsbear/mahdi_device_htc_evita but the dev has not managed to build it for ville.
[HTC One S] dd98:
how do you build in windows 7 using Cygwin to try build
[HTC One S] drkxyz:
Did you build over a network file system like NFS? Looks like the connection is down and the build process cannot access the directory ...
[HTC One S] ilbarone87:
No, just followed the guidelines in OP

Inviato dal mio One S utilizzando Tapatalk
[HTC One S] phoenixita:
What rom are you trying?
[HTC One S] ilbarone87:
Modded Paranoid, I used the rmbq mk file as base and changed the necessary stuffs to fit it for ville

Inviato dal mio One S utilizzando Tapatalk
[HTC One S] phoenixita:
Can't help you :/
[HTC One S] drkxyz:
Building CM11 for hboot 2.16

OK, I got several requests on how to built CM11 or other roms for hboot 2.16. Basically its all in the OP, but you have to use updated cherry picks for the new memory layout and TWRP support

- follow instructions to setup the CM11 repository and download CM11 sources either from the OP or from

http://wiki.cyanogenmod.org/w/Build_for_ville

- before issuing the breakfast ville command apply the two cherry picks from

- http://review.cyanogenmod.org/#/c/53647/ and from

- http://review.cyanogenmod.org/#/c/53559/

always use the latest patch set

- Change into the directory given in the Project line, e.g.

system/devices/htc/ville or system/built

- click cherry-pick in patch set 9 and patch set 6, respectively and copy the git-line into the shell (in the corresponding directory)

- also check whether the patches have been applied correctly

- finally insert the line

SKIP_SET_METADATA := true

into the file device/htc/s4-common/BoardConfigCommon.mk

- after that issue the commands

breakfast ville and

brunch ville

Btw. I use an Ubuntu Linux with an Oracle Java 7 installation (from here: http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html) which always works. Before each rebuilt, I remove the last build (make clean) and the whole system/device and system/built directories and issue the command "repo sync" to update the sources (the device/built directories are also redownloaded). This makes sure that there are no merge problems or conflicts with updated sources.

Remember that you have to apply the cherry picks again before the next built ...

Hope this helps and good luck
[HTC One S] phoenixita:
updated patch sets! :)

Thanks now building bs4.4 for 2.16!
[HTC One S] Rapier:
[MENTION=3921603]phoenixita[/MENTION]: I am stuck somwhere at the begining... after the first repo sync you said:

I did that. After this, next step is to issue a second repo sync. Done that as well...problem is that no folders are created in "device". I get only a "common" folder, no "HTC" no nothing. the second repo sync command should be launched from the same working folder in terminal or ai should change directory to that new local manifest?
[HTC One S] rc420head:
All sync commands are done from working folder (home/username/foldername) what are you building?

----------------------------

Candykat One S

Taste The Sweetness!
[HTC One S] Rapier:
That's where I've issued them but this is my first try ever :) Never build anything befor but I thought I should start.

I've started with Liquid since it was a ROM I liked alot and also it was the one used as example so I thought it'll be easier. The first repo sync lasted about 2 hrs I think and while it was running I've created the local manifest folder and the xml file just to be prepared for the second repo sync. Could this be the problem?

Also at the repo init step there are 3 lines but from the op I understood I should use the one for the ROM I am building...the line for Liquid is the second. I've run all 3 lines but last one was the one for Liquid cause I thought it should be the last init.

Sent from nowhere over the air..
[HTC One S] rc420head:
Ok I'm at work now but try deleting your working folder or if you have room make new one

1. repo init -u git://github.com/LiquidSmooth/android.git -b kitkat

2.if not there make folder Local_manifests and add xml (I'm not sure what liquid looks for slim uses slim_manifest.xml, cm uses roomservice.xml)

3.then repo sync

Here's the one I use https://www.dropbox.com/s/p8o8zd87317a4iw/slim_manifest.xml

----------------------------

Candykat One S

Taste The Sweetness!
[HTC One S] Rapier:
Oh... I used roomservice cause this it was in the example and it was said it's working. Ok, so I can do repo sync only once after adding the xml not 2 times.

Now I must find out how to add that BT patch :)

Sent from nowhere over the air..
[HTC One S] rc420head:
You can repo sync all you want it didn't add the files because it was looking for a different file name not roomservice.xml

For BT patch it's so small I just copy and pasted the change to the file manually.

----------------------------

Candykat One S

Taste The Sweetness!
[HTC One S] phoenixita:
BT èatch is very easy.

cd external/bluetooth/bluedroid

then copy and press enter you have to copy the cherry-pick command you can find on the aosp gerrit.
[HTC One S] phoenixita:
I think this happens cause mahdi is based on AOSP and you are using a CM based tree.
[HTC One S] Hai96:
Thanks for the tip, didn't know that there are any differences between the device trees.

Can you give me a link to an AOSP based tree or say how to find one?

Gesendet von meinem HTC One S mit Tapatalk
[HTC One S] phoenixita:
AOSP on ville is not possible. droyd tried porting it but he was not able doing it. Sorry...
[HTC One S] Hai96:
Error

[MENTION=3921603]phoenixita[/MENTION]

iam getting a few errors while building liquidsmoth. I googled a lot but found nothing....

target thumb C++: components_autofill_core_common_gyp <= external/chromium_org/components/autofill/core/browser/android/personal_data_manager_android.cc
/home/julian/liquid/kernel/htc/msm8960/net/bluetooth/hci_conn.c: In function 'hci_le_ltk_reply':
/home/julian/liquid/kernel/htc/msm8960/net/bluetooth/hci_conn.c:407:28: warning: argument to 'sizeof' in 'memcpy' call is the same pointer type '__u8 *' as the destination; expected '__u8' or an explicit length [-Wsizeof-pointer-memaccess]
error, forbidden warning: hci_conn.c:407
make[4]: *** [net/bluetooth/hci_conn.o] Error 1
make[3]: *** [net/bluetooth] Error 2
make[2]: *** [net] Error 2
make[2]: *** Waiting for unfinished jobs....
[HTC One S] phoenixita:
Never seen an error like this D: Wait a few days and retry...are you using cm kernel tree?
[HTC One S] $droyd$:
Liquid is highly linaro optimized.. You'll need to build with bubba or ice code. .your error is a linaro compatibility one..

Sorry I meant to quote the error comment.

---------- Post added at 03:27 AM ---------- Previous post was at 03:14 AM ----------

Try using slims msm8960-common
[HTC One S] phoenixita:
Thanks for the help droyd!
[HTC One S] Hai96:
Iam tried it now with slims msm8960-common but i get an error after the choosing the device which i want to build. I found no solution in google so I ask here :)

Which would you like? [aosp_arm-eng] 13
build/core/product_config.mk:237: *** _nic.PRODUCTS.[[device/htc/ville/mahdi.mk]]: "device/htc/msm8960-common/msm8960.mk" does not exist. Stop.
[HTC One S] a2441918:
Its because your device folder doesnt have the needed dependancies. Clone msm8960-common to device/htc and try again.
[HTC One S] Hai96:
Iam getting the same error while trying to build Dirty Unicorns for 2.16 hboot. Do you remember how you fixed the Error?

Edit: I tried building liquid for 2.16 and i get the same error, so that have to do something with the commits for 2.16...

Any solution?
[HTC One S] phoenixita:
Maybe che commit si outdated try the latest patch set..

http://review.cyanogenmod.org/#/c/53647/
[HTC One S] Hai96:
You send only one commit but I picked 2 [emoji53]was that false?

I already used patch set 15 of this commit and the newest of the other commit too..
[HTC One S] F-L-Y-E-R:
If you're building ROM for hboot 2.16 you only need to cherry pick 'device/htc/ville' change, you don't need to cherry pick the one for 'device/build' anymore.
[HTC One S] Hai96:
Thanks, now build process is going on :)
[HTC One S] Hai96:
Can anyone help me with this error?

I found the ril_msim.h nowhere on github or my local source...

In file included from device/htc/msm8960-common/libril/ril.cpp:24:0:
device/htc/msm8960-common/libril/telephony/ril.h:19:32: fatal error: telephony/ril_msim.h: No such file or directory
#include <telephony/ril_msim.h>
^
[HTC One S] NGD1:
This guide could be applicable to Pac Rom or miui, maybe even avatar or chameloen? Sorry saw those rims here but they all died basicly. Haha