[solved] Cm7 build error - Android Q&A, Help & Troubleshooting

Problem sloved!
Hi!
I am trying to build cm7 from source for my acer liquid. But about 5 min after starting the build I run into this error:
Install: out/host/linux-x86/bin/simg2img
host Executable: sqlite3 (out/host/linux-x86/obj/EXECUTABLES/sqlite3_intermediates/sqlite3)
/usr/bin/ld: cannot find -lncurses
collect2: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/EXECUTABLES/sqlite3_intermediates/sqlite3] Error 1
I am using Ubuntu 12.04 64 bit on my Laptop with an AMD E-350 processor.
All help welcome,
Alex

iKrautDroid said:
Hi!
I am trying to build cm7 from source for my acer liquid. But about 5 min after starting the build I run into this error:
Install: out/host/linux-x86/bin/simg2img
host Executable: sqlite3 (out/host/linux-x86/obj/EXECUTABLES/sqlite3_intermediates/sqlite3)
/usr/bin/ld: cannot find -lncurses
collect2: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/EXECUTABLES/sqlite3_intermediates/sqlite3] Error 1
I am using Ubuntu 12.04 64 bit on my Laptop with an AMD E-350 processor.
All help welcome,
Alex
Click to expand...
Click to collapse
Make sure you have all the needed packages to build.

yea, install the required packages for 12.04 here

Hmm, i just ran:
sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-dev:i386 \
g++-multilib mingw32 openjdk-6-jdk tofrodos python-markdown \
libxml2-utils xsltproc zlib1g-dev:i386
again and it installed libncurses5, which for some reason wasnt installed when I first set up my build environment. Thanks lithid, problem solved!

Related

[HELP/Q&A][SourceBuilding,AllDevices] The Source Building Q&A Help 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:
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:
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:
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:
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:
./get-prebuilts
IF some dev helps you out show your appreciation by using the thanks button
reserved 2
the last one reserved
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:
build/core/base_rules.mk:171: *** frameworks/native/cmds/sensorservice: MODULE.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?
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 ----------
cbucz24 said:
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:
build/core/base_rules.mk:171: *** frameworks/native/cmds/sensorservice: MODULE.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?
Click to expand...
Click to collapse
It would help us more to understand the problem if u could provide the device tree that u r using ( Github Link )
cbucz24 said:
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:
build/core/base_rules.mk:171: *** frameworks/native/cmds/sensorservice: MODULE.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?
Click to expand...
Click to collapse
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
)
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/showthread.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.
[email protected] said:
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/showthread.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.
Click to expand...
Click to collapse
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..
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
ktempleton said:
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
Click to expand...
Click to collapse
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...
Great Thread
Really very helpful thread for beginners. Keep on updating this thread. I will post my errors later
RishabhAd said:
Really very helpful thread for beginners. Keep on updating this thread. I will post my errors later
Click to expand...
Click to collapse
thank you for the support spread the thread so that more people get benfited...
Sticky please
Help Please
Getting this error while compiling for Samsung Galaxy Fit. I have used CM 10's device config & did changes as mentioned. Please any there help me
http://pastebin.com/QW2ViEDk
RishabhAd said:
Getting this error while compiling for Samsung Galaxy Fit. I have used CM 10's device config & did changes as mentioned. Please any there help me
http://pastebin.com/QW2ViEDk
Click to expand...
Click to collapse
Code:
packages/apps/Bluetooth/src/com/android/bluetooth/map/BluetoothMasService.java:394: cannot find symbol
symbol : variable REQUEST_TYPE_MESSAGE_ACCESS
location: class android.bluetooth.BluetoothDevice
BluetoothDevice.REQUEST_TYPE_MESSAGE_ACCESS);
^
packages/apps/Bluetooth/src/com/android/bluetooth/map/BluetoothMasService.java:458: cannot find symbol
symbol : variable REQUEST_TYPE_MESSAGE_ACCESS
location: class android.bluetooth.BluetoothDevice
BluetoothDevice.REQUEST_TYPE_MESSAGE_ACCESS);
The part thats causing u the errors... !!!!
check the files BluetoothMasService.java and BluetoothMasService.java with the one in CM10 repo nd see wat is missing
RishabhAd said:
Getting this error while compiling for Samsung Galaxy Fit. I have used CM 10's device config & did changes as mentioned. Please any there help me
http://pastebin.com/QW2ViEDk
Click to expand...
Click to collapse
What repo are you using I'll post a thread in aa min you need to get the repo for utackas repo because pa repo is broke
http://forum.xda-developers.com/showthread.php?p=35507138
Don't know if your using this repo but I was getting errors like that until I switched
Sent from my SAMSUNG-SGH-I577 using xda premium
wilfredcool007 said:
Code:
packages/apps/Bluetooth/src/com/android/bluetooth/map/BluetoothMasService.java:394: cannot find symbol
symbol : variable REQUEST_TYPE_MESSAGE_ACCESS
location: class android.bluetooth.BluetoothDevice
BluetoothDevice.REQUEST_TYPE_MESSAGE_ACCESS);
^
packages/apps/Bluetooth/src/com/android/bluetooth/map/BluetoothMasService.java:458: cannot find symbol
symbol : variable REQUEST_TYPE_MESSAGE_ACCESS
location: class android.bluetooth.BluetoothDevice
BluetoothDevice.REQUEST_TYPE_MESSAGE_ACCESS);
The part thats causing u the errors... !!!!
check the files BluetoothMasService.java and BluetoothMasService.java with the one in CM10 repo nd see wat is missing
Click to expand...
Click to collapse
I tried i think this is d error of source.
ktempleton said:
What repo are you using I'll post a thread in aa min you need to get the repo for utackas repo because pa repo is broke
http://forum.xda-developers.com/showthread.php?p=35507138
Don't know if your using this repo but I was getting errors like that until I switched
Sent from my SAMSUNG-SGH-I577 using xda premium
Click to expand...
Click to collapse
u compiled by using utacka's repo? n what is d size of source?
ktempleton said:
What repo are you using I'll post a thread in aa min you need to get the repo for utackas repo because pa repo is broke
http://forum.xda-developers.com/showthread.php?p=35507138
Don't know if your using this repo but I was getting errors like that until I switched
Sent from my SAMSUNG-SGH-I577 using xda premium
Click to expand...
Click to collapse
Ummm, how long has the pa repo been broken? I did see that someone said something about it. Reason I'm asking, In building PAC and part of the manifest pulls from PA doesn't it? Could that be causing my problems?
Sent from my PC36100 using Tapatalk 2
Have you erased one of those files the error pointed to
My PAC runs fine but when I ran it for the first time I had maybe four duplicates I had to take care of
Sent from my SAMSUNG-SGH-I577 using xda premium
ktempleton said:
Have you erased one of those files the error pointed to
My PAC runs fine but when I ran it for the first time I had maybe four duplicates I had to take care of
Sent from my SAMSUNG-SGH-I577 using xda premium
Click to expand...
Click to collapse
well, i think i have to switch one or two more items in my local_manifest...i saw that git links i was using are not going to be updated any longer due to another dev going forward with the project.
but before i can switch them all out, i have to make sure i have the links right..but github is down so im kinda stuck for a bit

Having problems setting up build enviroment for building android

I'm trying to setup my build enviroment. I have mint linux 14 64bit. when following the guide on http://xda-university.com/as-a-developer/getting-started-building-android-from-source, i seem to be getting errors. the lines it says to use in terminal are
Code:
sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
libgl1-mesa-dev g++-multilib mingw32 openjdk-6-jdk tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev:i386
Here is the printout of result.
Code:
sudo apt-get install git-core gnupg flex bison gperf build-essential \
> zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
> libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
> libgl1-mesa-dev g++-multilib mingw32 openjdk-6-jdk tofrodos \
> python-markdown libxml2-utils xsltproc zlib1g-dev:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
gnupg is already the newest version.
libc6-dev is already the newest version.
zip is already the newest version.
The following extra packages will be installed:
g++-4.7-multilib gcc-4.7-base:i386 gcc-4.7-multilib gcc-multilib
icedtea-6-jre-cacao icedtea-6-jre-jamvm lib32gcc1 lib32gomp1 lib32itm1
lib32quadmath0 lib32stdc++6 libX11-dev libbison-dev libc6:i386
libc6-dev:i386 libc6-dev-i386 libc6-i386 libdrm-dev libdrm-intel1:i386
libdrm-nouveau2:i386 libdrm-radeon1:i386 libdrm2:i386 libexpat1:i386
libffi6:i386 libfl-dev libgcc1:i386 libgl1-mesa-dri:i386 libglapi-mesa:i386
libgpm2:i386 libice-dev libllvm3.1:i386 libncurses5:i386 libpciaccess0:i386
libpthread-stubs0 libpthread-stubs0:i386 libpthread-stubs0-dev
libpthread-stubs0-dev:i386 libreadline6:i386 libsm-dev libstdc++6:i386
libtinfo-dev:i386 libtinfo5:i386 libtxc-dxtn-s2tc0:i386 libx11-6:i386
libx11-doc libx11-xcb-dev libx11-xcb1:i386 libxau-dev libxau-dev:i386
libxau6:i386 libxcb-glx0:i386 libxcb-glx0-dev libxcb1:i386 libxcb1-dev
libxcb1-dev:i386 libxdamage-dev libxdamage1:i386 libxdmcp-dev
libxdmcp-dev:i386 libxdmcp6:i386 libxext-dev libxext6:i386 libxfixes-dev
libxfixes3:i386 libxt-dev libxxf86vm-dev libxxf86vm1:i386 lintian
linux-libc-dev linux-libc-dev:i386 m4 mesa-common-dev mingw32-binutils
mingw32-runtime openjdk-6-jre openjdk-6-jre-headless openjdk-6-jre-lib
python-pygments x11proto-damage-dev x11proto-dri2-dev x11proto-fixes-dev
x11proto-gl-dev x11proto-input-dev x11proto-kb-dev x11proto-xext-dev
x11proto-xf86vidmode-dev xorg-sgml-doctools xtrans-dev zlib1g:i386
Suggested packages:
bison-doc lib32stdc++6-4.7-dbg lib32mudflap0 glibc-doc:i386 locales:i386
manpages-dev:i386 libglide3:i386 gpm:i386 libice-doc ncurses-doc:i386
libsm-doc libxcb-doc libxcb-doc:i386 libxext-doc libxt-doc
binutils-multiarch libhtml-parser-perl libperlio-gzip-perl
libtext-template-perl gcc-doc cpp-doc openjdk-6-demo openjdk-6-source
visualvm sun-java6-fonts fonts-ipafont-gothic fonts-ipafont-mincho
ttf-telugu-fonts ttf-oriya-fonts ttf-kannada-fonts ttf-bengali-fonts
python-markdown-doc ttf-bitstream-vera
Recommended packages:
libx11-doc:i386 gcc:i386 c-compiler:i386
The following NEW packages will be installed:
bison curl flex g++-4.7-multilib g++-multilib gcc-4.7-base:i386
gcc-4.7-multilib gcc-multilib git-core gperf icedtea-6-jre-cacao
icedtea-6-jre-jamvm lib32gcc1 lib32gomp1 lib32itm1 lib32quadmath0
lib32stdc++6 libX11-dev libX11-dev:i386 libbison-dev libc6:i386
libc6-dev:i386 libc6-dev-i386 libc6-i386 libdrm-dev libdrm-intel1:i386
libdrm-nouveau2:i386 libdrm-radeon1:i386 libdrm2:i386 libexpat1:i386
libffi6:i386 libfl-dev libgcc1:i386 libgl1-mesa-dev libgl1-mesa-dri:i386
libgl1-mesa-glx:i386 libglapi-mesa:i386 libgpm2:i386 libice-dev
libllvm3.1:i386 libncurses5:i386 libncurses5-dev:i386 libpciaccess0:i386
libpthread-stubs0 libpthread-stubs0:i386 libpthread-stubs0-dev
libpthread-stubs0-dev:i386 libreadline6:i386 libreadline6-dev:i386 libsm-dev
libstdc++6:i386 libtinfo-dev:i386 libtinfo5:i386 libtxc-dxtn-s2tc0:i386
libx11-6:i386 libx11-doc libx11-xcb-dev libx11-xcb1:i386 libxau-dev
libxau-dev:i386 libxau6:i386 libxcb-glx0:i386 libxcb-glx0-dev libxcb1:i386
libxcb1-dev libxcb1-dev:i386 libxdamage-dev libxdamage1:i386 libxdmcp-dev
libxdmcp-dev:i386 libxdmcp6:i386 libxext-dev libxext6:i386 libxfixes-dev
libxfixes3:i386 libxml2-utils libxt-dev libxxf86vm-dev libxxf86vm1:i386
linux-libc-dev:i386 m4 mesa-common-dev mingw32 mingw32-binutils
mingw32-runtime openjdk-6-jdk openjdk-6-jre openjdk-6-jre-headless
openjdk-6-jre-lib python-markdown python-pygments tofrodos x11proto-core-dev
x11proto-damage-dev x11proto-dri2-dev x11proto-fixes-dev x11proto-gl-dev
x11proto-input-dev x11proto-kb-dev x11proto-xext-dev
x11proto-xf86vidmode-dev xorg-sgml-doctools xsltproc xtrans-dev zlib1g:i386
zlib1g-dev:i386
The following packages will be upgraded:
lintian linux-libc-dev
2 upgraded, 106 newly installed, 0 to remove and 120 not upgraded.
Need to get 45.6 MB/125 MB of archives.
After this operation, 487 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Err http://archive.ubuntu.com/ubuntu/ quantal-updates/main linux-libc-dev amd64 3.5.0-18.29
404 Not Found [IP: 91.189.91.15 80]
Err http://archive.ubuntu.com/ubuntu/ quantal-updates/universe openjdk-6-jre-lib all 6b24-1.11.5-0ubuntu1~12.10.1
404 Not Found [IP: 91.189.91.15 80]
Err http://archive.ubuntu.com/ubuntu/ quantal-updates/main linux-libc-dev i386 3.5.0-18.29
404 Not Found [IP: 91.189.91.15 80]
Err http://security.ubuntu.com/ubuntu/ quantal-security/universe openjdk-6-jre-lib all 6b24-1.11.5-0ubuntu1~12.10.1
404 Not Found [IP: 91.189.92.181 80]
Err http://security.ubuntu.com/ubuntu/ quantal-security/universe openjdk-6-jre-headless amd64 6b24-1.11.5-0ubuntu1~12.10.1
404 Not Found [IP: 91.189.92.181 80]
Err http://security.ubuntu.com/ubuntu/ quantal-security/universe icedtea-6-jre-cacao amd64 6b24-1.11.5-0ubuntu1~12.10.1
404 Not Found [IP: 91.189.92.181 80]
Err http://security.ubuntu.com/ubuntu/ quantal-security/universe icedtea-6-jre-jamvm amd64 6b24-1.11.5-0ubuntu1~12.10.1
404 Not Found [IP: 91.189.92.181 80]
Err http://security.ubuntu.com/ubuntu/ quantal-security/universe openjdk-6-jre amd64 6b24-1.11.5-0ubuntu1~12.10.1
404 Not Found [IP: 91.189.92.181 80]
Err http://security.ubuntu.com/ubuntu/ quantal-security/universe openjdk-6-jdk amd64 6b24-1.11.5-0ubuntu1~12.10.1
404 Not Found [IP: 91.189.92.181 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_3.5.0-18.29_amd64.deb 404 Not Found [IP: 91.189.91.15 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/o/openjdk-6/openjdk-6-jre-lib_6b24-1.11.5-0ubuntu1~12.10.1_all.deb 404 Not Found [IP: 91.189.92.181 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/o/openjdk-6/openjdk-6-jre-headless_6b24-1.11.5-0ubuntu1~12.10.1_amd64.deb 404 Not Found [IP: 91.189.92.181 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_3.5.0-18.29_i386.deb 404 Not Found [IP: 91.189.91.15 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/o/openjdk-6/icedtea-6-jre-cacao_6b24-1.11.5-0ubuntu1~12.10.1_amd64.deb 404 Not Found [IP: 91.189.92.181 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/o/openjdk-6/icedtea-6-jre-jamvm_6b24-1.11.5-0ubuntu1~12.10.1_amd64.deb 404 Not Found [IP: 91.189.92.181 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/o/openjdk-6/openjdk-6-jre_6b24-1.11.5-0ubuntu1~12.10.1_amd64.deb 404 Not Found [IP: 91.189.92.181 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/o/openjdk-6/openjdk-6-jdk_6b24-1.11.5-0ubuntu1~12.10.1_amd64.deb 404 Not Found [IP: 91.189.92.181 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Can anyone make heads or tails of this?
memphian said:
Can anyone make heads or tails of this?
Click to expand...
Click to collapse
The errors you are running into relate to the version of Java you are trying to install. Since JRE 6 and JDK 6 have long not been included in the main package repository you are getting an error saying that they can't be found, as a result you will need to install them from a different source. I would recommend taking a look at this guide on setting up the proper version of Java for your build environment (Even though the guide is for Ubuntu it should still work on Mint). Additionally you never want to use Icedtea version of Java for building Android and it is recommend to use the official Oracle/Sun JDK 6 and JRE 6 for building Android.
shimp208 said:
The errors you are running into relate to the version of Java you are trying to install. Since JRE 6 and JDK 6 have long not been included in the main package repository you are getting an error saying that they can't be found, as a result you will need to install them from a different source. I would recommend taking a look at this guide on setting up the proper version of Java for your build environment (Even though the guide is for Ubuntu it should still work on Mint). Additionally you never want to use Icedtea version of Java for building Android and it is recommend to use the official Oracle/Sun JDK 6 and JRE 6 for building Android.
Click to expand...
Click to collapse
I'll check it out thanks.
Sent from my Nexus 4 using xda app-developers app
i was running on the same problem you need to install oracle java 1.6 (jdk spew errors, for some reason)
Code:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install oracle-java6-installer
sudo update-alternatives --config java (Here choose oracle)
that should do, it did it for me ^^
Cia fellow Mint
Think I have gotten past that point. Thanks guys.
The problem I'm running into now is that on the tutorial it says that a command has to be added to ~/.bashrc script. However, I don't see ~/.bashrc in home folder.
Sent from my Nexus 4 using xda app-developers app
memphian said:
The problem I'm running into now is that on the tutorial it says that a command has to be added to ~/.bashrc script. However, I don't see ~/.bashrc in home folder.
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
link to tutorial pls?
glorer said:
link to tutorial pls?
Click to expand...
Click to collapse
http://xda-university.com/as-a-developer/getting-started-building-android-from-source
Here it is sorry.
Sent from my Nexus 4 using xda app-developers app
ok i used nemo and found the .profile, not the barsch thought soo
Code:
sudo nemo
menu view -> Show hidden files or ctrl+h
home
<user>
and it should be sitting there
glorer said:
ok i used nemo and found the .profile, not the barsch thought soo
Code:
sudo nemo
menu view -> Show hidden files or ctrl+h
home
<user>
and it should be sitting there
Click to expand...
Click to collapse
I'm thinking .profile should be used. Not sure.
memphian said:
I'm thinking .profile should be used. Not sure.
Click to expand...
Click to collapse
If you navigate to your home directory using the built in file manager the .bashrc and/or the .profile will be hidden by default by pressing ctrl + h should show all the hidden files in the home directory. The .bashrc is typically used in this step since not all versions of mint come with .bashrc you can create using the following command:
Code:
touch ~/.bashrc
Then you can input the command into the .bashrc file.
Sent from my Nexus 10 using xda premium

{Q} Android Kitchen

Heloo every one !
i just have format my win7 & install win8 64bit ,
i face problem with my kitchen !!
it was installed correctly before i format my pc !
but now it giving me this error after i press ./menu !!
Code:
[COLOR="Black"]Welcome to dsixda's Android Kitchen
Please wait ..
Error: The application 'gcc' is not installed - the kitchen
will not function properly without it. Ensure you did
not miss a step during installation! Refer to the
Android Kitchen FAQ at xda-developers.com for further
assistance.
** PLEASE READ THE FAQ BEFORE ASKING QUESTIONS!! **[/COLOR]
i tried to uninstall it and install fresh version but still i have this issue ?!
is my win8 64bit related to this issue ?
am working now to dev. a new rom but i face this problem and i need to fix my kitchen !?
i use some solution :
- re-install java sdk
-re-install gcc 3 times !
- fixing compatibility thing !
-all packages already checked & installed
-Also i move it to another part of hard desk !
i Already search google =D​
Try this...just in case you're missing anything. That is everything you could need to build from source...therefore should be good enough for kitchen
sudo apt-get install git gnupg flex bison gperf build-essential \
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
libgl1-mesa-dev g++-multilib mingw32 tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev:i386
Haze028 said:
Try this...just in case you're missing anything. That is everything you could need to build from source...therefore should be good enough for kitchen
sudo apt-get install git gnupg flex bison gperf build-essential \
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
libgl1-mesa-dev g++-multilib mingw32 tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev:i386
Click to expand...
Click to collapse
Code:
-bash: sudo: command not found
still same problem =)​
Probs
Hey, I've got a problem with KITCHEN on Porting a ROM. Here it is. The Kitchen's thread is closed, I dont have any idea who am I going to approach.
Converting to update-script, please wait ...
- Initial formatting ...
- assert ...
- write_raw_image ...
- run_program ...
- delete ...
- symlink ...
scripts/convert_updater_script: line 386: diff: command not found
ERROR: Problem converting symlinks
ChristianFerrer said:
Hey, I've got a problem with KITCHEN on Porting a ROM. Here it is. The Kitchen's thread is closed, I dont have any idea who am I going to approach.
Converting to update-script, please wait ...
- Initial formatting ...
- assert ...
- write_raw_image ...
- run_program ...
- delete ...
- symlink ...
scripts/convert_updater_script: line 386: diff: command not found
ERROR: Problem converting symlinks
Click to expand...
Click to collapse
Here Sir. This is the best and absolutely most functional Kitchen ever built to this point that's currently compatible to more devices than any others ever before this one built. This should take care of your needs and the Developer stays on the projects to improve functions and improve compatibility across the board. I highly doubt you'll be disappointed.
http://forum.xda-developers.com/showthread.php?p=62845957
Gratefully sent from my Rooted N9510 JollyRoger4G

errors while building the android source code

I trying to build the android source code in ubuntu 13.10, but i got so many errors
i have solved some of them then i got strucked . Now i want your help to build the androi source code,
before to that i will tel my system specification :
i am using Pentium D machine with 4 GB RAM with 50 GB free space in hard drive
using ubuntu 13.10 which is of 64 bit OS
And what are the packages i have installed
Python 2.7.5+, GNU Make 3.81, java version "1.6.0_45"
And i have followed the procedure for build such as :
a) G41M-Combo:~/bin/source $
: source build/envsetup.sh
b) G41M-Combo:~/bin/source $
: lunch
c) G41M-Combo:~/bin/source $
: 13
d) G41M-Combo:~/bin/source $
: make -j3
in 4th step i am using pentium D machine it is of 2 core so i have tried make -j2 also
but i did not got much difference
i am attaching the screen shot with this question ..
sayedjunedalam said:
I trying to build the android source code in ubuntu 13.10, but i got so many errors
i have solved some of them then i got strucked . Now i want your help to build the androi source code,
before to that i will tel my system specification :
i am using Pentium D machine with 4 GB RAM with 50 GB free space in hard drive
using ubuntu 13.10 which is of 64 bit OS
And what are the packages i have installed
Python 2.7.5+, GNU Make 3.81, java version "1.6.0_45"
And i have followed the procedure for build such as :
a) G41M-Combo:~/bin/source $
: source build/envsetup.sh
b) G41M-Combo:~/bin/source $
: lunch
c) G41M-Combo:~/bin/source $
: 13
d) G41M-Combo:~/bin/source $
: make -j3
in 4th step i am using pentium D machine it is of 2 core so i have tried make -j2 also
but i did not got much difference
i am attaching the screen shot with this question ..
Click to expand...
Click to collapse
Do you have the following packages installed:
bison build-essential curl flex git-core gnupg gperf libesd0-dev libncurses5-dev libsdl1.2-dev libwxgtk2.8-dev libxml2 libxml2-utils lzop openjdk-6-jdk openjdk-6-jre pngcrush schedtool squashfs-tools xsltproc zip zlib1g-dev g++-multilib gcc-multilib lib32ncurses5-dev lib32readline-gplv2-dev lib32z1-dev? (source: http://wiki.cyanogenmod.org/w/Build_for_bravo)

Errors during kernel compilation

Hi, now I'm trying to compile kernel from official sources for Google Pixel 4a (sunfish). I've got some errors, so I need some help.
UPD: I'm using Ubuntu 20.04 through WSL
What I did:
1. cloned this repo
2. downloaded toolchains from this repo. I tried every version except 7.x. First, I tried tools from google's repo, but i've got errors like "there's no gcc" or "gcc is too old -- you are using 4.9 instead of 5.1", so I found other repo.
3. Installed this packages:
sudo apt-get install git gnupg flex bison build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses-dev x11proto-core-dev libx11-dev lib32z1-dev libgl1-mesa-dev libxml2-utils xsltproc unzip fontconfig ccache u-boot-tools
Click to expand...
Click to collapse
4. followed this xda guide.
5. of course, set CROSS_COMPILE and CROSS_COMPILE_ARM32 in toolchain folders, also set
export ARCH=arm64 && export SUBARCH=arm64
6. run
make clean
make mrproper
make sunfish_defconfig
make -j$(nproc --all)
7. here is terminal output (pastebin). If you scroll, you can see, that there are errors during compilation process. And as I understand, process was stopped because of this errors.
I hope someone could help me to find out where is the problem.
Hi, did you solve the problem?
I encounter the same error recently, and I'm also curious about the solution
Thanks a lot

Categories

Resources