yashsingh1/xdaforums huggingface dataset:
[XDA-University] ravisghosh:
What about LG Optimus Net Dual (P698)? Can we get CM 9 or 10 (better) with this guide. There are no ROMS whatsoever available for this phone :(
[XDA-University] speed_bot:
#include<stdio,.h>
#include<rom.h> /ps my own header/
main()
{
int device tree,rom;
for((device==1) || (device tree =1))
printf("you can build a rom");
else
printf("you cant :P");
}
[XDA-University] mithun46:
epic . made my day
[XDA-University] AndyFox2011:
Top bit of programming their! Thats my Friday started with a laugh :D
[XDA-University] speed_bot:
lol im a noob in programming..
[XDA-University] hellcat117:
Starting in either 11.04 or 11.10 of Ubuntu, lib32* package names and other 32-bit package names in 64-bit were replaced with <name-here>:i386. Therefore, you need to know which release you're on, and call the packages that way. Even then, some of the packages might be obselete.

And I know it's an incredibly late reply to this, I just can't help myself this time... mostly because I've bashed heads with precise so many times...
[XDA-University] Alucai Vivorvel:
So, I take it that unsupported devices are out of luck?

After waiting hours for "repo sync" to finish, are you telling me that, because my Ace IIx is not on the supported devices list, and I don't know the codeword, I'm SOL?

So much for the "Any Phone" in the title.
[XDA-University] speed_bot:
ask the thread op about "Any phone" thingy...are you sure that there isnt atleast one device tree available for your device?
[XDA-University] Av8torGuy:
Hi All -

After quite a bit of work, I was able to get an Ubuntu 64-bit VM running on my Windows 7 box and I was able to successfully compile several CM10.1 builds for several days. However, today, I ran into an error and I was wondering anyone's having the same problem or if it's on my side... I don't remember changing anything on my box though, so I'm pretty confused...

After successfully syncing the repo, then running the build/envsetup.sh script and finally run brunch d2spr, after the compiling runs for a while, I get the following failure back...

make: *** [/home/jonathan/android/system/out/target/product/d2spr/cm_d2spr-ota-eng.jonathan.zip] Error 1

I've searched XDA and the Internet, and can't find any answers...

HELP!
[XDA-University] hellcat117:
...That's not enough of an error message. make's end error messages aren't descriptive at all, and the line you included tells us nothing more than... it failed on making some kind of zip file. Put in a log of about 100 more lines from above this one, and you might get some help.

Just saying...
[XDA-University] Av8torGuy:
Disregard
[XDA-University] hellcat117:
The ota_from_target_files command couldn't parse all of the options passed to it, hence why it gave a list of all the options it can parse. If you can change what's passed to it, it should finish building the ota package correctly. Otherwise, it looks like the images are there, and that the main part of the build was successful. :good:
[XDA-University] Alucai Vivorvel:
Eenope. The only devs on here willing to do anything are waiting for Jelly Bean to be released on all devices it seems, something that they/we will be waiting for, indefinitely.

That, and no one with little to no experience can do diddly squat since good ol' Sammy refuses to release a stock firmware image. Their documentation is terrible, so I can't figure out how to build from the official sources to make one.
[XDA-University] speed_bot:
why wait for jellybean apart from kernel and vendor blobs nothing much will be helpful official jb update.
[XDA-University] Alucai Vivorvel:
I have no idea, probably just lazy developers. This is a popular device in Ontario at least (Canadian exclusive phone unfortunately) but so far it seems nobody who has the phone is technologically inclined enough to make their way over here and improve the software. I just really want Samsung's junk off my phone and CyanogenMod instead. Is that really so much to ask?
[XDA-University] The_Wolf91:
Hi, I'm trying to build from the Beergang source for my I9000 on Ubuntu 12.10, but when I put the "breakfast galaxysmtd" command I get this error:

Syncing dependencies
fatal: duplicate project CyanogenMod/android_packages_apps_SamsungServiceMode in /home/the_wolf/Source/.repo/manifest.xml
Done
build/core/product_config.mk:239: *** _nic.PRODUCTS.[[device/samsung/galaxysmtd/cm.mk]]: "device/samsung/aries-common/device_base.mk" does not exist. Arresto.

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

Here is from when I put the "breakfast galaxysmtd" command: http://pastebin.com/qK1g90qn .

What's wrong? I've followed the entire guide as it is written.

Now, if I try to "repo sync" i get this message:

fatal: duplicate project CyanogenMod/android_packages_apps_SamsungServiceMode in /home/the_wolf/Source/.repo/manifest.xml

It seems that something is corrupted after "breakfast galaxysmtd" (because before I could put the "repo sync" command without any problem), but I did what is written only.... I hope you can help me.

Thanks
[XDA-University] mithun46:
remove this line from your manifest

<project path="packages/apps/SamsungServiceMode" name="CyanogenMod/android_packages_apps_SamsungServiceMode" />
[XDA-University] The_Wolf91:
Done, now it says:

build/core/product_config.mk:239: *** _nic.PRODUCTS.[[device/samsung/galaxysmtd/cm.mk]]: "device/samsung/aries-common/device_base.mk" does not exist.
[XDA-University] speed_bot:
your config has dependencies .. you need this file

samsung/aries-common/device_base.mk" does not exist.
[XDA-University] The_Wolf91:
I've downloaded it from here: https://github.com/CyanogenMod/android_device_samsung_aries-common , where I have to put it?
[XDA-University] just1nsama:
In device/samsung/aries-common

I would suggest you clone the whole content of this folder to the folder above because you will eventually be asked for more dependencies.
[XDA-University] AndyFox2011:
I've put all my files in for my DHD, but when I run. /jb-build.sh cm_ace doesn't show up in the list, what do I do to change that?
[XDA-University] mithun46:
what shows up

try make a file called cm_ace in android_vendor_cm / prebuilt

with this

## CONFIGURATION

%revision=1

%rom_dpi_min=160

%rom_dpi_max=320

%rom_default_dpi=240

%rom_default_layout=360

## CONFIGURATION

%hybrid_mode=1

%system_default_layout=0

%user_default_layout=0

%system_default_dpi=0

%user_default_dpi=0

## WORKSPACE PREFERENCES

android.dpi=240

android.layout=0

com.android.systemui.dpi=240

com.android.systemui.statusbar.dpi=100

com.android.systemui.navbar.dpi=100

com.android.systemui.layout=360

## SYSTEM PREFERENCES

com.noshufou.android.su.dpi=240

com.google.android.talk.dpi=250
[XDA-University] AndyFox2011:
Edit : just saw your advice, I'll do that

If I run build/envsetup.sh then run it it builds but says "dependency mode only for non -existing device tree"

It also hits errors with audio and video libs, but recompiling running it again it doesn't find hit the errors again :/
[XDA-University] AndyFox2011:
Right I added that into the file, what does that specifically do?

Also I did a distro upgrade and now the ./jb-build.sh only shows the full-eng option, do I need to reinstall all the building packages?
[XDA-University] AndyFox2011:
Also this error keeps happening;

Sorry that its a photo, I'm still getting used to running Ubuntu in command line, and wasn't on the internet, so copy and paste wasn't an option :/
[XDA-University] Alucai Vivorvel:
You could just run Ubuntu in the GUI and use the Terminal... I think running the entire OS in the CLI should only be used as a fallback option. You can only do so much in a single command line window, no matter how superior it is to clicking through everything.
[XDA-University] AndyFox2011:
I don't like the GUI, it draws too much power, so I switched too the Command interface
[XDA-University] Alucai Vivorvel:
You must have a really low powered computer then, you'd probably be better off switching to Lubuntu or another distro that uses LXDE.

Or, if you're content with going back to the days of DOS and completing one thread at a time, then by all means, have fun.
[XDA-University] AndyFox2011:
Low powered, nope, quite moderate actually

Its just the Unity interface, and since all i do is compile on it command line is exactly what i need

I should probably switch to debain

Anyway, any ideas about the overlay issue?
[XDA-University] Alucai Vivorvel:
I certainly don't have the highest-end PC, it's a few years old now (first-gen Core i3) and the only thing I've upgraded is the video card to a 7770. I have no problems running Unity, but I suppose that would make any computer slower than mine lower-end. :P

If all you use Ubuntu for is compiling then I suppose the CLI is the best way to go then.

Anyway, I can't even understand half of what I'm looking at in regards to your "screenshot" there. An experienced developer I am not. X'D

Somebody help this poor fellow out!
[XDA-University] hellcat117:
If you feel brave enough, you could tear out GNOME and replace it with another window manager and display manager. I use TWM and XDM myself. Be warned, however, that it could crash back to the command line unexpectedly if you do (I have no idea what causes it as of yet, and it usually only troubles me when I'm trying to remaster an iso file anyway). Or, you could tear out the entire graphics system, and have only the command line there. Install Aptitude if you want to do that, it makes installing packages on the command line easier. Anyhoo, I'm rambling and I should stop myself from rambling.
[XDA-University] AndyFox2011:
AMD athlon x2 2.7ghz :P

Its home/office level, so unity doesn't work well, since it doesn't really use GPUs otherwise I'd be fine!

Yeah help the poor n00b out guys! (Me xD)
[XDA-University] Alucai Vivorvel:
GNOME =/= Unity

Also, don't all Ubuntu installations come with Aptitude?
[XDA-University] hellcat117:
GNOME 3 uses Unity, with Metacity as a backup. And unless you do an upgrade from an older version, no, not all Ubuntu installations have Aptitude installed. I've learned the hard way, from constantly redoing the installation on my computer, and from remastering the live desktop isos available.

If not for the forced Apple support, I wouldn't mind using Metacity still... but GNOME now uses Apple support utilities and libraries as required dependencies, so it's out for me. Plus, it's way, WAY too large for something that's supposed to be as stripped and limp as possible while still doing something...
[XDA-University] Alucai Vivorvel:
Your post is so full of nonsensical things I shouldn't even try to comprehend it.

GNOME 3 does not use Unity, if anything it would be the other way around, but I still think you're wrong.

Unity is a Desktop Environment developed by Canonical and they alone. GNOME 3 is its own Desktop Environment. That's not to say standard Ubuntu running Unity has Unity apps, however. They're all still GNOME-based. The window/effects manager is Compiz, and I believe you were correct about Metacity being the backup.

Now, what's this silliness about Apple support? Are you referring to support for plugging in an iDevice? That's something so basic that it's a necessity if Ubuntu is to become a "mainstream" desktop OS. Or do you mean to say that open source Linux developers are implementing proprietary, closed source code from the biggest anti-everyone-else company around?
[XDA-University] hellcat117:
......

I HATE APPLE.

And have you actually looked at the packages in a fresh Ubuntu installation? If you have, I'll go suicide myself just for you.

*goes on rampage through cupertino*
[XDA-University] Alucai Vivorvel:
Why do I feel like laughing after reading that...? :L

Trust me, the only company I detest more than Samsung is Apple. There was a time when I once wanted a Mac. After actually using the darned things, I say no thank you. And don't get me started about their other "premium" products. *shudders*

Anyway, I forget, we were talking about an overlay issue before, yes?

I take full credit for taking the thread down this bunny trail. I think I'll just go and try to translate Sammy's source documentation into proper English.

...wish me luck.
[XDA-University] vroomr:
I hope to try this soon :) perhaps after my first child is born and I am done moving:laugh::laugh:
[XDA-University] mithun46:
All the best ;)
[XDA-University] Fra-90:
I can not download phase beam wallpaper and other projects. Are all repositories reachable?
[XDA-University] Melch1zedeK:
thanks for post this, great and simple guide for n00bs (like me)
[XDA-University] AndyFox2011:
Hey mithun, or anyone, i have an error and i'm stumped :(

