Hey guys I had some requests on how to make cm7 theme chooser themes so here they are. The first is how to setup your build environment the second is how to build the theme it self.
Video One:
How to initialize and download the source
Video Two:
How to build cm7 theme
Here's the txt file I used:
Code:
sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts sun-java6-jdk
sudo apt-get remove icedtea-netx icedtea-plugin icedtea6-plugin openjdk-6-jre openjdk-6-jre-headless icedtea-6-jre-jamvm icedtea-6-jre-cacao
sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs \
x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev \
libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown \
libxml2-utils xsltproc
mkdir -p ~/android
mkdir -p ~/android/system
mkdir -p ~/bin
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo
echo 'export PATH="~/bin:${PATH}"' >> ~/.bashrc
repo init -u git://github.com/JerryScript/android.git -b gingerbread
#unmark the next line if your running ubuntu 11.10
#sudo apt-get install libx11-dev:i386
##experimental 32bit
##sudo apt-get install git-core gnupg flex bison gperf build-essential \
## zip curl zlib1g-dev libc6-dev libncurses5-dev x11proto-core-dev \
## libx11-dev libreadline6-dev libgl1-mesa-dev tofrodos python-markdown \
## libxml2-utils xsltproc
Support me by buying my apps
My Apps
This only works on linux?
@Asadullah, Just checked your apps and saw the Miui theme. It looks pretty sexy. Ill buy once I remember to put my card on.
Sent from my LG-VM670 using Tapatalk
Good work
Sent from my LG-P500 using xda premium
Compiling Gummy
All work here is done from Ubuntu 10.04.. Newer releases may require slightly different packages.
Installing dependencies:
Install Ubuntu 10.04 and install all updates
Install Java SDK (type or copy the commands into the terminal exactly as you see them here )
Code:
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner”
Code:
sudo apt-get update
Code:
sudo apt-get install sun-java6-jdk
Install Git
Code:
sudo apt-get install git-core
Install the rest of the needed files
Code:
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils pngcrush
Setting up and syncing Gummy’s Repo
Enter the commands in the terminal exactly as they are displayed to setup your PATH
Code:
mkdir ~/bin
Code:
PATH=~/bin:$PATH
Code:
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
Code:
chmod a+x ~/bin/repo
Create your Gummy source directory and then go to that directory
Code:
mkdir ~/Gummy
Code:
cd ~/Gummy
Initialize and sync the Gummy repo (where X is put the number of cores for your CPU such as “repo sync -j4” for a quad core)
Code:
repo init -u[url="https://github.com/teamgummy/platform_manifest.git"][color=#000000] https://github.com/teamgummy/platform_manifest.git[/color][/url] -b master
Code:
repo sync -jX
Take a break and enjoy an ice cold beer
Go to the fridge
Pull out your favorite brand of beer
Open with care
Drink with pleasure
Otherwise its going to take a while ( a long while )
Preparing to Gummy and compiling
Get prebuilts (Term)
Code:
cd ~/Gummy/vendor/Gummy
Code:
./get-prebuilts
Code:
cd ~/Gummy
Compile (dont forget the . and also make sure you again change the X to the number of cores you have)
Code:
. build/envsetup.sh && lunch Gummy_crespo4g-userdebug && make gummy -jX
Nice! Thanks for this
(First)
•°NS4G • ICS°•
2nd!
Now THIS is something... Awesome...Thanks man!
Thanks bro! Gonna try this on my PC tonight
Sent from my IceCreamSammich Nexus S 4G
Hello guys, I have some issues building AOKP... There are no news from Rooobertinhooo now, I suppose he has exams now!).
So...When I download the necessary packages for building using this terminal command:
Code:
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 openjdk-6-jdk tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386
I get an error in the end that there are some corrupted files, so I cannot proceed...Maybe it's because I installed Ubuntu 12.04 LTS in a Dualboot using WUBI?I reinstalled it many times, but I got the same...
mercator54 said:
Hello guys, I have some issues building AOKP... There are no news from Rooobertinhooo now, I suppose he has exams now!).
So...When I download the necessary packages for building using this terminal command:
Code:
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 openjdk-6-jdk tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386
I get an error in the end that there are some corrupted files, so I cannot proceed...Maybe it's because I installed Ubuntu 12.04 LTS in a Dualboot using WUBI?I reinstalled it many times, but I got the same...
Click to expand...
Click to collapse
i am here, you are right i have exams
i am on skype right now. contact me, i know sloution
can someone else help?..
Try with
sudo apt-get clean
sudo apt-get autoremove
sudo apt-get update
sudo apt-get upgrade
And then try to install the packages that you want
Sent from my GT-I8160 using xda app-developers app
kentone said:
Try with
sudo apt-get clean
sudo apt-get autoremove
sudo apt-get update
sudo apt-get upgrade
And then try to install the packages that you want
Sent from my GT-I8160 using xda app-developers app
Click to expand...
Click to collapse
didn't help me!..
Paste the error here e.e
I will try to help you
Sent from my GT-I8160 using xda app-developers app
kentone said:
Paste the error here e.e
I will try to help you
Sent from my GT-I8160 using xda app-developers app
Click to expand...
Click to collapse
Code:
E: Error, some biten files found...
try to install packages one by one not all together...
edit: these are build packages maybe some is already installed it-depends of the distro..
You instslled 12.04 OK but what architecture i386 or amd64?
astankov said:
You instslled 12.04 OK but what architecture i386 or amd64?
Click to expand...
Click to collapse
amd64...
Maybe try to launch Ubuntu on VM?..
Or use Cygwin?..
mercator54 said:
Hello guys, I have some issues building AOKP... There are no news from Rooobertinhooo now, I suppose he has exams now!).
So...When I download the necessary packages for building using this terminal command:
Code:
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 openjdk-6-jdk tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386
I get an error in the end that there are some corrupted files, so I cannot proceed...Maybe it's because I installed Ubuntu 12.04 LTS in a Dualboot using WUBI?I reinstalled it many times, but I got the same...
Click to expand...
Click to collapse
In my opinion to work on the stuff for android better will be Ubuntu 10 LTS but if you want to stay on 12.04 or move to 10 I recommend to use AET -> http://forum.xda-developers.com/showthread.php?t=2100673
mercator54 said:
amd64...
Maybe try to launch Ubuntu on VM?..
Or use Cygwin?..
Click to expand...
Click to collapse
You try to install i386 packages on amd64 system. To do that you need to add i386 architecture. Dont ask me how - I dont remember but I think that if you install Wine from software center it is done automatic because is needed for Wine.
Now tried to download these packages on cydwin - got an error...
Code:
-bash: sudo:command not found
mercator54 said:
Now tried to download these packages on cydwin - got an error...
Code:
-bash: sudo:command not found
Click to expand...
Click to collapse
You can try first enter su press enter and then your Command.
mischa_martin said:
You can try first enter su press enter and then your Command.
Click to expand...
Click to collapse
Code:
su: root user doesn't exist
tryied in cygwin...
Okay,
try to run cygwin with admin permissons in windows.
Hello,I'm trying to download required packages :
"sudo apt-get install git gnupg flex bison gperf build-essential \
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
libgl1-mesa-dev g++-multilib mingw32 tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev:i386"
and i get this error :
"The following packages have unmet dependencies:
libgl1-mesa-glx:i386 : Depends: libglapi-mesa:i386 (= 8.0.4-0ubuntu0.6)
Recommends: libgl1-mesa-dri:i386 (>= 7.2)"
Does somebody know how to solve it?Thnks
Hello
You need packages for compiling cyanogenmod
Several "build packages" are needed to build CyanogenMod. You can install these using the package manager of your choice.
Code:
sudo apt install bison build-essential curl flex git gnupg gperf libesd0-dev liblz4-tool libncurses5-dev libsdl1.2-dev libwxgtk2.8-dev libxml2 libxml2-utils lzop maven openjdk-7-jdk pngcrush schedtool squashfs-tools xsltproc zip zlib1g-dev android-tools-adb android-tools-fsutils android-tools-fastboot android-tools-adbd
In addition to the above, for 64-bit systems, get these:
Code:
sudo apt install g++-multilib gcc-multilib lib32ncurses5-dev lib32readline-gplv2-dev lib32z1-dev
For Ubuntu 15.10 (wily) and newer, substitute:
lib32readline-gplv2-dev → lib32readline6-dev
For Ubuntu 16.04 (xenial) and newer, substitute (additionally see java notes below):
libwxgtk2.8-dev → libwxgtk3.0-dev
openjdk-7-jdk → openjdk-8-jdk
Ubuntu 16.04 (Xenial Xerus) or newer and OpenJDK: Since OpenJDK 1.7 was removed from the official Ubuntu repositories, you have a couple options:
Obtain OpenJDK 1.7 from the openjdk-r PPA
Enable experimental OpenJDK 1.8 support in CyanogenMod 13.0 (not available in earlier version). To enable OpenJDK 1.8 support, add this line to your $HOME/.bashrc file: export EXPERIMENTAL_USE_JAVA8=true.
Code:
$ mkdir -p ~/bin
$ mkdir -p ~/android/system
Code:
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
Initialize the CyanogenMod source repository
Enter the following to initialize the repository:
Note: Make sure the cm branch entered here is the one you wish to build and is supported on your device.
Code:
$ cd ~/android/system/
$ repo init -u https://github.com/CyanogenMod/android.git -b cm-13.0
$ repo sync
Download Device And Vendor Tree
Code:
$ cd android/system/device/
$ git clone https://github.com/cyanogenmod/android_device_qcom_common.git -b cm-13.0
$ cd android/system/device/google
$ git clone https://github.com/yavuz21/android_device_google_shamrock.git -b master
$ cd android/vendor/google
$ git clone https://github.com/yavuz21/proprietary_vendor_google_shamrock -b master
$ mkdir kernel/google/
$ cd kernel/google
$ git clone https://github.com/yavuz21/android_kernel_google_lego -b cm13.0
Rename folders and replace your romservice.xml looks like https://github.com/yavuz21/google_shamrock_manifest/blob/master/local_manifest.xml
Now Start Compiling
Code:
$ cd android/system
$ source build/envsetup.sh
$ export USE_CCACHE=1
$ prebuilts/misc/linux-x86/ccache/ccache -M 50G
$ export ANDROID_CCACHE_DIR="$HOME/android/.ccache"
$ export ANDROID_CCACHE_SIZE="50G"
$ lunch cm_shamrock-userdebug
$ croot
$ brunch shamrock
if you get
/obj permisson error wait stop error log and down ctrl+c keys stopp compling and restrat command
if you get error on framework assemblies you need linux system language change to english
if you get error install-recovery.sh you need copy stock rom system/bin/install-recovery.sh to android/system/out/ota_temp/system/bin folder
Builded cm https://mega.nz/#!Qh1iWJ7A!ADtWnPqC2VS7ucvH2vlb1jozQXuGvdRJe27mSZn0shA
rez
Thank you for this great guide. I'll try it. :good:
edit: Here's the first error
Code:
$ sudo apt install bison build-essential curl flex git gnupg gperf libesd0-dev liblz4-tool libncurses5-dev libsdl1.2-dev libwxgtk2.8-dev libxml2 libxml2-utils lzop maven openjdk-7-jdk pngcrush schedtool squashfs-tools xsltproc zip zlib1g-dev android-tools-adb android-tools-fsutils android-tools-fastboot android-tools-adbd
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package openjdk-7-jdk is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Unable to locate package libwxgtk2.8-dev
E: Couldn't find any package by glob 'libwxgtk2.8-dev'
E: Couldn't find any package by regex 'libwxgtk2.8-dev'
E: Package 'openjdk-7-jdk' has no installation candidate
nhmanas said:
Thank you for this great guide. I'll try it. :good:
edit: Here's the first error
Code:
$ sudo apt install bison build-essential curl flex git gnupg gperf libesd0-dev liblz4-tool libncurses5-dev libsdl1.2-dev libwxgtk2.8-dev libxml2 libxml2-utils lzop maven openjdk-7-jdk pngcrush schedtool squashfs-tools xsltproc zip zlib1g-dev android-tools-adb android-tools-fsutils android-tools-fastboot android-tools-adbd
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package openjdk-7-jdk is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Unable to locate package libwxgtk2.8-dev
E: Couldn't find any package by glob 'libwxgtk2.8-dev'
E: Couldn't find any package by regex 'libwxgtk2.8-dev'
E: Package 'openjdk-7-jdk' has no installation candidate
Click to expand...
Click to collapse
Hi this error Package manager because Your ubuntu is a new version you try this packages
libwxgtk2.8-dev → libwxgtk3.0-dev
openjdk-7-jdk → openjdk-8-jdk
thank you for guide