{All 2011}[GUIDE][DEV] How to build CyanogenMod 11.0

Koloses

Senior Member
Jul 29, 2011
530
1,073
0
Zielona Góra
Wait for major ROM developers [CM, AOKP, PA etc.] to fully dig into the source and then we may talk lollipop. For now I'd stay away as we don't even have kitkat AOSP built ;)
 

zweif

Member
Nov 18, 2012
30
5
0
Jena
I compiled this rom for mango giving 100 MB from /system to /data. With flashing minimal gapps (160 DPI), there are 7 MB free space. I know that's tight, but on the other hand I don't know what to do with 100 MB free space on /system. Maybe it would be good to give more space to /data in general? I know a lot of people use more /system space than me, and I don't know what would be a good value.
 

mikeioannina

Recognized Developer
Mar 22, 2011
1,908
26,620
153
Ioannina
I compiled this rom for mango giving 100 MB from /system to /data. With flashing minimal gapps (160 DPI), there are 7 MB free space. I know that's tight, but on the other hand I don't know what to do with 100 MB free space on /system. Maybe it would be good to give more space to /data in general? I know a lot of people use more /system space than me, and I don't know what would be a good value.
Good value is what we have now. It's really not worth tweaking the sizes all the time, we can't please everyone. The space is just too limited to do any meaningful changes.
 
  • Like
Reactions: vladht and zweif

zweif

Member
Nov 18, 2012
30
5
0
Jena
While trying to build I get this error:
Code:
collect2: error: ld terminated with signal 7 [Bus error], core dumped
make: *** [/home/clemens/android/cm11/out/target/product/mango/obj/SHARED_LIBRARIES/libwebviewchromium_intermediates/LINKED/libwebviewchromium.so] Fehler 1
I know its a linking problem. I had this some days back and solved it using 'make libwebviewchromium' before I started the whole build. All I found were similar problems, but not exactly the same and the assumption that it could be caused by too less RAM. Is 8 GB really too less? I don't use swap, but in system monitor it didn't look like whole RAM was used. Some time back, everything worked good.
I'll try a clean build without ccache, and see what happens.

Edit:
Build finished successful after disabling ccache. Don't really know what was the problem.
 
Last edited:

Zerathul

Senior Member
Aug 14, 2013
99
13
0
how can I fix it?

Code:
fatal: cannot make /home/daniel/android/system/.repo/repo directory: File exists
Traceback (most recent call last):
  File "/usr/bin/repo", line 775, in <module>
    main(sys.argv[1:])
  File "/usr/bin/repo", line 748, in main
    os.rmdir(os.path.join(root, name))
 

liquidraver

Member
Nov 12, 2009
42
24
0
Budapest
custom build version not changing

Hello Everyone!

I recently (2014.12.15.) built a ROM with the info I read in the first post, but when I install it, the "About Phone" says CyanogenMod version 11-20141018-UNOFFICIAL-LegacyXperia-smultron and the Kernel version is Tue Dec 9 10:33:10 CET 2014.

Is this normal, these dates shouldn't change to today?

p.s.: this is like the 10th build from the same machine, I did exactly what the first post says about "The next times you want to build, you only need to do the following:"

Am I missing something?

thanks for the help.
 

Langes

Senior Member
Sep 23, 2012
1,713
2,731
0
48
Sweet Spot
Hello Everyone!

I recently (2014.12.15.) built a ROM with the info I read in the first post, but when I install it, the "About Phone" says CyanogenMod version 11-20141018-UNOFFICIAL-LegacyXperia-smultron and the Kernel version is Tue Dec 9 10:33:10 CET 2014.

Is this normal, these dates shouldn't change to today?

p.s.: this is like the 10th build from the same machine, I did exactly what the first post says about "The next times you want to build, you only need to do the following:"

Am I missing something?

thanks for the help.
If you delete the build.prop file in android/out/target/product/smultron/system your dates will be changed to today
 
  • Like
Reactions: liquidraver

stanis64

Member
Apr 16, 2013
21
9
33
Hi, I try to compile CM12 test build but it gives me an error
Code:
build/core/package_internal.mk:269: recipe for target '/home/stanis/android/system/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk' failed
make: *** [/home/stanis/android/system/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk] Error 1
make: *** Deleting file '/home/stanis/android/system/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk'
make: *** Waiting for unfinished jobs....
Aidl: framework <= frameworks/base/core/java/android/speech/tts/ITextToSpeechService.aidl
Before that gives many errors but I fixed it. But error above i couldn't.

Some system specifications:
Linux distro: Manjaro
RAM: 4GB

Device: Sony Xperia Pro (iyokan)

Thanks for advance
 
Last edited:

evil.demon_s

Senior Member
Jan 2, 2013
646
721
0
guys...just recently ran into a problem
i live in india...and i have mtnl internet connection
and probabaly mtnl has blocked github
its showing unable to connect
when i use proxy server then the site opens but i am not able to use that proxy server in terminal so i cant even repo sync
i googled the solutions for using proxy in linux terminal like editing bashrc file and apt.conf.d/95proxies files but no use
any solution for this...????
 

karandpr

Space too small for my titles. Check Signature
Staff member
Feb 20, 2011
9,688
13,151
263
Prolific Troll
guys...just recently ran into a problem
i live in india...and i have mtnl internet connection
and probabaly mtnl has blocked github
its showing unable to connect
when i use proxy server then the site opens but i am not able to use that proxy server in terminal so i cant even repo sync
i googled the solutions for using proxy in linux terminal like editing bashrc file and apt.conf.d/95proxies files but no use
any solution for this...????
Change DNS to Google(8.8.8.8,8.8.4.4). It happened to me with Reliance broadband too. Service center got bashed a lot.
 

evil.demon_s

Senior Member
Jan 2, 2013
646
721
0
how to add packages

guys...need help
i just saw this thread and i wanted to add this feature in my build
but there are 2 doubts
1. exactly where to put this
To get these built into your ROM you will need to add a couple products to PRODUCT_PACKAGES, you can decide where you want to add this.
Code:
# Screen recorder
PRODUCT_PACKAGES += \
ScreenRecorder \
libscreenrecorder
2. where to add screen recorder app link i.e
so that when i compile build...then even this app gets fetched and compiled
plz help me
 

Vynikal

Senior Member
Sep 29, 2012
1,021
763
143
guys...need help
i just saw this thread and i wanted to add this feature in my build
but there are 2 doubts
1. exactly where to put this


2. where to add screen recorder app link i.e so that when i compile build...then even this app gets fetched and compiled
plz help me
1. Add it to msm7x30.mk in /device/msm7x30-common (as you want to build it for all devices)

2. Add line to .repo/local_manifests/semc.xml (or create another). See semc.xml as example. Then sync.
Sent from my D2203 using XDA Free mobile app
 

saqibkhan

Senior Member
Sep 23, 2012
764
308
0
hi Mike and guys..

I was building cm12 for Zeus as you mentioned on Google+ and replace all cm11.0 with cm12.0 only 2 or 3 places I think I had too.

I followed ur guide to the word and everything went perfectly well until "Brunch Zeus" when this Error shows up :/

im building in VirtualBox fyi.
 

Attachments