yashsingh1/xdaforums huggingface dataset:
[XDA-University] Great_Geek:
Ubuntu software centre and apt-get have repos that they sync to. These are called sources.

Get a source , which has g++ for 13.04 ;)

Clear enough ?
[XDA-University] AndyFox2011:
Haha yeah that makes it much clearer! I understand software sources! I'll go find one in a bit when I finish setting windows up again :(
[XDA-University] AndyFox2011:
Need help.... I couldn't find any software sources for g++

So I had to download the source manually, but I can't get it to install, I've done the ./configure but I just get this error

/bin/bash: line 3: CD: host-x86_x64-unknown-linux-gnu/fixincludes: no such file or directory
make[1]: *** [check-fix includes] Error 1
make[1]: Leaving directory '/home/Andrew/Downloads/gcc-4.5.3'
make: *** [do-check] Error 2

Edit: would it be easier to install the last version of Ubuntu where g++ would install and then upgrade? I think that that should work...
[XDA-University] trevd:
Man! You making this way harder than it has to be :D

sudo apt-add-repository "deb http://archive.ubuntu.com/ubuntu precise main"
sudo apt-add-repository "deb http://archive.ubuntu.com/ubuntu precise main multiverse"
sudo apt-add-repository "deb http://archive.ubuntu.com/ubuntu precise main universe"
sudo apt-get update
sudo apt-get -y install gcc-4.5 g++-4.5 g++4.5-multilib

Just add the precise repositories from the ubuntu archive and that should sort you out, although you don't even need 4.5 specifically as the 4.7 that comes with it does the job perfectly well.
[XDA-University] AndyFox2011:
Edit: you posted that as I posted this.... Haha

Right I'll add those Repo's to Ubuntu, it didn't like the ones launchpad suggested for it, and it still wouldn't find it

I'll try that in a bit, thanks mate :)
[XDA-University] AndyFox2011:
It still doesn't like multilib, but it gets the other 2 so i guess i'll install new gcc and continue on regardless....

Thanks for your help though :)
[XDA-University] AndyFox2011:
What does

trying dependencies only mode for a non-exisiting device tree

mean?
[XDA-University] matt95:
in which step?
[XDA-University] AndyFox2011:
When I've done

./jb-build.sh
cm_ace-userdebug
[XDA-University] matt95:
you downloaded the cyano sources right? try to

breakfast <you devices codename>
repo sync

and then try again your command
[XDA-University] AndyFox2011:
Trying to build jelly beer so I have the CM10.1 repo

CM10.1 doesn't have support for desire HD so I had to add all the files in manually, so breakfast command won't help
[XDA-University] just1nsama:
That is why you re getting the message "trying dependencies only mode for a non-exisiting device tree"

Shoud not prevent you from compiling a build tho, i've done it before, if it doesnt start, it must be for a different reason.
[XDA-University] AndyFox2011:
It does start, I was just wondering what it meant :P

Well when I say it starts it runs for about a minute then spits out this error;

/build/core/product_config.mk:239: *** nice.PRODUCTS.[[device/htc/ace/cm.mk]]: "vendor/com/proprietary/qcom-vendor.mk" does not exist. Stop.
Device ace not found. Attempting yo retrieve device repository from CyanogenMod github.....
[XDA-University] just1nsama:
""vendor/com/proprietary/qcom-vendor.mk" does not exist" means you re missing some vendor files, but i dont know what "com" is, normally its your devices codename, but it looks that for your device, it also requires other vendor files.
[XDA-University] AndyFox2011:
I didn't spot that one - that was auto correct - the directory is

/vendor/qcom/proprietary/qcom-vendor.mk

I think I had this error before and I had to download the qcom vendor stuff, I can't remember where from though :P

Edit: yup had to download qcom vendor files, they are now in place, trying to built again...

Thanks for your helps guys :)

---------- Post added at 02:37 PM ---------- Previous post was at 01:53 PM ----------

Back again already :P

I'm getting this and I don't know what's happening

