Recommended and tested is Ubuntu 12.04 but you can try with another distribution, install what maybe missing and build.
Recommended and tested is Ubuntu 12.04 but you can try with another distribution, install what maybe missing and build.
noob question...
i'm using arch...
there is a guide for set environment in arch or is better use virtual machine with ubuntu?
I ran into a similar issue a couple of months ago on Arch Linux... Granted, I had other reservations about the high maintenance nature of Arch, but the lack of documentation regarding Android building, had me frustrated. For now, I'm back in Mint 16, and things are great. Just my personal experience. :thumbup:
Sent from my Nexus 5 using Tapatalk
But How can I know the packages Name?
Inviato dal mio Nexus 4 utilizzando Tapatalk
Export includes file: packages/apps/Bluetooth/jni/Android.mk -- /home/preshothemannair/cm11/out/target/product/galaxysmtd/obj/SHARED_LIBRARIES/libbluetooth_jni_intermediates/export_includes
make: *** No rule to make target `/home/preshothemannair/cm11/out/target/common/obj/JAVA_LIBRARIES/com.android.emailcommon_intermediates/javalib.jar', needed by `/home/preshothemannair/cm11/out/target/common/obj/APPS/Bluetooth_intermediates/classes-full-debug.jar'. Stop.
make: *** Waiting for unfinished jobs....
logtags: /home/preshothemannair/cm11/out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/src/src/java/com/android/internal/telephony/EventLogTags.java <= frameworks/opt/telephony/src/java/com/android/internal/telephony/EventLogTags.logtags
Note: Some input files use 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.
Note: Some input files use 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.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
preshothemannair@Preshothemannair:~/cm11$
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="CyanogenMod/android_device_samsung_galaxysmtd" path="device/samsung/galaxysmtd" remote="github" />
<project name="CyanogenMod/android_packages_apps_SamsungServiceMode" path="packages/apps/SamsungServiceMode" remote="github" />
<project name="CyanogenMod/android_device_samsung_aries-common" path="device/samsung/aries-common" remote="github" />
<project name="CyanogenMod/android_kernel_samsung_aries" path="kernel/samsung/aries" remote="github" />
<project name="CyanogenMod/android_hardware_samsung" path="hardware/samsung" remote="github" />
<remove-project name="CyanogenMod/android_packages_apps_Apollo" />
<remove-project name="CyanogenMod/android_packages_apps_Browser" />
<remove-project name="CyanogenMod/android_packages_apps_Calendar" />
<remove-project name="CyanogenMod/android_packages_apps_CellBroadcastReceiver" />
<remove-project name="CyanogenMod/android_packages_apps_CMFileManager" />
<remove-project name="CyanogenMod/android_packages_apps_CMUpdater" />
<remove-project name="CyanogenMod/android_packages_apps_CMWallpapers" />
<remove-project name="CyanogenMod/android_packages_apps_DSPManager" />
<remove-project name="CyanogenMod/android_packages_apps_Email" />
<remove-project name="CyanogenMod/android_packages_apps_Exchange" />
<remove-project name="CyanogenMod/android_packages_apps_LockClock" />
<remove-project name="CyanogenMod/android_packages_apps_QuickSearchBox" />
<remove-project name="CyanogenMod/android_packages_apps_Stk" />
<remove-project name="CyanogenMod/android_packages_apps_VideoEditor" />
<remove-project name="CyanogenMod/android_packages_apps_VoicePlus" />
<remove-project name="CyanogenMod/android_packages_providers_CalendarProvider" />
<remove-project name="CyanogenMod/android_packages_screensavers_PhotoTable" />
<remove-project name="CyanogenMod/android_packages_screensavers_Basic" />
<remove-project name="CyanogenMod/android_packages_wallpapers_Basic" />
<remove-project name="CyanogenMod/android_packages_wallpapers_Galaxy4" />
<remove-project name="CyanogenMod/android_packages_wallpapers_HoloSpiral" />
<remove-project name="CyanogenMod/android_packages_wallpapers_LivePicker" />
<remove-project name="CyanogenMod/android_packages_wallpapers_MagicSmoke" />
<remove-project name="CyanogenMod/android_packages_wallpapers_MusicVisualization" />
<remove-project name="CyanogenMod/android_packages_wallpapers_NoiseField" />
<remove-project name="CyanogenMod/android_packages_wallpapers_PhaseBeam" />
</manifest>
smon@smon-VirtualBox:~$ repo init -u git://github.com/CyanogenMod/android.git -b cm-10.2
Get https://gerrit.googlesource.com/git-repo
error: couldn't connect to host while accessing https://gerrit.googlesource.com/git-repo/info/refs
fatal: HTTP request failed
Are you sure that you VB machine has Internet access? Try browsing. You may change from NAT to bridged network.
Sent from my DROID RAZR Maxx HD using Tapatalk
Are you in right folder like ~/android/system/?
I suppose that you've done all earlier steps (download repo, make it executable...)
zeljko@zeljko-ubuntu:~/android/system$ $ repo init -u git://github.com/CyanogenMod/android.git -b cm-11.0
Browsing is working generally, If I try to acess https://gerrit.googlesource.com/git-repo/info/refs it says Error: 406 (but that's the same in Windows).
Should I change it although?
Edit: Now I've tried, but the message is the same
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
sudo chmod +x ~/bin/repo
Hi
You probably need to download repo manually.. Google moved it not so long back which probably explains your error. Try
Code:curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo sudo chmod +x ~/bin/repo
Then do brunch!
Hope that helps
For reference : http://source.android.com/source/downloading.html
Note:
You want to use a 64-bit version of Linux. According to Google, 32-bit Linux environment will only work if you are building older versions prior to Gingerbread (2.3.x)/CyanogenMod 7.
Using a VM allows Linux to run as a guest inside your host computer-- a computer in a computer, if you will. If you hate Linux for whatever reason, you can always just uninstall and delete the whole thing. (There are plenty of places to find instructions for setting up Virtualbox with Ubuntu, so I’ll leave it to you to do that.)
Note:
You only need to do these steps the first time you build. If you previously prepared your build environment and have downloaded the CyanogenMod source code for another device, skip to Next Post.
Helpful Tip!
While the SDK contains lots of different things-- the two tools you are most interested in for building Android are adb and fastboot, located in the /platform-tools directory.
Helpful Tip!
A package manager in Linux is a system used to install or remove software (usually originating from the Internet) on your computer. With Ubuntu, you can use the Ubuntu Software Center. Even better, you may also use the apt-get install command directly in the Terminal. (Learn more about the apt packaging tool system from Wikipedia.)
git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.8-dev squashfs-tools build-essential zip curl
libncurses5-dev zlib1g-dev openjdk-6-jre openjdk-6-jdk pngcrush schedtool
g++-multilib lib32z1-dev lib32ncurses5-dev lib32readline-gplv2-dev gcc-4.7-multilib g++-4.5-multilib
libc6-dev x11proto-core-dev libx11-dev libgl1-mesa-dev mingw32 tofrodos python-markdown libxml2-utils
mkdir -p ~/bin
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
export PATH=${PATH}:~/bin
Helpful Tip!
You can make this change to the path permanent for all future Terminal sessions:
This will launch a graphical text editor. EnterCode:gedit ~/.bashrc
on its own line, then save the file.Code:export PATH=${PATH}:~/bin
mkdir -p ~/Source
cd Source
REPOSITORY'S OF FAMOUS ROMS (Select One)
PAC-Man :CM 11.0 :Code:repo init -u git://github.com/PAC-man/android.git -b cm-10.2
CM 10.1 :Code:repo init -u git://github.com/CyanogenMod/android.git -b cm-11.0
CM10 :Code:repo init -u git://github.com/CyanogenMod/android.git -b cm-10.2
Code:repo init -u git://github.com/CyanogenMod/android.git -b jellybean
repo sync
Helpful Tip!
The repo sync command is used to update the latest source code from CyanogenMod and Google. Remember it, as you can do it every few days to keep your code base fresh and up-to-date.
cd ~/Source/vendor/cm
./get-prebuilts
. build/envsetup.sh
breakfast ******
Helpful Tip!
If you get a command not found error for lunch, be sure you’ve done the “. build/envsetup.sh” command from ~/Source. Notice there is a period and space (“. ”) in that command.
./proprietary-files.sh
./extract-files.sh
Here ***** is Device codename and *** is the Phone Company like Samsung or HTC
For Example if my phone is note 2 then this will be the device path : ~/Source/device/Samsung/n7100
Note:
It’s important that these proprietary files are properly extracted and moved to the vendor directory. Without them, CyanogenMod will build without error, but you’ll be missing important functionality, such as the ability to see anything!
export USE_CCACHE=1
cd ~/Source
brunch *****
Helpful Tip!
If the build doesn't start, try lunch and choose your device from the menu. If that doesn't work, try breakfast and choose from the menu. The command make ***** should then work.
ERROR: signapk.jar failed: return code 1make: *** [out/target/product/n7100/cm_n7100-ota-eng.root.zip] Error 1
# cd $OUT
cm-10-20120718-UNOFFICIAL-***.zip
Compiling cm10.1 worked great for my sgs3 d2tmo.Thank's for the tutorial it's been fun setting this up.
Hi there,
I was finally able to compile Cyanogenmod from source.
So, thanks for your guide an your support.Thanks a lot.
Regards Koetermann
Used your guide again to setup my PC for building! Worked like a charm on 11.04
thanks for post this, great and simple guide for n00bs (like me)
This tutorial ROCKS! :good: . Successfully built i9300 starting from fresh ubuntu 12.10 installation w/o even a hickup
#include
#include /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");
}
What if i want to compile the PAC rom?
https://github.com/PAC-man
Downloading Ubuntu now!! Excited!!
Edit figured it out myself!!
repo init -u git://github.com/PAC-man/android.git -b jellybean
thankx anyways...
Isn't "apt" the "stock" package manager in (K)Ubuntu?
But I've another question @mithun46: Is it possible, that your guide only works on a 64bit edition of ubuntu? So that 32bit installations ain't supported?