jb4.2.2 compile error

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

jb4.2.2 compile error

跳至解决方案
1,467 次查看
jonathansmyth
Contributor III

host C: mkfs.ubifs <= external/mtd-utils/mkfs.ubifs/hashtable/hashtable.c

host C: mkfs.ubifs <= external/mtd-utils/mkfs.ubifs/hashtable/hashtable_itr.c

Export includes file: external/mtd-utils/mkfs.ubifs/Android.mk -- out/host/linux-x86/obj/EXECUTABLES/mkfs.ubifs_intermediates/export_includes

host Executable: mkfs.ubifs (out/host/linux-x86/obj/EXECUTABLES/mkfs.ubifs_intermediates/mkfs.ubifs)

/usr/bin/ld: skipping incompatible /usr/lib64/liblzo2.so when searching for -llzo2

/usr/bin/ld: cannot find -llzo2

/usr/bin/ld: skipping incompatible /usr/lib64/libuuid.so when searching for -luuid

/usr/bin/ld: cannot find -luuid

collect2: error: ld returned 1 exit status

build/core/host_executable.mk:19: recipe for target 'out/host/linux-x86/obj/EXECUTABLES/mkfs.ubifs_intermediates/mkfs.ubifs' failed

make: *** [out/host/linux-x86/obj/EXECUTABLES/mkfs.ubifs_intermediates/mkfs.ubifs] Error 1

could anyone help me with this error? my SOC is is i.mx6DL on a custom board and im building for android JB 4.2.2

Thanks Jonny

标签 (3)
标记 (3)
0 项奖励
1 解答
1,009 次查看
saurabh206
Senior Contributor III

Hi

If you are using 64 bit machine than, You can check your Android.mk has following.

LOCAL_CFLAGS+= -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -m64

LOCAL_CFLAGS+= -Wmissing-prototypes -Winline

LOCAL_LDFLAGS += -L/usr/lib/x86_64-linux-gnu

LOCAL_LDLIBS:= -lz -llzo2 -lm -luuid -m64

Regards

Saurabh

在原帖中查看解决方案

0 项奖励
11 回复数
1,009 次查看
saurabh206
Senior Contributor III

Hi

Jonny

Try to install

sudo apt-get install liblzo2-dev uuid-dev


Thanks

Saurabh

0 项奖励
1,009 次查看
jonathansmyth
Contributor III

Hi Saurabh,

thanks for the swift reply however i am building on fedora21 and i cant seem to find the equivalent for it.

Thanks Jonny

0 项奖励
1,010 次查看
saurabh206
Senior Contributor III

Hi

If you are using 64 bit machine than, You can check your Android.mk has following.

LOCAL_CFLAGS+= -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -m64

LOCAL_CFLAGS+= -Wmissing-prototypes -Winline

LOCAL_LDFLAGS += -L/usr/lib/x86_64-linux-gnu

LOCAL_LDLIBS:= -lz -llzo2 -lm -luuid -m64

Regards

Saurabh

0 项奖励
1,009 次查看
jonathansmyth
Contributor III

Hi,

i believe this will be correct - however where is this particular android.mk file located?

Thanks Jonny

0 项奖励
1,009 次查看
saurabh206
Senior Contributor III

external/mtd-utils/mkfs.ubifs/Android.mk


0 项奖励
1,009 次查看
jonathansmyth
Contributor III

Hi,

Yes that has solved that build issue i had, however one that has been re-occuring is :

make: *** No rule to make target 'out/target/product/fsimx6dl_efusa9/obj/STATIC_LIBRARIES/librecovery_ui_imx_intermediates/export_includes', needed by 'out/target/product/fsimx6dl_efusa9/obj/EXECUTABLES/recovery_intermediates/import_includes'.  Stop.


the library doesnt even exist its looking for!


Any help again would be greatly appreciated!!


Thanks Jonny

0 项奖励
1,009 次查看
saurabh206
Senior Contributor III

Hi

Jonny

Please make sure that "librecovery_ui_imx_intermediates" is available in external folder.

Thanks

Saurabh

0 项奖励
1,009 次查看
jonathansmyth
Contributor III

Hi Saurabh,

Inthe event of it not being there in the folder should i just create one in the External folder?

Thanks Jonny

0 项奖励
1,009 次查看
saurabh206
Senior Contributor III

Please make sure that your source code is downloaded properly.

And clean the output folder and try to build again.

0 项奖励
1,009 次查看
jonathansmyth
Contributor III

Yes, i had re downloaded and resynced the AOSP but this file is missing - i have copied the folder from the out dir from a previous AOSP

Any thought on what i should do?

Thanks Jonny

0 项奖励
1,009 次查看
jonathansmyth
Contributor III

Hi,

I have checked my packages and these are both present on my machine. Any other ideas on what could be causing the problem?

Thanks Jonny

0 项奖励