HI,
I am trying to port android on imx6 sabrelite by following Android_user_Guide.pdf i followed the steps mentioned in the document and facing with errors
$ cd ~/myandroid
$ source build/envsetup.sh
$ lunch sabresd_6dq-user
$ make
errors :
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
UIMAGE arch/arm/boot/uImage
Image Name: Linux-3.0.35-06114-g3b96084
Created: Sat Dec 14 11:42:14 2013
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 4709256 Bytes = 4598.88 kB = 4.49 MB
Load Address: 10008000
Entry Point: 10008000
Image arch/arm/boot/uImage is ready
make[1]: Leaving directory `/home/sasidhar/competency_imx/android/myandroid/kernel_imx'
install -D kernel_imx/arch/arm/boot/uImage out/target/product/sabresd_6dq/uImage
install -D kernel_imx/arch/arm/boot/zImage out/target/product/sabresd_6dq/kernel
host Executable: mkfs.ubifs (out/host/linux-x86/obj/EXECUTABLES/mkfs.ubifs_intermediates/mkfs.ubifs)
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libz.a when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/liblzo2.so when searching for -llzo2
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/liblzo2.a when searching for -llzo2
/usr/bin/ld: cannot find -llzo2
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libuuid.so when searching for -luuid
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libuuid.a when searching for -luuid
/usr/bin/ld: cannot find -luuid
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libm.so when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libm.a when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libc.a when searching for -lc
collect2: error: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/EXECUTABLES/mkfs.ubifs_intermediates/mkfs.ubifs] Error 1
Please help me to fix these errors.
Thanks & Regards,
Pratik
Solved! Go to Solution.
Hi Pratik,
You need to install these packages needed for building android as follows:
$sudo apt-get install uuid uuid-dev
$sudo apt-get install zlib1g-dev liblz-dev
$sudo apt-get install liblzo2-2 liblzo2-dev
You can have a try. Hope this can help you~~
Best Regards
Dan
Hi Pratik,
You need to install these packages needed for building android as follows:
$sudo apt-get install uuid uuid-dev
$sudo apt-get install zlib1g-dev liblz-dev
$sudo apt-get install liblzo2-2 liblzo2-dev
You can have a try. Hope this can help you~~
Best Regards
Dan
Hi Dan,
Thanks for your suggestions, now its working fine.
Thanks & Regards,
RBT
Hi Pratik,
I meet the same problem with you. Have you solved by run these commends as Dan post ?
I have tried ,but .......
Could you please share your methods? Thanks a lot.
Hi Dream,
You can follow the thread https://community.freescale.com/thread/303536
To fix the error, you should install 32 bits lzo2 and luuid to your 64 bits ubuntu.
I installed liblzo2-2_2.05-1_i386.deb ,liblzo2-dev_2.05-1_i386.deb and uuid-dev_2.20.1-1ubuntu3_i386.deb
To install liblzo2
$ sudo mkdir /usr/lib/liblzo2_i386
$ sudo dpkg -x liblzo2-dev_2.05-1_i386.deb /usr/lib/liblzo2_i386/
$ sudo dpkg -x liblzo2-2_2.05-1_i386.deb /usr/lib/liblzo2_i386/
$ cd /usr/lib/
$ sudo rm liblzo2.a
$ sudo rm liblzo2.so
$ sudo rm liblzo2.so.2
$ sudo ln -s liblzo2_i386/usr/lib/liblzo2.a liblzo2.a
$ sudo ln -s liblzo2_i386/usr/lib/liblzo2.so.2.0.0 liblzo2.so
$ sudo ln -s liblzo2_i386/usr/lib/liblzo2.so.2.0.0 liblzo2.so.2
To install uuid-dev
$ sudo mkdir /usr/lib/uuid-dev
$ sudo dpkg -x uuid-dev_2.20.1-1ubuntu3_i386.deb /usr/lib/uuid-dev/
$ cd /usr/lib/
$ sudo ln -s uuid-dev/usr/lib/i386-linux-gnu/libuuid.a libuuid.a
$ sudo ln -s uuid-dev/usr/lib/i386-linux-gnu/libuuid.so libuuid.so
modify the external/mtd-utils/mkfs.ubifs/Android.mk.This fixed the "-llzo2 not found; uuid/uuid.h not found;".
$ vi external/mtd-utils/mkfs.ubifs/Android.mk
Remove this flag
LOCAL_LDFLAGS +=-L /usr/lib/x86_64-linux-gnu/
Add the following Flags
LOCAL_LDFLAGS +=-L /usr/lib/
LOCAL_C_INCLUDES +=/usr/lib/uuid-dev/usr/include/
LOCAL_C_INCLUDES +=/usr/lib/liblzo2_i386/usr/include
Thanks & Regards,
Pratik.
Hi Pratik,
I have build success according to your method. Thanks for sharing :smileyhappy:.
Best Regards
Hi Dream,
You can also install 32 bits lzo2 and luuid to your 64 bits ubuntu by commends as follows:
sudo apt-get install liblzo2-dev:i386
sudo apt-get install uuid-dev:i386
Best regards
Dan
Hi Pratik,
Thanks a lot~~
I will try~~
Best Regards & Merry Christmas
Hi Pratik,
It's my plessure~~
Since you have solved the problem, I close this DI. If any questions contact us~~
Best Regards
Dan
Hi Pratik,
What version of Ubuntu and Android are you using?
Best Regards
Dan
Can you mention which Version on Android source you are using and what is your source..