target thumb C++: liboverlay <= hardware/qcom/display/liboverlay/overlayCtrl.cpp
In file included from hardware/qcom/display/liboverlay/overlayCtrl.cpp:20:0:
hardware/qcom/display/libgralloc/fb_priv.h:48:26: error: field 'fence' has incomplete type
hardware/qcom/display/libgralloc/fb_priv.h:49:31: error: field 'commit' has incomplete type
make: *** [/home/andrew/beer/out/target/product/ace/obj/SHARED_LIBRARIES/liboverlay_intermediates/overlayCtrl.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from hardware/qcom/display/liboverlay/overlayImpl.h:34:0,
from hardware/qcom/display/liboverlay/overlay.cpp:31:
hardware/qcom/display/liboverlay/overlayRotator.h: In member function 'virtual int overlay::MdssRot::getDstMemId() const':
hardware/qcom/display/liboverlay/overlayRotator.h:444:21: error: 'const struct msmfb_overlay_data' has no member named 'dst_data'
hardware/qcom/display/liboverlay/overlayRotator.h: In member function 'virtual uint32_t overlay::MdssRot::getDstOffset() const':
hardware/qcom/display/liboverlay/overlayRotator.h:447:21: error: 'const struct msmfb_overlay_data' has no member named 'dst_data'
make: *** [/home/andrew/beer/out/target/product/ace/obj/SHARED_LIBRARIES/liboverlay_intermediates/overlay.o] Error 1
[XDA-University] mithun46:
Nuke the hardware/qcom and do a repo sync . No build machine for now. Will by a new PC :D
[XDA-University] AndyFox2011:
Woo New pc is good! I'm meant, MEANT to be buying a 6 core CPU off my mate, but he ain't replying to my messages :'(

What specs are you getting in your new rig? :)
[XDA-University] Alucai Vivorvel:
Hexacore? That's impressive. Be useful for multitasking, like, oh, say, building source and being able to browse the net while doing so? ;)

In a bit off an OT note, the next Xbox is rumoured to have an 8-core CPU, have a discrete class graphics card, and still remain affordable.

I doubt that very much.
[XDA-University] AndyFox2011:
Xbox, affordable? Decent specs? No way is that possible!

Yeah Hexcore is the best way ;) better than a dual core for compiling from source :)
[XDA-University] mithun46:
My OLD PC was:

i7 3rd generation

8 core

8 gig ram

5 gig graphics

750 gig storage

My gaming machine

Xbox 360

Don't which new PC to buy I guess you guys can help me here
[XDA-University] AndyFox2011:
Are you sure you need a new pc? That's pretty decent specs! For gaming its pretty good specs as well! :)

---------- Post added at 06:36 PM ---------- Previous post was at 06:34 PM ----------

Heck I'd kill for a pc of that spec!
[XDA-University] mithun46:
I Am giving it to father that's why I need a new one.
[XDA-University] AndyFox2011:
Fair enough!
[XDA-University] mithun46:
I will help you after a week .last week for my exams
[XDA-University] AndyFox2011:
Sure man, take your time! Exams are important!

I'll try deleting the qcom hardware and resyncing :)
[XDA-University] AndyFox2011:
I used your advice, I deleted the hardware/qcom folder and resynced

But I get the same error :(

Also what does "trying dependency only mode on a non-existing device tree?" Mean?
[XDA-University] mithun46:
Wait a week man
[XDA-University] AndyFox2011:
Sure dude, ain't no rush, I got schoolwork too do
[XDA-University] mithun46:
Enter the following commands in terminal and give me output

adb

fastboot

java
[XDA-University] skywalker1162:
Hey , I was syncing my repo for AOKP , everything started off without a hitch and I left it to run In the night but at some point it got stuck on receiving objects 72 % . Its happened many times and I've tried several methods to solve the problem but for some reason it keeps hanging.

Is there any solution to this problem ?

Sent from my HTC One X
[XDA-University] mithun46:
This is cm based compiling thread
[XDA-University] AndyFox2011:
I'll try that tonight... I'm currently as school doing some programming :(
[XDA-University] Av8torGuy:
After I successfully flash the latest compiled build and check the version, it constantly displays "10.1-20130308-UNOFFICIAL-d2spr" instead of the latest date...

Anyone know why the "CyanogenMod version" in "About Phone" never changes when I compile the latest nightlies?

Thanks!
[XDA-University] just1nsama:
Run make clean or make clean install before compiling a new build.
[XDA-University] Av8torGuy:
Thanks! Is this something that should be done before EACH build?
[XDA-University] just1nsama:
Yup, i highly recommend it.
[XDA-University] mithun46:
Any1 here building on a server
[XDA-University] DeathArrow:
Please help. I'm getting these pesky errors when trying to compile CM10:

hardware/qcom/display/libgralloc/framebuffer.cpp: In function 'int mapFrameBufferLocked(private_module_t*)':
hardware/qcom/display/libgralloc/framebuffer.cpp:282:27: error: aggregate 'mapFrameBufferLocked(private_module_t*)::msmfb_metadata metadata' has incomplete type and cannot be defined
hardware/qcom/display/libgralloc/framebuffer.cpp:284:19: error: 'metadata_op_base_blend' was not declared in this scope
hardware/qcom/display/libgralloc/framebuffer.cpp:287:18: error: 'MSMFB_METADATA_SET' was not declared in this scope
make: *** [/home/max/android/cm10/out/target/product/e400/obj/SHARED_LIBRARIES/gralloc.msm7x27a_intermediates/framebuffer.o] Error 1
[XDA-University] hasan4791:
Help to compile

Im having kernel source for LG Optimus G and i wan to built CM10.1....is that possible and also all things will work...???
[XDA-University] just1nsama:
If you also have the vendor files and device tree, yes it will work. Search on CM's wiki to find if there is an existing device tree for your device or a similar one.
[XDA-University] P3CO:
It's also possiple to build a new device tree.
[XDA-University] hasan4791:
ya LG has released all the sources for this mobile......so if i compile CM10.1 all things will surely work ryt...??

Also can yu pls chk this source file nd confirm me that all are present...Look for LGE975 (10c)...:o

https://wws.lg.com/global/support/opensource/opensourceList?types=ALL&search=lge975
[XDA-University] just1nsama:
Yes, but you re gonna have to edit the device tree by adding some makefiles to be able to build from CM source tree, download the device tree from the other version of the Optimus G and use it as exemple for your makefiles, should be pretty similar ...
[XDA-University] the playa!:
What does it mean by the codename of the device?
[XDA-University] Alucai Vivorvel:
That'd be the name of the device tree. E.g., mango. If no one has ever made a ROM from sources then chances are it doesn't exist and, congratulations, you get to choose one.

Somebody correct me if I'm wrong.
[XDA-University] trevd:
If you're struggling to come up with a codename, because lets face it thinking up codenames is hardwork. :D you can always use the value found in the ro.hardware system property.

adb shell getprop ro.hardware

:good:
[XDA-University] gchild320:
Nevermind
[XDA-University] sunny2303:
Wonderful guide.. appreciate the efforts...

My 2 cents ;):

1. Please highlight all the warnings on top of first post e.g. check if your device is officially supported by CM, use 64 bit ubuntu if you are building for 10.1 etc. Though it is expected that people should read entire posts first and then start, its equally important to catch their attention early, I think.

2. I have seen many guides which are really vague in terms of the internet speed requirement in particular. I think concrete details would really be help. (An input from my side, I build on 2 mbps connection and it just works fine, all one needs is stable connection.)

Rest you are doing a great job.. My best wishes :)
[XDA-University] mithun46:
ok man.will do after a week
[XDA-University] maxrdlf95:
Aprox how long does it take to download source code for CM10.1 with let-s say 2 mb connection just to know thanks :D
[XDA-University] mithun46:
hell lotta time
[XDA-University] mithun46:
Compiling Like a Boss!!
[XDA-University] maxrdlf95:
Ok so after I downloaded all repo finally i almost get it :P