Copy: /home/Andrew/Beergang/system/out/target/product/ace/system/bin/backup tool.sh
make: *** [ /home/Andrew/Beergang/system/out/target/product/ace/system/etc/apns-conf.xml] Error 127
make: *** Waiting for unfinished jobs....
/bin/bash: xmllint: command not found
make: *** [ /home/Andrew/Beergang/system/out/target/product/ace/system/etc/spn-conf.xml] Error 127
[XDA-University] gabber98:
whit this guide i can build paranoid from cm source?
[XDA-University] cj360:
I'm not sure what xmliint is, maybe its a missing command or app/ toll your pc is missing? Or the spn-conf is missing.
[XDA-University] AndyFox2011:
I'm gonna search the Ubuntu software repo, I had a quick look on Google and it looks like the error 127 is a java error, so I'll update to JDK7 instead of openjdk as open JDK isnt recommended
[XDA-University] trevd:
- I'd say the clue is in the message. ;) command not found.

They're are quick ways of finding what package a tool is in... Currently I use apt-cache search. so

sudo apt-cache search xmllint

gives me 2 choices , 1. bluefish or 2. libxml2-utils , I'd pick number 2 ...... It's surprising that it missing really because libxml2-utils is on the initial install list. You must have jaffed this one good ;) .....
[XDA-University] AndyFox2011:
I'm quite surprised that I missed it off too! I thought it was most likely to be a missing package! But I wasnt sure so though best to check :P I'll replace openjdk anyway though now xD
[XDA-University] ktempleton:
I believe if you replace it with 7 it won't work i would replace it with 6.45 from Oracle never have problems using that jdk
[XDA-University] AndyFox2011:
Okay, thanks for that :)
[XDA-University] matt95:
Hi guys, i run into some problems. I am stuck at the point where i have to extract the blob files from the phone. Now i am using an HTC One X with the latest CyanogenMod RC2. I've connected it to my computer and also adb recognizes it so everything should be fine so far.

The problems start when i navigate to my ../htc/endeavoru folder and run these commands

./proprietary-files.sh
./extract-files.sh

none of them works in fact this is what i get

bash: ./proprietary-files.sh: No such file or directory
bash: ./extract-files.sh: No such file or directory

what do you think guys?
[XDA-University] Great_Geek:
Are these files even present in the directory ? If yes, chmod a+x should do the trick ;)
[XDA-University] matt95:
In the directory i can only see a proprietary-files.txt

---------- Post added at 01:21 PM ---------- Previous post was at 12:29 PM ----------

I've tried adding this

<project name="TheMuppets/proprietary_vendor_htc.git" path="vendor/htc" remote="github" revision="cm-10.1" />

to my local manifest, let's see if this works

---------- Post added at 02:09 PM ---------- Previous post was at 01:21 PM ----------

Ok that solved the problem, compiling right now
[XDA-University] AndyFox2011:
I'll just point out that in the packages requires the XML tools are only there in the Linux mint command, but I had to install them on 13.04 as they didn't come with it, anyone else find this?
[XDA-University] matt95:
finished compiling, let's see if this works ;)
[XDA-University] AndyFox2011:
I love flashing it to see if it works! Its the best bit! :)
[XDA-University] matt95:
yeahhh it works :D :good: next step, ubuntu porting :D which me luck
[XDA-University] AndyFox2011:
Haha good luck!
[XDA-University] devsodin:
Great work.

Thanks for the guide
[XDA-University] AndyFox2011:
I need to install GCC 4.7, I've got the source code downloaded, but the configure and install stuff is far beyond my knowledge, I got the other packages source that it says it builds at the same time (I've forgotten their names) and put them in the main source directory, can anyone help me configure, compile and install it?
[XDA-University] Great_Geek:
What OS are you running ?

A package manager / software centre usually does all the work for you.

AFAIK , you don't need any application's source + build , to build Android ROMs ;)
[XDA-University] AndyFox2011:
I think I do need newer GCC though :P yeah I probably will just use the synaptic package manager to install it
[XDA-University] pharix:
Always stuck for me at some point. And i have restart again.

