FORUMS

CloudPlayer: DIY HiFi Music Streaming Solution

In our Helpful Guide to Music Streaming Services, we mentioned several different services … more

Optimize Battery Life with This Useful App

Battery life is an important aspect of your smartphone, especially if you use it for more … more

The OnePlus 2 & The Year of Smartphone Compromises

We are very close to entering the last third of 2015, and we have now seen many of … more

OnePlus 2 Teardown, Major Android Vulnerability – XDA TV

The OnePlus 2 has been officially released. That and much more news is … more

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

1,246 posts
Thanks Meter: 1,814
 
Post Reply Subscribe to Thread Email Thread
23rd February 2013, 08:33 PM |#411  
ajhavery's Avatar
Senior Member
Flag Bangalore
Thanks Meter: 1,019
 
Donate to Me
More
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.
 
 
23rd February 2013, 09:14 PM |#412  
Koetermann's Avatar
Senior Member
Flag Bremen
Thanks Meter: 26
 
More
Quote:
Originally Posted by mithun46

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
24th February 2013, 10:59 AM |#413  
mithun46's Avatar
OP Senior Member
Flag ▒▅|▆|█|▆|▅▒
Thanks Meter: 1,814
 
Donate to Me
More
Quote:
Originally Posted by Koetermann

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??
24th February 2013, 10:59 AM |#414  
mithun46's Avatar
OP Senior Member
Flag ▒▅|▆|█|▆|▅▒
Thanks Meter: 1,814
 
Donate to Me
More
Quote:
Originally Posted by ajhavery

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
24th February 2013, 12:47 PM |#415  
AndyFox2011's Avatar
Senior Member
Thanks Meter: 544
 
Donate to Me
More
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
24th February 2013, 01:12 PM |#416  
mithun46's Avatar
OP Senior Member
Flag ▒▅|▆|█|▆|▅▒
Thanks Meter: 1,814
 
Donate to Me
More
Quote:
Originally Posted by AndyFox2011

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
24th February 2013, 01:43 PM |#417  
AndyFox2011's Avatar
Senior Member
Thanks Meter: 544
 
Donate to Me
More
Quote:
Originally Posted by mithun46

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
24th February 2013, 03:08 PM |#418  
AndyFox2011's Avatar
Senior Member
Thanks Meter: 544
 
Donate to Me
More
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!
24th February 2013, 04:58 PM |#419  
mithun46's Avatar
OP Senior Member
Flag ▒▅|▆|█|▆|▅▒
Thanks Meter: 1,814
 
Donate to Me
More
Re: COMPILE From Source For Any Phone On Linux Distros [BUILD ENVIRONMENT TO COMPILE]
Quote:
Originally Posted by AndyFox2011

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
24th February 2013, 05:00 PM |#420  
AndyFox2011's Avatar
Senior Member
Thanks Meter: 544
 
Donate to Me
More
Re: COMPILE From Source For Any Phone On Linux Distros [BUILD ENVIRONMENT TO COMPILE]
Quote:
Originally Posted by mithun46

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!
24th February 2013, 05:22 PM |#421  
ktempleton's Avatar
Senior Member
Flag Lebanon
Thanks Meter: 5,984
 
Donate to Me
More
Re: COMPILE From Source For Any Phone On Linux Distros [BUILD ENVIRONMENT TO COMPILE]
Actually the script also runs envsetup.sh it will include everything extra that the writers of the script wanted included in the ROM

Sent from my SPH-D710 using xda premium

Read More
Post Reply Subscribe to Thread

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

Advanced Search
Display Modes