FORUMS
Remove All Ads from XDA

 View Poll Results: Is This Thread helpfull?

yes
 
182 Vote(s)
95.29%
no
 
9 Vote(s)
4.71%

[HELP/Q&A][SourceBuilding,AllDevices] The Source Building Q&A Help Thread

1,604 posts
Thanks Meter: 1,289
 
Post Reply Email Thread
I have been wandering around the question and answers forum for some time now...i noticed a thing that most of them who had errors building from source have been left un answered..

i assume the following reasons for this

1)no dev would really care to search through and help out
2)users are scared to pm dev's
3)their posts are getting lost due to no actiivity within seconds of posting

as a outcome of all the above

the user isn't getting help

so i thought of making a thread for just source build errors..

so this this thread will focus on providing answers for all the problems that you are facing while building from source......


now i would like the users to follow a format similar to this for reporting

1)A full error encountered (pastie or any similar site's
2)your device name
3)your device tree that you have used for compiling(github link)
4)which rom are you building(cm aokp etc)
5)The guide which you are using to build(link)


another kind request please spread the link for this thread as many may benefit from it....

and find developers who are interested in helping....

feel free to give suggestions....

Before you move ahead make sure you copy paste this into the terminal

32bit users(ics & below)
HTML Code:
sudo apt-get install git-core gnupg flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev valgrind squashfs-tools zip curl pngcrush schedtool ia32-libs x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 libwxgtk2.6-dev
64bit ( you need this in addition with 32bit packages)

HTML Code:
sudo apt-get install git-core gnupg flex bison gperf build-essential \
  zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs \
  x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev \
  libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown \
  libxml2-utils gcc-4.3-multilib g++-4.3-multilib g++-multilib
common build errors


HTML Code:
build/core/product_config.mk:196: *** _nic.PRODUCTS.[[device/YG/m805_892x/device_m805_892x.mk]]: "device/YG/m805_892x/m805_892x-vendor-blobs.mk" does not exist. Stop.
cause for problem
device_m805_892x.mk
Here in your device folder it is calling a make file which is required for compiling as in this case (device_m805_892x.mk) has a reference to
(device/YG/m805_892x/m805_892x-vendor-blobs.mk)

check if

(m805_892x-vendor-blobs.mk)

is there in vendors folder... as in this case this is not found ..


solution

1)remove the reference to that makefile..
2)check the path for makefile(these are case sensitive)
3)correct the makefile in vendor folder to match that in the makefile that has called it


2)

HTML Code:
make: *** No rule to make target `vendor/cm/proprietary/RomManager.apk', needed by `out/target/product/m805_892x/system/app/RomManager.apk'. Stop.
make: *** Waiting for unfinished jobs....

cause for the problem

Here the script is written to copy rommanager.apk to system app during the build process...
But the apk is missing which is stoping the make process

solution


cd into vendors/cm

then type this

HTML Code:
./get-prebuilts

IF some dev helps you out show your appreciation by using the thanks button
The Following 79 Users Say Thank You to speed_bot For This Useful Post: [ View ] Gift speed_bot Ad-Free
22nd December 2012, 04:53 AM |#2  
speed_bot's Avatar
OP Senior Member
Flag Bangalore
Thanks Meter: 1,289
 
Donate to Me
More
reserved 2
The Following 12 Users Say Thank You to speed_bot For This Useful Post: [ View ] Gift speed_bot Ad-Free
22nd December 2012, 04:54 AM |#3  
speed_bot's Avatar
OP Senior Member
Flag Bangalore
Thanks Meter: 1,289
 
Donate to Me
More
the last one reserved
The Following 8 Users Say Thank You to speed_bot For This Useful Post: [ View ] Gift speed_bot Ad-Free
22nd December 2012, 06:07 AM |#4  
cbucz24's Avatar
Senior Member
Flag Central Florida
Thanks Meter: 2,999
 
Donate to Me
More
dude, you rock..

anyways, im still building the same pac...since my initial build wouldn't boot, i decided to switch up some of the internals...

PHP Code:
build/core/base_rules.mk:171: *** frameworks/native/cmds/sensorserviceMODULE.TARGET.EXECUTABLES.sensorservice already defined by frameworks/base/cmds/sensorservice.  Stop
Ive asked this question so many times, im ready to go nuts...ive looked thru every file and i cant find where these are referenced...where do i redirect this? and any other that may error back the already defined?
The Following 2 Users Say Thank You to cbucz24 For This Useful Post: [ View ] Gift cbucz24 Ad-Free
22nd December 2012, 06:23 AM |#5  
wilfredcool007's Avatar
Senior Member
Flag Chennai
Thanks Meter: 1,328
 
Donate to Me
More
Smile Contribute :
So..... A great thread to help all the beginners and the developers ( as everybody are prone to make mistakes ) I'd like to help too