View attachment 2054832
[XDA-University] matt95:
try

repo sync -j2
[XDA-University] pharix:
will try.

And do you know the total size of this one?

repo init -u git://github.com/CyanogenMod/android.git -b cm-10.1
[XDA-University] matt95:
I have also the endeavoru packeges dowloaded and it weights 7.6Gb, so i would say that i weights about 4-5Gb... but i'm not sure
[XDA-University] reV17:
I've been trying to get this to work all day but it seems I'm missing some files.

"vendor/qcom/proprietary/qcom-vendor.mk" It always asks me for that but that directory doesn't exist nor do I know where to find the files. Any help would be appreciated.
[XDA-University] AndyFox2011:
If its JB your trying to build then;

Git clone this

https://github.com/Mustaavalkosta/android_vendor_qcom_proprietary

Rename the folded to proprietary and put it in /vendor/qcom

If its not JB then I'm not sure they'll work... But you could try anyway

Hope that helps! :)

BTW I don't own those files - its not my github account
[XDA-University] pharix:
This question may sound like little stupid. Is there any other way to download source? Everytime the download is getting error at some point.
[XDA-University] Great_Geek:
If its on github, you can download as zip.

Besides that, you could use git, instead of repo...
[XDA-University] matt95:
can you paste the error? i don't think that downloading them manually would be a good thing
[XDA-University] speed_bot:
Drag the file to the terminal and hit enter simple
[XDA-University] matt95:
I've added a repository to the local manifest and now it's ok :)
[XDA-University] speed_bot:
So you dint have the device configuration downloaded previously?
[XDA-University] matt95:
i missed the extract-files.sh yesterday but before compiling i added the vendor repo so that's not the issue :(

this is the repo i added

<project name="TheMuppets/proprietary_vendor_htc.git" path="vendor/htc" remote="github" revision="cm-10.1"/>
[XDA-University] pharix:
When I download as zip it contain some xml file.

No error message. Everytime stuck at some point and I have to close terminal and restart again.
[XDA-University] matt95:
it should restart where it had stopped though
[XDA-University] driodmaster92:
i have been trying to compile AOKP for epicmtd the ROM compiles and i get a zip but the size is only 34 mb all the common apks like mms ,phone etc are missing and the framework folder is missing too

Terminal Output
[XDA-University] pharix:
Ok.

Or can I compile it without using my phone? I mean can anyone do it for me if I send needed files. I never did such thing before and linux is not so friendly for me.

Is it possible?
[XDA-University] forzaferrari0:
Very good guide,i'll try very soon:)

Inviato dal mio Desire HD con Tapatalk 2
[XDA-University] The_Wolf91:
Hi there!

I've successfully ported a ROM from Nexus 4 thread to my I9000 (galaxysmtd). After flashing it, my phone stucks on boot animation until it blocks himself and my phone seems to be switched on as if it is on launcher homescreen. After a forced reboot, my phone starts regularly, but I have no signal nor wifi nor bluetooth. T_T It seems that I forgot something in "local_manifest.xml".. but I don't know what. Can you help me?

P.S.: phone it's extremely slow, as if it is loading something....
[XDA-University] AndyFox2011:
Can anyone help me with this error?

make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/andrew/Beergang/system/kernel/htc/KangBanged-7x30'
make: *** [TARGET_KERNEL_BINARIES] Error 2
make: *** Waiting for unfinished jobs....
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
[XDA-University] matt95:
what's your device?
[XDA-University] AndyFox2011:
Desire HD
[XDA-University] ktempleton:
Need the part further up look for stop or no rule to make and paste that
[XDA-University] The_Wolf91:
Anyone can tell me why I've build successfully a ported AOKP rom for my I9000 but "dalvik cache" doesn't exist? :eek: I can't even wipe it in recovery...
[XDA-University] ICUDeadNow:
I synced cm10.1 sources in my Sources folder there is two fopder .repo of 8 GB and another folder Is that correct ?
[XDA-University] assassin0408:
What are the minimum requirement of hdd..my machine only got 60gb hdd..lol
[XDA-University] The_Wolf91:
Ok, I made a mistake: dalvik cache exist and all is working except the recovery which cannot wipe anything (data/cache/dalvik) and can't flash because it is unable to mount any partitions (system/data/datadata for example).

What's the problem? Hope you can help me this time...
[XDA-University] AndyFox2011:
Could be that if you didn't port the rom and boot.IMG properly that its messed up the partition table

Edit: Also please note this thread is about Compiling from source code - not porting ROMs - so your in the wrong place to get help
[XDA-University] ICUDeadNow:
any help?

make: *** No rule to make target `frameworks/native/opengl/libs/../../../../device/htc/protou/prebuilt/lib/egl/egl.cfg', needed by `/home/rishabh/cm11/out/target/product/protou/obj/ETC/egl.cfg_intermediates/egl.cfg'. Stop.

make: *** Waiting for unfinished jobs....

host C++: libnativehelper <= libnativehelper/JNIHelp.cpp

rishabh@helicopter:~/cm11$

PS

I named folder cm11 accidentaly ignore that!
[XDA-University] The_Wolf91:
It's an I9000 device, so that's what I added in local_manifest.xml:

<project name="android_device_samsung_galaxysmtd" path="device/samsung/galaxysmtd" remote="cm" revision="cm-10.1"/>

<project name="android_packages_apps_SamsungServiceMode" path="packages/apps/SamsungServiceMode" remote="cm" revision="cm-10.1"/>

<project name="android_device_samsung_aries-common" path="device/samsung/aries-common" remote="cm" revision="cm-10.1"/>

<project name="android_kernel_samsung_aries" path="kernel/samsung/aries" remote="cm" revision="cm-10.1"/>

It's an AOKP based rom, so there is no need to use a prebuilt kernel, because he does it during the building...

P.S.: the thread name is "Compile from source for ANY phone...." and on OP there's a "pacman" repo, which is not supported for my device, so, teorically, I'm doing a port. Otherwise I don't know where to post.
[XDA-University] AndyFox2011:
I'm not sure then, see if someone building CM10.1 has a local manifest you could take a look at, you might be missing some files

So you ARE building from source, porting is when you simply swap driver folders and kernel....
[XDA-University] ICUDeadNow:
Any dev here who can helpe build device tree ?
[XDA-University] speed_bot:
Ego.cfg is missing in your device tree
[XDA-University] matt95:
Is your device supported by CyanogenMod?
[XDA-University] ICUDeadNow:
Actually now I want to fix bugs, some other dev booted it before me,

http://xdaforums.com/showthread.php?p=42916757

Please see if you can help, guide me if you know solution to ant bugs :)
[XDA-University] The_Wolf91:
I tried to "install from sdcard" the update.zip of Titanium Backup. The first CWM's log is from my compiled rom (CM stock kernel), the second after flashing Mackay Kernel (another kernel for I9000 based on CM10.1):

CM Stock Kernel

-- Installing: /sdcard/TitaniumBackup-6.0.5.zip
Finding update package...
I:Update location: /sdcard/TitaniumBackup-6.0.5.zip
Opening update package...
Installing update...

about to run program [/sbin/busybox] with 3 args
mount: mounting /dev/lvpool/userdata on /data failed: No such file or directory
run_program: child exited with status 255
package_extract_file: can't open /data/app/com.keramidas.TitaniumBackup.apk for write: No such file or directory
unmount of /data failed; no such volume
script result was [Done !]
Installing Titanium Backup 6.0.5 ...
Done !

Mackay Kernel

-- Installing: /sdcard/TitaniumBackup-6.0.5.zip
Finding update package...
I:Update location: /sdcard/TitaniumBackup-6.0.5.zip
Opening update package...
Installing update...

about to run program [/sbin/busybox] with 3 args
Installing Titanium Backup 6.0.5 ...
script result was [Done !]
Done !

Any help please?
[XDA-University] Xetium:
Well this is unfortunate. All i have access to is a 32 Bit Desktop and I REALLY want to compile my own 10.1 ROM for the Galaxy Nexus.

Can anyone help me, like what do I do, is there still hope? Can I still use the 32 bit computer?
[XDA-University] matt95:
just install the ubuntu 32 bit version and all will be good
[XDA-University] mithun46:
I would like to thank all that helps here from bottom of my heart. You guys rock. I have no PC for compiling or to even browse XDA except my old 2011 mdpi device guys
[XDA-University] Ryuinferno:
Oh? You mean your device is broken currently?
[XDA-University] mithun46:
Yup. I don't have a PC or a Good device now.

I will buy the Xperia ZL within 5th next month.

But I have no PC to work :(
[XDA-University] AndyFox2011:
Awwww man that's sucks :(

I remember how awful it is not to have a PC at all, I'm still scarred from that time mine broke :(
[XDA-University] driodmaster92:
facing a weird situation i successfully complied aokp for lg optimus g e975 but while flashing the ROM the kernel keeps on crashing i am using cm device tree and cm kernel
[XDA-University] mithun46:
Let me say you what all things are happening around me:

1. No PC

2. WiFi router stopped working

3. My device's WiFi broke as I have tossed the phone. So cannot go out and use

4. No TV

5. Have XBox but no use without my WiFi

6. I got vacation from school and am not able to do anything for days now.

7. Felling a bit feverish now while typing. Hope it doesn't increase

CAN YOU FEEL MY FRUSTRATION
[XDA-University] AndyFox2011:
Jeez dude that's some pretty serious s*** going down for you :( I feel your pain
[XDA-University] matt95:
seems like you're gonna die :D
[XDA-University] GabrielSousa:
how do i fix this ?

frameworks/base/core/java/android/app/ActivityThread.java:551: error 111: Public class android.app.ActivityThread.ApplicationThread stripped of unavailable superclass android.app.ApplicationThreadNative

frameworks/base/core/java/android/app/ActivityThread.java:599: error 110: Parameter of hidden type android.app.ResultInfo in android.app.ActivityThread.ApplicationThread.sched uleSendResult()

frameworks/base/core/java/android/app/ActivityThread.java:608: error 110: Parameter of hidden type android.app.ResultInfo in android.app.ActivityThread.ApplicationThread.sched uleLaunchActivity()

frameworks/base/core/java/android/app/ActivityThread.java:637: error 110: Parameter of hidden type android.app.ResultInfo in android.app.ActivityThread.ApplicationThread.sched uleRelaunchActivity()

frameworks/base/core/java/android/app/ActivityThread.java:3654: error 110: Parameter of hidden type android.app.ResultInfo in android.app.ActivityThread.requestRelaunchActivity ()

frameworks/base/core/java/android/app/ContextImpl.java:1864: error 110: Method android.app.ContextImpl.getCompatibilityInfo returns unavailable type CompatibilityInfoHolder

DroidDoc took 68 sec. to write docs to /home/gabriel/cm-rom/out/target/common/docs/api-stubs

make: *** [/home/gabriel/cm-rom/out/target/common/docs/api-stubs-timestamp] Error 45

make: *** Waiting for unfinished jobs....
[XDA-University] Great_Geek:
The superclass

android.app.ApplicationThreadNative

was not found. All the other errors are related to that one not being found, so the subclass does not have proper definitions..

Once the superclass is defined , or pointed to properly, these errors will disappear :)
[XDA-University] GabrielSousa:
thanks a lot, and how i do that ? :D
[XDA-University] Great_Geek:
Hm.. What sources are you using ?

And which device are you compiling for ?

Tried a repo sync lately ? :p
[XDA-University] GabrielSousa:
cm10 for LG NEXUS 4 (mako)
[XDA-University] mithun46:
nexus 4 supports only cm-10.1
[XDA-University] GabrielSousa:
yes sorry, cm-10.1

forgot the ".1"
[XDA-University] mithun46:
Then u have bad source. Delete all and start over
[XDA-University] warface123:
[MENTION=4922752]mithun46[/MENTION] My phone has Unofficial CM 10.1.

Do I really need Official CM 10.1 ?

I wanna build AOKP For my Galaxy S2 Plus :)
[XDA-University] AndyFox2011:
Unofficial will work fine, its just harder to get all the files you need in place
[XDA-University] mithun46:
My Thread :D
[XDA-University] xtrymind:
i had succesfully compile cm10.1 with no error, but after flash it on my phone, it didnt copy all file to system, only copy bin folder,

whats wrong?
[XDA-University] yeongjje:
Maybe a stupid question, but...

If my phone model is not on CM offical list of supported devices, does that mean I can't build using this guide?
[XDA-University] Great_Geek:
If there is unofficial support, you can follow this guide as well :)
[XDA-University] Slayer_b:
Hi all,

I'm porting CM10.1 to a new device, I've created device's repos and started compiling but got a problem

The detailed log is here

few last lines:

frameworks/base/services/jni/com_android_server_location_GpsLocationProvider.cpp: In function 'void android::android_location_GpsLocationProvider_agps_data_conn_open(JNIEnv*, jobject, jstring)':
frameworks/base/services/jni/com_android_server_location_GpsLocationProvider.cpp:491:48: error: too many arguments to function
frameworks/base/services/jni/com_android_server_location_GpsLocationProvider.cpp: In function 'void android::android_location_GpsLocationProvider_agps_data_conn_closed(JNIEnv*, jobject)':
frameworks/base/services/jni/com_android_server_location_GpsLocationProvider.cpp:505:39: error: too many arguments to function
frameworks/base/services/jni/com_android_server_location_GpsLocationProvider.cpp: In function 'void android::android_location_GpsLocationProvider_agps_data_conn_failed(JNIEnv*, jobject)':
frameworks/base/services/jni/com_android_server_location_GpsLocationProvider.cpp:518:39: error: too many arguments to function
make: *** [/home/slayer_b/android/cyanogenmod/cm-10.1/out/target/product/ef47s/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/com_android_server_location_GpsLocationProvider.o] Ошибка 1

I tried to "make clobber" and start again with no effect at all

Could someone please advise me how to get rid of these?
[XDA-University] Great_Geek:
Please modify your source . Make clobber will not help, if you're just passing too many arguments .. Find the call to the function, then modify as needed ;)
[XDA-University] Slayer_b:
actually I do not pass any arguments to the function :)

I just created a standart device tree to build CM, make lunch and otapackage. That's all. I do not think that anything from my changes could cause this.

btw this is the similar issue with AOSPA

the solution described there is to replace cpp and heareds file with the ones pulled from CM's source... But I'm already using CM's source
[XDA-University] Great_Geek:
*facepalm*

Excuse that, please :p

Now, while it's compiling, one makefile will call said function , passing some parameters.

If your gps module works with CyanogenMod on some other device, you must include those headers & CPP files, etc to your device's build tree.

Mostly it'll be while building the kernel that you're getting this error, so that's a good place to start looking ;)
[XDA-University] Slayer_b:
thanks for your reply. It looks like I've found the issue with your help.

Next I would ask anyone who knows where to get libril, liblights etc? I know I can easily pull them from the similar arch device...but the question is where they were originally taken from? I have a kernel source for my device, is it useful for building CM except building kernel itself instead of using a prebuilt version
[XDA-University] Great_Geek:
Probably originally taken from the device's source (if provided by OEM)

Or, as you said, a similar arch device..

May I know which device you're working on ?

If only kernel source is provided, you're gonna have to pull parts from your device & other devices that are similar to it :)

Hope your endeavors are successful :)
[XDA-University] Slayer_b:
It is Pantech Vega Racer 2. It has the same hardware as HTC One XL and AT&T SGS III :D