[Android Software Development] jm0077:
Hello, I was compiling the sources of Android platform 2.2 for the HTC Desire.

After extract the files (./extract-files.sh) I follow the steps:

source build/envsetup.h
lunch full_bravo-eng
make otapackage

But after 20 minutes I got the following error:

# make otapackage
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.2.1
TARGET_PRODUCT=htc_bravo
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=MASTER
============================================
No private recovery resources for TARGET_DEVICE bravo
Install: out/target/product/bravo/system/app/Mms.apk
target Executable: app_process (out/target/product/bravo/obj/EXECUTABLES/app_process_intermediates/LINKED/app_process)
/root/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/../lib/gcc/arm-eabi/4.4.0/../../../../arm-eabi/bin/ld: warning: librpc.so, needed by out/target/product/bravo/obj/lib/libgps.so, not found (try using -rpath or -rpath-link)
out/target/product/bravo/obj/lib/libgps.so: undefined reference to `xprt_register'
out/target/product/bravo/obj/lib/libgps.so: undefined reference to `clnt_create'
out/target/product/bravo/obj/lib/libgps.so: undefined reference to `xdr_quad_t'
out/target/product/bravo/obj/lib/libgps.so: undefined reference to `xdr_char'
out/target/product/bravo/obj/lib/libgps.so: undefined reference to `xdr_opaque'
out/target/product/bravo/obj/lib/libgps.so: undefined reference to `xdr_long'
out/target/product/bravo/obj/lib/libgps.so: undefined reference to `xdr_u_long'
out/target/product/bravo/obj/lib/libgps.so: undefined reference to `xdr_bool'
out/target/product/bravo/obj/lib/libgps.so: undefined reference to `xdr_u_int'
out/target/product/bravo/obj/lib/libgps.so: undefined reference to `svcerr_systemerr'
out/target/product/bravo/obj/lib/libgps.so: undefined reference to `xdr_short'
out/target/product/bravo/obj/lib/libgps.so: undefined reference to `clnt_call'
out/target/product/bravo/obj/lib/libgps.so: undefined reference to `xdr_enum'
out/target/product/bravo/obj/lib/libgps.so: undefined reference to `xdr_free'
out/target/product/bravo/obj/lib/libgps.so: undefined reference to `xdr_u_char'
out/target/product/bravo/obj/lib/libgps.so: undefined reference to `svc_freeargs'
out/target/product/bravo/obj/lib/libgps.so: undefined reference to `xdr_u_short'
out/target/product/bravo/obj/lib/libgps.so: undefined reference to `svc_getargs'
out/target/product/bravo/obj/lib/libgps.so: undefined reference to `xdr_string'
out/target/product/bravo/obj/lib/libgps.so: undefined reference to `xdr_pointer'
out/target/product/bravo/obj/lib/libgps.so: undefined reference to `xdr_bytes'
out/target/product/bravo/obj/lib/libgps.so: undefined reference to `xdr_vector'
out/target/product/bravo/obj/lib/libgps.so: undefined reference to `svcerr_noproc'
out/target/product/bravo/obj/lib/libgps.so: undefined reference to `svc_sendreply'
out/target/product/bravo/obj/lib/libgps.so: undefined reference to `svcerr_decode'
out/target/product/bravo/obj/lib/libgps.so: undefined reference to `xdr_array'
out/target/product/bravo/obj/lib/libgps.so: undefined reference to `svcrtr_create'
out/target/product/bravo/obj/lib/libgps.so: undefined reference to `xdr_void'
out/target/product/bravo/obj/lib/libgps.so: undefined reference to `clnt_destroy'
out/target/product/bravo/obj/lib/libgps.so: undefined reference to `xdr_u_quad_t'
out/target/product/bravo/obj/lib/libgps.so: undefined reference to `xdr_int'
out/target/product/bravo/obj/lib/libgps.so: undefined reference to `svc_register'
collect2: ld returned 1 exit status
make: *** [out/target/product/bravo/obj/EXECUTABLES/app_process_intermediates/LINKED/app_process] Error 1

As far I know the problem is with the librpc.so and the libgps.so, there are some steps previous to compile that I have to do?

Some workaround?

Thanks in advance,