This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Building Android filesystem for emulator

Hi,

I download the Android filesystem source of L27.8.2 froyo release. It is working fine in pandaboard.

I tried to build the mydroid folder to run on emulator.

cd $MYDROID

make clean

make sdk

I am not sure this cmd is enough to build a sdk for froyo. If any one ever tried to create a sdk from the froyo filesystem?

After "make sdk", the error I got as

 

frameworks/base/core/java/android/bluetooth/BluetoothHid.java:76: cannot find symbol
symbol  : class IBluetoothHid
location: class android.bluetooth.BluetoothHid
    private final IBluetoothHid mService;
                  ^
frameworks/base/core/java/android/server/BluetoothHidService.java:29: cannot find symbol
symbol  : class IBluetoothHid
location: package android.bluetooth
import android.bluetooth.IBluetoothHid;
                        ^
frameworks/base/core/java/android/server/BluetoothHidService.java:46: package IBluetoothHid does not exist
public class BluetoothHidService extends IBluetoothHid.Stub {
                                                      ^
frameworks/base/core/java/android/bluetooth/BluetoothHid.java:89: package IBluetoothHid does not exist
            mService = IBluetoothHid.Stub.asInterface(b);
                                    ^
frameworks/base/core/java/android/server/BluetoothHidService.java:156: cannot find symbol
symbol  : variable super
location: class android.server.BluetoothHidService
            super.finalize();
            ^
frameworks/base/core/java/android/server/BluetoothHidService.java:151: method does not override or implement a method from a supertype
    @Override
    ^
frameworks/base/core/java/android/server/BluetoothHidService.java:391: method does not override or implement a method from a supertype
    @Override
    ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
7 errors
make: *** [out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes-full-debug.jar] Error 41

 

 

  • Hi Byoma,

    Could you look at - "frameworks/base/Android.mk" and look for line "core/java/android/bluetooth/IBluetoothHid.aidl": This line is under macro.Which should be enable for emulator build also.

     

    You can also post pandaboard releated question on 

    http://groups.google.com/group/pandaboard?lnk=srg

    This is pandaboard google group

     

    Satish

  • satish,

    Thax , but After changing this I got another error as

    # make sdk
    ============================================
    PLATFORM_VERSION_CODENAME=REL
    PLATFORM_VERSION=2.2.1
    TARGET_PRODUCT=generic
    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
    ============================================
    Removing from sdk:
    : out/target/product/generic/system/app/Quake.apk
    : out/target/product/generic/system/bin/dbus-daemon
    : out/target/product/generic/system/bin/dnsmasq
    : out/target/product/generic/system/bin/iptables
    : out/target/product/generic/system/bin/quake
    : out/target/product/generic/system/bin/tc
    : out/target/product/generic/system/lib/libdbus.so
    : out/target/product/generic/system/lib/libiprouteutil.so
    : out/target/product/generic/system/lib/libnetlink.so
    : out/target/product/generic/system/lib/libquake.so
    : out/target/product/generic/system/xbin/dbus-monitor
    : out/target/product/generic/system/xbin/dbus-send
    : out/target/product/generic/system/xbin/opcontrol
    : out/target/product/generic/system/xbin/oprofiled
    Install: out/target/product/generic/system/app/Mms.apk
    target SharedLib: libstagefright_omx (out/target/product/generic/obj/SHARED_LIBRARIES/libstagefright_omx_intermediates/LINKED/libstagefright_omx.so)
    out/target/product/generic/obj/SHARED_LIBRARIES/libstagefright_omx_intermediates/OMX.o:(.data.rel.ro+0x488): undefined reference to `android::OMX::createRenderer(android::sp<android::ISurface> const&, char const*, OMX_COLOR_FORMATTYPE, unsigned int, unsigned int, unsigned int, unsigned int, int)'
    collect2: ld returned 1 exit status
    make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/libstagefright_omx_intermediates/LINKED/libstagefright_omx.so] Error 1

     

    I think u have come over this error. As this sdk is for generic( not specific to any board blaze/zoom), so is changing the buildspec.mk with device/TI/blaze or zoom/buildspec.mk.default, helpful???

    I tried with TARGET_PRODUCT:=generic in buildspec.mk. still getting the same error.

     

  • HI,

    I think "android::OMX::createRenderer" is under some macro.. One need to disable this macro.