You are not logged in.

#1 2010-11-18 22:01:16

jai134
Member
Registered: 2008-11-26
Posts: 234

Trying to build CyanogenMod from source

Hello. Probably wrong forum but I don't know where o post it. When I try to run this command:
$make -j`grep 'processor' /proc/cpuinfo | wc -l` I get an error-message saying:
make: *** No target and makefile found. Stopping.
(sorry if not correct translated, I have it in Swedish)
All commands are like this. From XDA-Developers:
Howto build for GT-I9000:
mkdir -p ~/android/system
cd ~/android/system/
repo init -u git://github.com/codeworkx/android.git -b froyo
repo sync

cd ~/android/system/vendor/cyanogen/
./get-rommanager
./get-google-files -v HDPI

cd ~/android/system/
cp ./vendor/cyanogen/products/cyanogen_galaxys.mk ./buildspec.mk
. build/envsetup.sh
lunch cyanogen_galaxys-eng

make -j`grep 'processor' /proc/cpuinfo | wc -l`
I don't get any errors from previous commands. Just the last one.

I wonder if someone can help me with this. I'm on an Arch x86_64 install.

Offline

#2 2010-11-18 22:51:51

Meskarune
Member
From: USA
Registered: 2009-03-21
Posts: 348
Website

Re: Trying to build CyanogenMod from source

This might be of some help: http://forum.cyanogenmod.com/topic/8139 … entry71269

I"m sure how to looke for swedish how to's. smile


Homepage  | Arch Linux Women | Arch Linux Classroom
Acer Aspire E5-575G-53VG:
Intel Dual-Core i5-6200U 2.3 GHz; Skylake rev3, 8GB DDR4 ram, Intel HD Graphics 520, NVIDIA GeForce 940MX
Qualcomm Atheros QCA9377 802.11ac,  Realtek RTL8111/8168/8411 Gigabit Ethernet Controller

Offline

#3 2010-11-19 10:36:22

jai134
Member
Registered: 2008-11-26
Posts: 234

Re: Trying to build CyanogenMod from source

No, saw that page yesterday. Didn't help me. I'm following the guide cutting and pasting the commands but make still is doing nothing. I'm shure I'm missing something, brain perhaps, but I really would like to learn howto build this. Are there any Arch specific things that are different from Ubuntu? The guide on CyanogenMod are written for Ubuntu.

Offline

#4 2010-11-19 17:10:34

Zeist
Arch Linux f@h Team Member
Registered: 2008-07-04
Posts: 532

Re: Trying to build CyanogenMod from source

What does

find ~/android -name Makefile

tell you?


I haven't lost my mind; I have a tape back-up somewhere.
Twitter

Offline

#5 2010-11-19 22:43:43

jai134
Member
Registered: 2008-11-26
Posts: 234

Re: Trying to build CyanogenMod from source

Thankyou! I didn't move the makefile to my build-dir. That was the mistake. At last. Now I have to download the PRODUCT_POLICY or something like that. I'll found out what to do, I think. smile

Edit! Wasn't that easy. Now I get another error:

$ make -j`grep 'processor' /proc/cpuinfo | wc -l`
File "build/tools/findleaves.py", line 95
print r
^
SyntaxError: invalid syntax
File "build/tools/findleaves.py", line 95
print r
^
SyntaxError: invalid syntax
frameworks/policies/base/PolicyConfig.mk:22: *** No module defined for the given PRODUCT_POLICY (android.policy_phone). Stopping.

Anyone who knows about this. Can be something with the Java-version. It seems like I need Java-1.6 but I don't know how to get it. I think my version is 1.9.
EDIT! It is due to Python. I need Python2. I am giving up. To complicated for me.

Last edited by jai134 (2010-11-21 21:15:15)

Offline

Board footer

Powered by FluxBB