But at first.... With reference to the problems I've encountered so far from different users.. all tat i see is most of them forget to install the necessary packages that are required for the build....

I've made a general command tat would hold most of the packages that are required for the build

For 32 Bit :

Code:
 sudo apt-get install git-core gnupg flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev valgrind squashfs-tools zip curl pngcrush schedtool ia32-libs x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 libwxgtk2.6-dev
For 64 Bit :

Code:
 sudo apt-get install git-core gnupg flex bison gperf build-essential \
  zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs \
  x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev \
  libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown \
  libxml2-utils gcc-4.3-multilib g++-4.3-multilib g++-multilib
Ps : I'd add more as and when needed as we encounter new problems

---------- Post added at 10:49 AM ---------- Previous post was at 10:49 AM ----------

Reserved just in case

---------- Post added at 10:53 AM ---------- Previous post was at 10:49 AM ----------

Quote:
Originally Posted by cbucz24

dude, you rock..

anyways, im still building the same pac...since my initial build wouldn't boot, i decided to switch up some of the internals...

PHP Code:
build/core/base_rules.mk:171: *** frameworks/native/cmds/sensorserviceMODULE.TARGET.EXECUTABLES.sensorservice already defined by frameworks/base/cmds/sensorservice.  Stop
Ive asked this question so many times, im ready to go nuts...ive looked thru every file and i cant find where these are referenced...where do i redirect this? and any other that may error back the already defined?

It would help us more to understand the problem if u could provide the device tree that u r using ( Github Link )
The Following 3 Users Say Thank You to wilfredcool007 For This Useful Post: [ View ] Gift wilfredcool007 Ad-Free
22nd December 2012, 06:37 AM |#6  
speed_bot's Avatar
OP Senior Member
Flag Bangalore
Thanks Meter: 1,289
 
Donate to Me
More
Quote:
Originally Posted by cbucz24

dude, you rock..

anyways, im still building the same pac...since my initial build wouldn't boot, i decided to switch up some of the internals...

PHP Code:
build/core/base_rules.mk:171: *** frameworks/native/cmds/sensorserviceMODULE.TARGET.EXECUTABLES.sensorservice already defined by frameworks/base/cmds/sensorservice.  Stop
Ive asked this question so many times, im ready to go nuts...ive looked thru every file and i cant find where these are referenced...where do i redirect this? and any other that may error back the already defined?

it seems that a single service (sensorservice) is defined in two places your tree would help... and spread the word about this thread as it ma help many people out just a request...

your error is like your destination is x

and there are two paths leading to it and you are confused which one to take..

so it has stopped ok try deleting

frameworks/base/cmds/sensorservice

or

frameworks/native/cmds/sensorservice

(one of two not both
)
The Following 2 Users Say Thank You to speed_bot For This Useful Post: [ View ] Gift speed_bot Ad-Free
22nd December 2012, 07:30 AM |#7  
Senior Member
Thanks Meter: 89
 
More
I would like to share some solution to some basic build problems. I did copy this from my own thread here:
http://forum.xda-developers.com/show....php?t=1935162


Fix problems... This the learning part.. Fun but can be really anoying to.

First i got my self:
make otatools did not work.
-Try make -j4 out/host/linux-x86/bin/unpackbootimg
-put "unpackbootimg" in ~/android/system/out/host/linux-x86/bin then i copy it to ~/usr/bin and set chmod.
Im did see a download if it some place. Google.
-copy unpackbootimg to into /usr/bin If it is there, make it executable.
make executable: sudo chmod a+x /usr/bin/unpackbootimg
-Run make clubber from The ICS folder. Than restart pc might help to.

Nother problem that i did run into trying to make ext4 images:
make_ext4fs -s -l 0x40000000 -a data out/target/product/m805_892x/userdata.img out/target/product/m805_892x/data
Need size of filesystem
make: *** [out/target/product/m805_892x/userdata.img] Error 4
make: *** Waiting for unfinished jobs..

The sizes need to be in bytes it seems.
make_ext4fs does not support hex in the -l argument
DD dump you´re partitions and you see the amount of bytes.

I put this in my BoardConfig.mk like this:
BOARD_USERDATAIMAGE_PARTITION_SIZE := 1073741824

Use this to finisch waiting jobs..:
make_ext4fs -s -l 1073741824 -a data out/target/product/m805_892x/userdata.img out/target/product/m805_892x/data

problem:
[email protected]:~/ICS$ make -j4 recoveryimage
build/core/product_config.mk:196: *** _nic.PRODUCTS.[[device/YG/m805_892x/device_m805_892x.mk]]: "device/YG/m805_892x/m805_892x-vendor-blobs.mk" does not exist. Stop.

The error is somewhare found in this file:
device_m805_892x.mk I used the original file and start adding things again.