So when I have all downloaded and a I just want to download latest changes the comands its

repo sync?
[XDA-University] just1nsama:
yup :)
[XDA-University] maxrdlf95:
So after I downloaed repo it was like 6 GB download

now breakfast d2att its downloading I think 1 GB if my calculation doesnt fail and its going slows as hell 30 kbps.... :S
[XDA-University] gchild320:
This thread helped me a lot. I did most things just as stated in the thread, but had to do a few things differently. Overall a great thread, big thanks to the OP.
[XDA-University] maxrdlf95:
Some help please I could compile this afternoon but now I can't :S

Reading library jar [/home/maxrdlf95/Source/out/target/common/obj/JAVA_LIBRARIES/core-junit_intermediates/classes.jar]
Reading library jar [/home/maxrdlf95/Source/out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes.jar]
Reading library jar [/home/maxrdlf95/Source/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jar]
packages/apps/Camera/res/xml/video_preferences.xml:90: error: Error parsing XML: not well-formed (invalid token)
make: *** [/home/maxrdlf95/Source/out/target/common/obj/APPS/Gallery2_intermediates/src/R.stamp] Error 1
make: *** Se espera a que terminen otras tareas....
drivers/media/video/msm/Kconfig:123:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:128:warning: choice value used outside its choice group
#
# configuration written to .config
#
make[1]: se sale del directorio «/home/maxrdlf95/Source/kernel/samsung/d2»
Preparing output jar [/home/maxrdlf95/Source/out/target/common/obj/APPS/InputDevices_intermediates/proguard.classes.jar]
Copying resources from program jar [/home/maxrdlf95/Source/out/target/common/obj/APPS/InputDevices_intermediates/classes.jar]
Note: frameworks/base/packages/VpnDialogs/src/com/android/vpndialogs/ManageDialog.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: packages/apps/VoiceDialer/src/com/android/voicedialer/CommandRecognizerEngine.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
[XDA-University] lurepheonix:
Unsuccessful compilation

Hello everyone.

When I compile CM, I get in the bin folder of the out rom shared libraries instead of executables... as a result ROM doesn`t work at all.

Have you got any ideas how to fix this?

Tried even reinstalling Ubuntu and everything. Still NOPE.:rolleyes:
[XDA-University] maxrdlf95:
My CM10.1 Compile without problems but when I install on phone after Splash Screen I get black screen any idea? really weird..
[XDA-University] gchild320:
Please delete post
[XDA-University] mithun46:
Compile Faster !!
[XDA-University] Martini3001:
Hello,

thanks for the thread.

But I dont get any stuff like a zip file.. My folder in out \ target \ N 7100 is about 180mb, but no flashable file?

Whats going wrong??
[XDA-University] mithun46:
??

Nuke the build directory and start from scratch
[XDA-University] mithun46:
Nuke the build directory and start from scratch
[XDA-University] Great_Geek:
Great tutorial ! :)

Shouldn't you

#include <stdio.h>

If you wanna use printf? :P

Besides that, is it possible to write for ArchLinux ?