Jump to content

Welcome to CyanogenMod

Welcome to our forum. Like most online communities you must register to post, but don't worry this is a simple free process that requires minimal information for you to signup. Be a part of the CyanogenMod Forum by signing in or creating an account. You can even sign in with your Facebook or Twitter account.
  • Start new topics and reply to others
  • Subscribe to topics and forums to get automatic updates
  • Get your own profile and make new friends
  • Download files attached to the forum.
  • Customize your experience here
  • Share your CyanogenMod experience!
Guest Message by DevFuse
 

Howto compile CM7 for ONE


  • Please log in to reply
7 replies to this topic

#1 cianuro

cianuro
  • Members
  • 4 posts
  • Device Model:Geeksphone ONE
  • MOD Version:Cyanogen 6.0.1
  • Recovery Image:ClockworkMod

Posted 30 June 2011 - 03:44 PM

Hi!

I've tried to compile CM7 for Geeksphone ONE following this instructions http://wiki.cyanogen...ogenMod_for_Z71 I know they are for Z71, but by comparing with other Compile pages from the wiki, my understanding is that I can follow most of this instructions with little change.

The changes I've made are simple:
Instead of    
cd ~/android/system/device/Commtiva/z71/ 
, I did
cd ~/android/system/device/geeksphone/one
before executing
./extract-files.sh


Finally, instead of    
. build/envsetup.sh && brunch z71
, I did    
. build/envsetup.sh && brunch one

However, I get the following error and the compiling finishes:

find: `vendor/motorola/jordan/lib/modules': No such file or directory
find: `vendor/motorola/jordan/lib/modules': No such file or directory
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.4
TARGET_PRODUCT=cyanogen_one
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GINGERBREAD
============================================
build/core/base_rules.mk:162: *** device/motorola/jordan/libcamera: MODULE.TARGET.SHARED_LIBRARIES.libcamera already defined by device/geeksphone/one/libcamera.  Stop.

I imagine maybe this is a "live" repository in which development is taking place, but I can't find any information on this. So, how do I compile the latest CM7 stable release for ONE?

Thank you, regards!

#2 Kyouko

Kyouko
  • Members
  • 2 posts
  • Device Model:|6|
  • MOD Version:DD 2.7 - CM6
  • Recovery Image:Amon_RA

Posted 30 June 2011 - 06:14 PM

I'm having the same issue with heroc, hd2 and everything else I try :/

Edited by Kyouko, 30 June 2011 - 06:14 PM.


#3 sej7278

sej7278
  • Members
  • 27 posts
  • Country:uk
  • Device Model:ZTE Blade
  • MOD Version:CM 7.1.0
  • Recovery Image:ClockworkMod

Posted 01 July 2011 - 11:36 AM

i'm getting the same trying to build for zte blade.

although today the build completes (didn't yesterday) i think because device/motorola/jordan/Android.mk got fixed:

git log Android.mk
commit 9ce47006c97eb3d17bb40b500e60a056f392da6a
Author: Koushik Dutta <[email protected]>
Date:   Thu Jun 30 13:49:25 2011 -0700

	dont include the libs in every build
	
	Change-Id: I34e7b708ffb2461bd3d2f80c794d441d4680dc7f

you still get errors, but it builds.

how a new device got added (after 7 patch reviews!) that breaks all other devices i don't know......

edit, its broken again after a repo sync:

Install: out/target/product/blade/data/app/test_vector_host
Copy: out/target/product/blade/obj/lib/liboemcamera.so
Copying device notice: out/target/product/blade/obj/NOTICE_FILES/CM/src/device.txt
Aidl: ApiDemos <= development/samples/ApiDemos/src/com/example/android/apis/app/ISecondary.aidl
acp: missing destination file
make: *** [out/target/product/blade/obj/NOTICE_FILES/CM/src/device.txt] Error 2
make: *** Waiting for unfinished jobs....
Aidl: FrameworksCoreTests <= frameworks/base/core/tests/coretests/src/android/os/IAidlTest.aidl

seems to be fixable by reverting this change to build/core/Makefile : http://review.cyanog...om/#change,6405

Edited by sej7278, 01 July 2011 - 12:11 PM.


#4 cianuro

cianuro
  • Members
  • 4 posts
  • Device Model:Geeksphone ONE
  • MOD Version:Cyanogen 6.0.1
  • Recovery Image:ClockworkMod

Posted 01 July 2011 - 01:22 PM

View Postsej7278, on 01 July 2011 - 11:36 AM, said:

i'm getting the same trying to build for zte blade.

although today the build completes (didn't yesterday) i think because device/motorola/jordan/Android.mk got fixed:

git log Android.mk
commit 9ce47006c97eb3d17bb40b500e60a056f392da6a
Author: Koushik Dutta <[email protected]>
Date:   Thu Jun 30 13:49:25 2011 -0700

	dont include the libs in every build
	
	Change-Id: I34e7b708ffb2461bd3d2f80c794d441d4680dc7f

you still get errors, but it builds.

how a new device got added (after 7 patch reviews!) that breaks all other devices i don't know......

edit, its broken again after a repo sync:

Install: out/target/product/blade/data/app/test_vector_host
Copy: out/target/product/blade/obj/lib/liboemcamera.so
Copying device notice: out/target/product/blade/obj/NOTICE_FILES/CM/src/device.txt
Aidl: ApiDemos <= development/samples/ApiDemos/src/com/example/android/apis/app/ISecondary.aidl
acp: missing destination file
make: *** [out/target/product/blade/obj/NOTICE_FILES/CM/src/device.txt] Error 2
make: *** Waiting for unfinished jobs....
Aidl: FrameworksCoreTests <= frameworks/base/core/tests/coretests/src/android/os/IAidlTest.aidl

seems to be fixable by reverting this change to build/core/Makefile : http://review.cyanog...om/#change,6405

Thank you! Do you know if there is a way to sync to the latest stable version, i.e. CM7.0.3?

#5 cianuro

cianuro
  • Members
  • 4 posts
  • Device Model:Geeksphone ONE
  • MOD Version:Cyanogen 6.0.1
  • Recovery Image:ClockworkMod

Posted 01 July 2011 - 01:44 PM

View Postcianuro, on 01 July 2011 - 01:22 PM, said:

Thank you! Do you know if there is a way to sync to the latest stable version, i.e. CM7.0.3?
It seems now that I can launch the compilation, but still I'm getting this error:

make: *** No rule to make target `vendor/geeksphone/one/proprietary/hostapd', needed by `out/target/product/one/system/bin/hostapd'.  Stop.
make: *** Waiting for unfinished jobs....

I think I'd like to compile just the official release. That should be troublefree and enought for my intents; but I still don't know how to sync to that particular version. Any ideas?

#6 sej7278

sej7278
  • Members
  • 27 posts
  • Country:uk
  • Device Model:ZTE Blade
  • MOD Version:CM 7.1.0
  • Recovery Image:ClockworkMod

Posted 01 July 2011 - 02:46 PM

not sure how to build a specific version no. i wouldn't bother with cm 7.0.3 though, its got pretty major bugs in it and less features than 7.1.0 RC1

i've just done another repo sync and seem to have a clean build now. i guess there's more going into git than is going via gerrit, the repo's have been in major flux for 2 days now.

#7 cianuro

cianuro
  • Members
  • 4 posts
  • Device Model:Geeksphone ONE
  • MOD Version:Cyanogen 6.0.1
  • Recovery Image:ClockworkMod

Posted 01 July 2011 - 02:57 PM

View Postsej7278, on 01 July 2011 - 02:46 PM, said:

not sure how to build a specific version no. i wouldn't bother with cm 7.0.3 though, its got pretty major bugs in it and less features than 7.1.0 RC1

Well, it was just an example. Of course I'll try to do my research over the last stable release, but I think it's quite interesting to have the exact code that produced a particular version, so as to ease testing (at least with us novices on compiling CM and Android).

#8 michelr

michelr
  • Members
  • 1 posts
  • Device Model:geeksphone One
  • MOD Version:7.0
  • Recovery Image:Cyanogen

Posted 10 September 2011 - 01:11 PM

Hi,

I'm a new member beacause I try to compile cyanogenmod 7.0 for my gpone (I want to identify a very specific audio problem).
I followed the instructions and everything was ok until this error :

View Postcianuro, on 01 July 2011 - 01:44 PM, said:

It seems now that I can launch the compilation, but still I'm getting this error:

make: *** No rule to make target `vendor/geeksphone/one/proprietary/hostapd', needed by `out/target/product/one/system/bin/hostapd'.  Stop.
make: *** Waiting for unfinished jobs....


The answer was to perform new 'repo sync' : I did it yesterday but there was no code update and the problem is still there.


The only difference in my installation comes from the problem on android.git.kernel.org : I had to modify the '.repo/manifest.xml' to define another source :
(from http://groups.google...9a9680399?fwc=2)
<<<<<<Before
<manifest>
  <remote  name="korg"
		   fetch="git://android.git.kernel.org/"
		   review="review.source.android.com" />

  <remote  name="github"
		   fetch="git://github.com/"
		   review="review.cyanogenmod.com" />

  <default revision="gingerbread"
		   remote="korg" />
======
<manifest>
  <remote  name="korg"
		   fetch="git://android.git.kernel.org/"
		   review="review.source.android.com" />

  <remote  name="github"
		   fetch="git://github.com/"
		   review="review.cyanogenmod.com" />

  <remote  name="omapzoom"
		   fetch="git://git.omapzoom.org/" />

  <default revision="gingerbread"
		   remote="omapzoom" />
>>>>>>After
Does the compile problem comes from this change ?

Thanks for any help,

Michel