Problem:
make: *** No rule to make target `vendor/cm/proprietary/RomManager.apk', needed by `out/target/product/m805_892x/system/app/RomManager.apk'. Stop.
make: *** Waiting for unfinished jobs....
Copy: out/target/product/m805_892x/system/bin/compcache
Copy: out/target/product/m805_892x/system/bin/handle_compcache
[email protected]:~/ICS$

For that use the terminal and cd to:
cd /vendor/cm
run:
./get-prebuilts

This will download the RomManager.apk and bit of other stuff.
The Following 4 Users Say Thank You to [email protected] For This Useful Post: [ View ] Gift [email protected] Ad-Free
22nd December 2012, 08:05 AM |#8  
speed_bot's Avatar
OP Senior Member
Flag Bangalore
Thanks Meter: 1,289
 
Donate to Me
More
Quote:
Originally Posted by [email protected]

I would like to share some solution to some basic build problems. I did copy this from my own thread here:
http://forum.xda-developers.com/show....php?t=1935162


Fix problems... This the learning part.. Fun but can be really anoying to.

First i got my self:
make otatools did not work.
-Try make -j4 out/host/linux-x86/bin/unpackbootimg
-put "unpackbootimg" in ~/android/system/out/host/linux-x86/bin then i copy it to ~/usr/bin and set chmod.
Im did see a download if it some place. Google.
-copy unpackbootimg to into /usr/bin If it is there, make it executable.
make executable: sudo chmod a+x /usr/bin/unpackbootimg
-Run make clubber from The ICS folder. Than restart pc might help to.

Nother problem that i did run into trying to make ext4 images:
make_ext4fs -s -l 0x40000000 -a data out/target/product/m805_892x/userdata.img out/target/product/m805_892x/data
Need size of filesystem
make: *** [out/target/product/m805_892x/userdata.img] Error 4
make: *** Waiting for unfinished jobs..

The sizes need to be in bytes it seems.
make_ext4fs does not support hex in the -l argument
DD dump you´re partitions and you see the amount of bytes.

I put this in my BoardConfig.mk like this:
BOARD_USERDATAIMAGE_PARTITION_SIZE := 1073741824

Use this to finisch waiting jobs..:
make_ext4fs -s -l 1073741824 -a data out/target/product/m805_892x/userdata.img out/target/product/m805_892x/data

problem:
[email protected]:~/ICS$ make -j4 recoveryimage
build/core/product_config.mk:196: *** _nic.PRODUCTS.[[device/YG/m805_892x/device_m805_892x.mk]]: "device/YG/m805_892x/m805_892x-vendor-blobs.mk" does not exist. Stop.

The error is somewhare found in this file:
device_m805_892x.mk I used the original file and start adding things again.

Problem:
make: *** No rule to make target `vendor/cm/proprietary/RomManager.apk', needed by `out/target/product/m805_892x/system/app/RomManager.apk'. Stop.
make: *** Waiting for unfinished jobs....
Copy: out/target/product/m805_892x/system/bin/compcache
Copy: out/target/product/m805_892x/system/bin/handle_compcache
[email protected]:~/ICS$

For that use the terminal and cd to:
cd /vendor/cm
run:
./get-prebuilts

This will download the RomManager.apk and bit of other stuff.

i will add this to op... i will expalin the problem the cause for it and the fix for it..i will explain stuff and type it in general for all devices..btw thanks for the reply ... will update the op soon..
The Following 3 Users Say Thank You to speed_bot For This Useful Post: [ View ] Gift speed_bot Ad-Free
22nd December 2012, 08:17 AM |#9  
ktempleton's Avatar
Senior Member
Flag Lebanon
Thanks Meter: 5,981
 
Donate to Me
More
So I've subscribed to this thread and I'll help when I can I've built about seven different ROMs and have had to solve allot of issues lol

Sent from my SAMSUNG-SGH-I577 using xda premium
The Following User Says Thank You to ktempleton For This Useful Post: [ View ] Gift ktempleton Ad-Free
22nd December 2012, 08:22 AM |#10  
speed_bot's Avatar
OP Senior Member
Flag Bangalore
Thanks Meter: 1,289
 
Donate to Me
More
Quote:
Originally Posted by ktempleton

So I've subscribed to this thread and I'll help when I can I've built about seven different ROMs and have had to solve allot of issues lol

Sent from my SAMSUNG-SGH-I577 using xda premium

thank you for helping..i too have done a lot of source builds and faced hell lot of problems so i made this as a general thread to get help and help other's too...
The Following 3 Users Say Thank You to speed_bot For This Useful Post: [ View ] Gift speed_bot Ad-Free
22nd December 2012, 08:56 AM |#11  
Senior Member
Flag Mumbai
Thanks Meter: 1,607
 
Donate to Me
More
Thumbs up Great Thread :)
Really very helpful thread for beginners. Keep on updating this thread. I will post my errors later
Post Reply Subscribe to Thread

Tags
cm7 cm9 source ics gb

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes