Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,771,174 Members 51,693 Now Online
XDA Developers Android and Mobile Development Forum

COMPILE From Source For Any Phone On Linux Distros [BUILD ENVIRONMENT TO COMPILE]

Tip us?
 
ajhavery
Old
#411  
ajhavery's Avatar
Senior Member
Thanks Meter 1006
Posts: 873
Join Date: May 2011
Location: Bangalore

 
DONATE TO ME
I'm getting this error:

Code:
target thumb C: sshd <= external/openssh/monitor.c
target thumb C: sshd <= external/openssh/monitor_wrap.c
target thumb C: sshd <= external/openssh/kexdhs.c
target thumb C: sshd <= external/openssh/kexgexs.c
target thumb C: sshd <= external/openssh/kexecdhs.c
target thumb C: sshd <= external/openssh/auth-krb5.c
target thumb C: sshd <= external/openssh/auth2-gss.c
target thumb C: sshd <= external/openssh/gss-serv.c
target thumb C: sshd <= external/openssh/gss-serv-krb5.c
target thumb C: sshd <= external/openssh/loginrec.c
target thumb C: sshd <= external/openssh/auth-pam.c
target thumb C: sshd <= external/openssh/auth-shadow.c
target thumb C: sshd <= external/openssh/auth-sia.c
target thumb C: sshd <= external/openssh/md5crypt.c
target thumb C: sshd <= external/openssh/sftp-server.c
target thumb C: sshd <= external/openssh/sftp-common.c
external/openssh/sftp-common.c: In function 'ls_file':
external/openssh/sftp-common.c:193:9: warning: pointer targets in passing argument 1 of 'localtime' differ in signedness [-Wpointer-sign]
bionic/libc/include/time.h:73:20: note: expected 'time_t const *' but argument is of type 'long unsigned int const *'
target thumb C: sshd <= external/openssh/roaming_common.c
external/openssh/roaming_common.c: In function 'calculate_new_key':
external/openssh/roaming_common.c:238:2: warning: pointer targets in passing argument 2 of 'EVP_DigestFinal' differ in signedness [-Wpointer-sign]
external/openssl/include/openssl/evp.h:566:5: note: expected 'unsigned char *' but argument is of type 'char *'
target thumb C: sshd <= external/openssh/roaming_serv.c
target thumb C: sshd <= external/openssh/sandbox-null.c
target thumb C: sshd <= external/openssh/sandbox-rlimit.c
target thumb C: sshd <= external/openssh/sandbox-systrace.c
target thumb C++: stagefright <= frameworks/av/cmds/stagefright/stagefright.cpp
target thumb C++: stagefright <= frameworks/av/cmds/stagefright/jpeg.cpp
target thumb C++: stagefright <= frameworks/av/cmds/stagefright/SineSource.cpp
target thumb C++: stream <= frameworks/av/cmds/stagefright/stream.cpp
Import includes file: /home/ajhavery/android/paranoid/out/target/product/vision/obj/EXECUTABLES/surfaceflinger_intermediates/import_includes
target thumb C++: libsurfaceflinger <= frameworks/native/services/surfaceflinger/Client.cpp
target thumb C++: libsurfaceflinger <= frameworks/native/services/surfaceflinger/DisplayDevice.cpp
In file included from frameworks/native/services/surfaceflinger/LayerBase.h:37:0,
                 from frameworks/native/services/surfaceflinger/Layer.h:37,
                 from frameworks/native/services/surfaceflinger/Client.cpp:25:
frameworks/native/services/surfaceflinger/DisplayHardware/HWComposer.h:65:24: error: 'HWC_NUM_DISPLAY_TYPES' was not declared in this scope
In file included from frameworks/native/services/surfaceflinger/DisplayDevice.cpp:42:0:
frameworks/native/services/surfaceflinger/DisplayHardware/HWComposer.h:65:24: error: 'HWC_NUM_DISPLAY_TYPES' was not declared in this scope
In file included from frameworks/native/services/surfaceflinger/DisplayDevice.cpp:45:0:
frameworks/native/services/surfaceflinger/DisplayDevice.h:57:31: error: 'HWC_DISPLAY_PRIMARY' was not declared in this scope
frameworks/native/services/surfaceflinger/DisplayDevice.h:58:31: error: 'HWC_DISPLAY_EXTERNAL' was not declared in this scope
frameworks/native/services/surfaceflinger/DisplayDevice.h:59:31: error: 'HWC_NUM_DISPLAY_TYPES' was not declared in this scope
frameworks/native/services/surfaceflinger/DisplayDevice.h:60:31: error: 'HWC_NUM_DISPLAY_TYPES' was not declared in this scope
In file included from frameworks/native/services/surfaceflinger/SurfaceFlinger.h:49:0,
                 from frameworks/native/services/surfaceflinger/Client.cpp:27:
frameworks/native/services/surfaceflinger/DisplayDevice.h:57:31: error: 'HWC_DISPLAY_PRIMARY' was not declared in this scope
frameworks/native/services/surfaceflinger/DisplayDevice.h:58:31: error: 'HWC_DISPLAY_EXTERNAL' was not declared in this scope
frameworks/native/services/surfaceflinger/DisplayDevice.h:59:31: error: 'HWC_NUM_DISPLAY_TYPES' was not declared in this scope
frameworks/native/services/surfaceflinger/DisplayDevice.h:60:31: error: 'HWC_NUM_DISPLAY_TYPES' was not declared in this scope
make: *** [/home/ajhavery/android/paranoid/out/target/product/vision/obj/SHARED_LIBRARIES/libsurfaceflinger_intermediates/Client.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [/home/ajhavery/android/paranoid/out/target/product/vision/obj/SHARED_LIBRARIES/libsurfaceflinger_intermediates/DisplayDevice.o] Error 1
Please suggest.

Compiling for htc vision on ubuntu 12.10.
If you appreciate my work and would like to support, use the "Donate To Me" Button under my Avatar or use the Donate button in my siganture, Thanks!


Hit the thanks button if I have helped.

My Website: www.progeeky.com

My Devices: Current : Galaxy S4 GT-I9500
Old: HTC Desire Z

My dropbox referral link : http://db.tt/G9WTD3LK
 
Koetermann
Old
#412  
Koetermann's Avatar
Senior Member
Thanks Meter 24
Posts: 107
Join Date: Mar 2011
Location: Bremen
Quote:
Originally Posted by mithun46 View Post
Extract proprietary blobs

Now ensure that your Phone is connected to your computer via the USB cable and that you are in the ~/Source/device/***/***** directory (you can cd ~/Source/device/***/****** if necessary). Then run the this script:
Code:
./proprietary-files.sh
or
Code:
./extract-files.sh
You should see the proprietary files (aka “blobs”) get pulled from the device and moved to the right place in the vendor directory. If you see errors about adb being unable to pull the files, adb may not be in the path of execution
I'm not really sure if I'm right. But maybe it will help some users if you point out that this is the only step where you need to have root access. Adb doesn't work with normal user rights.

Regards

Koetermann
 
mithun46
Old
#413  
mithun46's Avatar
Recognized Contributor - OP
Thanks Meter 1657
Posts: 1,231
Join Date: Oct 2012
Location: ▒▅|▆|█|▆|▅▒

 
DONATE TO ME
Quote:
Originally Posted by Koetermann View Post
I'm not really sure if I'm right. But maybe it will help some users if you point out that this is the only step where you need to have root access. Adb doesn't work with normal user rights.

Regards

Koetermann
if it have cyanogenmod then it will be rooted duh??
If you consider my efforts worthwhile then Donate or Thank me
 
mithun46
Old
#414  
mithun46's Avatar
Recognized Contributor - OP
Thanks Meter 1657
Posts: 1,231
Join Date: Oct 2012
Location: ▒▅|▆|█|▆|▅▒

 
DONATE TO ME
Quote:
Originally Posted by ajhavery View Post
I'm getting this error:

Code:
target thumb C: sshd <= external/openssh/monitor.c
target thumb C: sshd <= external/openssh/monitor_wrap.c
target thumb C: sshd <= external/openssh/kexdhs.c
target thumb C: sshd <= external/openssh/kexgexs.c
target thumb C: sshd <= external/openssh/kexecdhs.c
target thumb C: sshd <= external/openssh/auth-krb5.c
target thumb C: sshd <= external/openssh/auth2-gss.c
target thumb C: sshd <= external/openssh/gss-serv.c
target thumb C: sshd <= external/openssh/gss-serv-krb5.c
target thumb C: sshd <= external/openssh/loginrec.c
target thumb C: sshd <= external/openssh/auth-pam.c
target thumb C: sshd <= external/openssh/auth-shadow.c
target thumb C: sshd <= external/openssh/auth-sia.c
target thumb C: sshd <= external/openssh/md5crypt.c
target thumb C: sshd <= external/openssh/sftp-server.c
target thumb C: sshd <= external/openssh/sftp-common.c
external/openssh/sftp-common.c: In function 'ls_file':
external/openssh/sftp-common.c:193:9: warning: pointer targets in passing argument 1 of 'localtime' differ in signedness [-Wpointer-sign]
bionic/libc/include/time.h:73:20: note: expected 'time_t const *' but argument is of type 'long unsigned int const *'
target thumb C: sshd <= external/openssh/roaming_common.c
external/openssh/roaming_common.c: In function 'calculate_new_key':
external/openssh/roaming_common.c:238:2: warning: pointer targets in passing argument 2 of 'EVP_DigestFinal' differ in signedness [-Wpointer-sign]
external/openssl/include/openssl/evp.h:566:5: note: expected 'unsigned char *' but argument is of type 'char *'
target thumb C: sshd <= external/openssh/roaming_serv.c
target thumb C: sshd <= external/openssh/sandbox-null.c
target thumb C: sshd <= external/openssh/sandbox-rlimit.c
target thumb C: sshd <= external/openssh/sandbox-systrace.c
target thumb C++: stagefright <= frameworks/av/cmds/stagefright/stagefright.cpp
target thumb C++: stagefright <= frameworks/av/cmds/stagefright/jpeg.cpp
target thumb C++: stagefright <= frameworks/av/cmds/stagefright/SineSource.cpp
target thumb C++: stream <= frameworks/av/cmds/stagefright/stream.cpp
Import includes file: /home/ajhavery/android/paranoid/out/target/product/vision/obj/EXECUTABLES/surfaceflinger_intermediates/import_includes
target thumb C++: libsurfaceflinger <= frameworks/native/services/surfaceflinger/Client.cpp
target thumb C++: libsurfaceflinger <= frameworks/native/services/surfaceflinger/DisplayDevice.cpp
In file included from frameworks/native/services/surfaceflinger/LayerBase.h:37:0,
                 from frameworks/native/services/surfaceflinger/Layer.h:37,
                 from frameworks/native/services/surfaceflinger/Client.cpp:25:
frameworks/native/services/surfaceflinger/DisplayHardware/HWComposer.h:65:24: error: 'HWC_NUM_DISPLAY_TYPES' was not declared in this scope
In file included from frameworks/native/services/surfaceflinger/DisplayDevice.cpp:42:0:
frameworks/native/services/surfaceflinger/DisplayHardware/HWComposer.h:65:24: error: 'HWC_NUM_DISPLAY_TYPES' was not declared in this scope
In file included from frameworks/native/services/surfaceflinger/DisplayDevice.cpp:45:0:
frameworks/native/services/surfaceflinger/DisplayDevice.h:57:31: error: 'HWC_DISPLAY_PRIMARY' was not declared in this scope
frameworks/native/services/surfaceflinger/DisplayDevice.h:58:31: error: 'HWC_DISPLAY_EXTERNAL' was not declared in this scope
frameworks/native/services/surfaceflinger/DisplayDevice.h:59:31: error: 'HWC_NUM_DISPLAY_TYPES' was not declared in this scope
frameworks/native/services/surfaceflinger/DisplayDevice.h:60:31: error: 'HWC_NUM_DISPLAY_TYPES' was not declared in this scope
In file included from frameworks/native/services/surfaceflinger/SurfaceFlinger.h:49:0,
                 from frameworks/native/services/surfaceflinger/Client.cpp:27:
frameworks/native/services/surfaceflinger/DisplayDevice.h:57:31: error: 'HWC_DISPLAY_PRIMARY' was not declared in this scope
frameworks/native/services/surfaceflinger/DisplayDevice.h:58:31: error: 'HWC_DISPLAY_EXTERNAL' was not declared in this scope
frameworks/native/services/surfaceflinger/DisplayDevice.h:59:31: error: 'HWC_NUM_DISPLAY_TYPES' was not declared in this scope
frameworks/native/services/surfaceflinger/DisplayDevice.h:60:31: error: 'HWC_NUM_DISPLAY_TYPES' was not declared in this scope
make: *** [/home/ajhavery/android/paranoid/out/target/product/vision/obj/SHARED_LIBRARIES/libsurfaceflinger_intermediates/Client.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [/home/ajhavery/android/paranoid/out/target/product/vision/obj/SHARED_LIBRARIES/libsurfaceflinger_intermediates/DisplayDevice.o] Error 1
Please suggest.

Compiling for htc vision on ubuntu 12.10.
only cm based roms here
If you consider my efforts worthwhile then Donate or Thank me
 
AndyFox2011
Old
#415  
AndyFox2011's Avatar
Senior Member
Thanks Meter 540
Posts: 1,632
Join Date: Sep 2011

 
DONATE TO ME
Okay so i got the BeerGang repo, pasted in my device config as its not in the CM repo (desire hd -- ace)

first i ran . build/envsetup.sh and it lists the ace, but then i ran brunch and it trys to get the device config from the cm repo

then i realised that i should use the jb-build.sh, but that doesn't list my cm_ace-userdebug or cm_ace-eng

so how can i add it in too get it to build?


Thanks,
Andy

Current device: Galaxy Note 2 (N7100)
Backup phone: HTC Desire
 
mithun46
Old
#416  
mithun46's Avatar
Recognized Contributor - OP
Thanks Meter 1657
Posts: 1,231
Join Date: Oct 2012
Location: ▒▅|▆|█|▆|▅▒

 
DONATE TO ME
Quote:
Originally Posted by AndyFox2011 View Post
Okay so i got the BeerGang repo, pasted in my device config as its not in the CM repo (desire hd -- ace)

first i ran . build/envsetup.sh and it lists the ace, but then i ran brunch and it trys to get the device config from the cm repo

then i realised that i should use the jb-build.sh, but that doesn't list my cm_ace-userdebug or cm_ace-eng

so how can i add it in too get it to build?


Thanks,
Andy
gimme teamviewer
If you consider my efforts worthwhile then Donate or Thank me
 
AndyFox2011
Old
#417  
AndyFox2011's Avatar
Senior Member
Thanks Meter 540
Posts: 1,632
Join Date: Sep 2011

 
DONATE TO ME
Quote:
Originally Posted by mithun46 View Post
gimme teamviewer
just installing it, will pm you password and stuff of my pc

---------- Post added at 01:43 PM ---------- Previous post was at 01:36 PM ----------

@mithun46

nevermind, fixed it, i was missing some vendor folders it needed

Current device: Galaxy Note 2 (N7100)
Backup phone: HTC Desire
 
AndyFox2011
Old
#418  
AndyFox2011's Avatar
Senior Member
Thanks Meter 540
Posts: 1,632
Join Date: Sep 2011

 
DONATE TO ME
Default Re: COMPILE From Source For Any Phone On Linux Distros [BUILD ENVIRONMENT TO COMPILE]

What's the difference between using jb-build.sh and envsetup.sh?

Raise your weapon!

Current device: Galaxy Note 2 (N7100)
Backup phone: HTC Desire
 
mithun46
Old
#419  
mithun46's Avatar
Recognized Contributor - OP
Thanks Meter 1657
Posts: 1,231
Join Date: Oct 2012
Location: ▒▅|▆|█|▆|▅▒

 
DONATE TO ME
Default Re: COMPILE From Source For Any Phone On Linux Distros [BUILD ENVIRONMENT TO COMPILE]

Quote:
Originally Posted by AndyFox2011 View Post
What's the difference between using jb-build.sh and envsetup.sh?

Raise your weapon!
Jb build is a build script like it tells pc to do that and this
While envsetup. Gives assigns this and that
hope I raised my weapon

Sent from my GT-P7300 using xda app-developers app
If you consider my efforts worthwhile then Donate or Thank me
 
AndyFox2011
Old
#420  
AndyFox2011's Avatar
Senior Member
Thanks Meter 540
Posts: 1,632
Join Date: Sep 2011

 
DONATE TO ME
Default Re: COMPILE From Source For Any Phone On Linux Distros [BUILD ENVIRONMENT TO COMPILE]

Quote:
Originally Posted by mithun46 View Post
Jb build is a build script like it tells pc to do that and this
While envsetup. Gives assigns this and that
hope I raised my weapon

Sent from my GT-P7300 using xda app-developers app
So I should run both?

Why does everyone comment on my tapatalk signature :/

Raise your weapon!

Current device: Galaxy Note 2 (N7100)
Backup phone: HTC Desire

Tags
*abhi boomed here*, compile android from source, easy, ubuntu 12.10
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes