[GUIDE]Compile AOKP and CyanogenMod for HTC Sensation on Ubuntu (ONLY 64-bit)

mo976

Senior Member
Jun 17, 2008
1,144
1,170
0
Jerusalem Israel
Well I retried after a few hours and it just worked :). So repo is sync'ed up but now I'm getting a lot of warning (around 20+) while building and then build stops with some error. I'll try to debug them this evening.
Just some things to check make sure that the your using java 6 sdk not 7. Also in the bashrc file if you only copied and pasted blahbl4hblah instructions that you changed the 1.6.## to your java version in java paths, and that the file path for Android sdk is correct by default it unzips to a folder named android-sdk-Linux. While blahbl4hblah has android/sdk (tools and platform-tools) in the OP instructions.

Finally even if you don't have the info for a pastebin anymore what was the error message?
Sent from my HTC Sensation using xda premium
 
Last edited:
  • Like
Reactions: TiesB and webharsh

webharsh

Senior Member
May 23, 2012
283
83
0
Reston
Just some things to check make sure that the your using java 6 sdk not 7. Also in the bashrc file if you only copied and pasted blahbl4hblah instructions that you changed the 1.6.## to your java version in java paths, and that the file path for Android sdk is correct by default it unzips to a folder named android-sdk-Linux. While blahbl4hblah has android/sdk (tools and platform-tools) in the OP instructions.

Finally even if you don't have the info for a pastebin anymore what was the error message?
Sent from my HTC Sensation using xda premium
Thanks mo976. I checked java version, bashrc, android sdk before initializing repo and they are all fine. I was building late last night and I'm off to work right now. I actually want to debug my self first before troubling you guys :). I'll post errors once I get back home.

I was looking at Cyanogen mod wiki tutorial for building from source for other devices and I see following steps -
Code:
. build/envsetup.sh && breakfast toro

cd ~/android/system/device/samsung/toro/
./extract-files.sh
Don't we need this for pyramid as well? Sorry for my noobish questions.
 

blahbl4hblah

Inactive Recognized Developer
Oct 3, 2010
6,061
1,514
0
Los Angeles, CA
It's all good. Basically the errors that your most likely having is towards the reference that it needs something to pull.
Go to my github
www.github.com/blahbl4hblah

And look for the android_vendor_htc_pyramid and you'll see somewhere near the top showing zip. If you click on that it'll download the needed files

Once it's done downloading just extract it to vendor/htc/pyramid in your source folder

Be sure to create the following folders in this precise order in vendor

htc followed by pyramid and extract the files there.

And yes the htc must be lower case. Compiling is case sensitive

Sent from my iPhone
 
  • Like
Reactions: webharsh

blahbl4hblah

Inactive Recognized Developer
Oct 3, 2010
6,061
1,514
0
Los Angeles, CA
Code:
. build/envsetup.sh && breakfast toro

cd ~/android/system/device/samsung/toro/
./extract-files.sh
Don't we need this for pyramid as well? Sorry for my noobish questions.
Well you would do pyramid in our case. But you only need that if you want to make a vendor files for pyramid

For this you would need a pre built cm9 build for pyramid and adb working

Sent from my iPhone
 
  • Like
Reactions: webharsh

webharsh

Senior Member
May 23, 2012
283
83
0
Reston
It's all good. Basically the errors that your most likely having is towards the reference that it needs something to pull.
Go to my github
www.github.com/blahbl4hblah

And look for the android_vendor_htc_pyramid and you'll see somewhere near the top showing zip. If you click on that it'll download the needed files

Once it's done downloading just extract it to vendor/htc/pyramid in your source folder

Be sure to create the following folders in this precise order in vendor

htc followed by pyramid and extract the files there.

And yes the htc must be lower case. Compiling is case sensitive

Sent from my iPhone
Thanks. I'll give it a go once I get back home. Thanks a lot for helping out.
 

mo976

Senior Member
Jun 17, 2008
1,144
1,170
0
Jerusalem Israel
Your welcome the java error and sdk errors were a noobish error I made along with others late at night just trying to get it done...

Sent from my HTC Sensation using xda premium
 

blahbl4hblah

Inactive Recognized Developer
Oct 3, 2010
6,061
1,514
0
Los Angeles, CA
Your welcome the java error and sdk errors were a noobish error I made along with others late at night just trying to get it done...

Sent from my HTC Sensation using xda premium
Technically java 7 would work but it gives a lot of errors when compiling even if you change the setting in envsetup.sh

I tried it once and never went back to it

Sent from my iPhone
 

mo976

Senior Member
Jun 17, 2008
1,144
1,170
0
Jerusalem Israel
Technically java 7 would work but it gives a lot of errors when compiling even if you change the setting in envsetup.sh

I tried it once and never went back to it

Sent from my iPhone
I was referring to the bashrc errors I was able to at least follow the instructions even if I copied and pasted with out looking twice :)

Sent from my HTC Sensation using xda premium
 

webharsh

Senior Member
May 23, 2012
283
83
0
Reston
No problem just let me know if you get anymore errors.

I'll update the guide a little more once I get home

Sent from my iPhone
The error I was getting is -
Code:
make: *** No rule to make target `vendor/cm/proprietary/lib/armeabi/libjackpal-androidterm3.so', needed by `out/target/product/p1/system/lib/libjackpal-androidterm3.so'. Stop.
And I found the solution here.

It seems Term.apk unzipped during step 4e do not have /lib/armeabi/libjackpal-androidterm4.so.

The zip file in the linked post solved the issue for me.

Now the build is running since 2 hours. Hope it completes soon.
 

blahbl4hblah

Inactive Recognized Developer
Oct 3, 2010
6,061
1,514
0
Los Angeles, CA
The error I was getting is -
Code:
make: *** No rule to make target `vendor/cm/proprietary/lib/armeabi/libjackpal-androidterm3.so', needed by `out/target/product/p1/system/lib/libjackpal-androidterm3.so'. Stop.
And I found the solution here.

It seems Term.apk unzipped during step 4e do not have /lib/armeabi/libjackpal-androidterm4.so.

The zip file in the linked post solved the issue for me.

Now the build is running since 2 hours. Hope it completes soon.
Oh yeah, they updated that file, since you passed that, it should be all good now
 

fragargon

Senior Member
Feb 14, 2011
1,091
283
0
hi,

I m running ubuntu precise 64bit. the system is setup and running.
when i launch the cmd ". build/envsetup.sh; lunch aokp_pyramid-userdebug; mka bacon"
it gives me this:
Code:
[email protected]:~/android/system$ . build/envsetup.sh; lunch aokp_pyramid-userdebug; mka bacon
including device/generic/armv7-a-neon/vendorsetup.sh
including device/generic/armv7-a/vendorsetup.sh
including device/moto/wingray/vendorsetup.sh
including device/samsung/crespo/vendorsetup.sh
including device/samsung/maguro/vendorsetup.sh
including device/samsung/vibrantmtd/vendorsetup.sh
including device/ti/panda/vendorsetup.sh
including vendor/aokp/vendorsetup.sh
including sdk/bash_completion/adb.bash
build/core/product_config.mk:205: *** No matches for product "aokp_pyramid".  Stop.
cmd "lunch"
Code:
You're building on Linux

Lunch menu... pick a combo:
     1. mini_armv7a_neon-userdebug
     2. mini_armv7a-userdebug
     3. full_wingray-userdebug
     4. full_maguro-userdebug
     5. full_vibrantmtd-eng
     6. full_panda-userdebug
     7. aokp_maguro-userdebug
     8. aokp_toro-userdebug
     9. aokp_toroplus-userdebug
     10. aokp_grouper-userdebug
     11. aokp_crespo-userdebug
     12. aokp_crespo4g-userdebug
     13. aokp_captivatemtd-userdebug
     14. aokp_d2tmo-userdebug
     15. aokp_d2vzw-userdebug
     16. aokp_galaxysmtd-userdebug
     17. aokp_hercules-userdebug
     18. aokp_n7000-userdebug
     19. aokp_p3113-userdebug
     20. aokp_p5113-userdebug
     21. aokp_fascinatemtd-userdebug
     22. aokp_mezmerizemtd-userdebug
     23. aokp_showcasemtd-userdebug
     24. aokp_stingray-userdebug
     25. aokp_vibrantmtd-userdebug
     26. aokp_wingray-userdebug
so it seems that there s no more pre-builds for pyramid or whatever called ... pyramid product.
I try to googling for hours that issue but nothing found - damnit this really undocumented.
Could someone point me to the right direction to build an AOKP for my htc pyramid?

thanks for your help and/or answers.
 

fragargon

Senior Member
Feb 14, 2011
1,091
283
0
Lunch is not separate from it at all. Just copy and paste

But if your doing jellybean be sure that they have the branch because I don't know if they have one for pyramid or not

Sent from my iPhone
indeed, they havn't the branch yet, i should started from there.I m actually sync milestone. hope i succeed.
I would like to understand and try my self.