What is the libAlEngine ?
It seems the lib is not there

On 4月16日, 上午5时16分, DkRd <[email protected]> wrote:
> So what I want to do is the following. I want to add another player to
> work besides opencore,vorbis and midi. I have implemented this in a
> way similar to the midi player. I have edited the make file of
> libmediaplayerservice to include my source and my lib. First I push my
> lib and then I try to use it. I have gone through a lot of relevant
> topics and have followed the instructions there but to no succes. See
> if you can spot anything wrong in my makefile. I have included my .so
> lib in the same folder as the makefile.
>
> LOCAL_PATH := $(call my-dir)
> #
> # libmediaplayerservice
> #
> MY_LOCAL_PATH := $(LOCAL_PATH)
>
> include $(CLEAR_VARS)
>
> LOCAL_PREBUILT_LIBS :=  libAlEngine.so   <- my lib
>
> include $(BUILD_MULTI_PREBUILT)
>
> LOCAL_PATH := $(MY_LOCAL_PATH)
>
> include $(CLEAR_VARS)
>
> LOCAL_SRC_FILES:=               \
>         MediaPlayerService.cpp \
>         MetadataRetrieverClient.cpp \
>         VorbisPlayer.cpp \
>         AlPlayer.cpp \               <-My player file
>         MidiFile.cpp
>
> ifneq ($(BUILD_WITHOUT_PV),true)
> LOCAL_SRC_FILES+=               \
>         MediaRecorderClient.cpp
> endif
>
> ifeq ($(TARGET_OS)-$(TARGET_SIMULATOR),linux-true)
> LOCAL_LDLIBS += -ldl -lpthread
> endif
>
> LOCAL_SHARED_LIBRARIES := \
>         libcutils \
>         libutils \
>         libvorbisidec \
>         libsonivox \
>         libmedia \
>         libAlEngine \                             <- Here I try to use my
> lib
>         libandroid_runtime
>
> ifneq ($(BUILD_WITHOUT_PV),true)
> LOCAL_SHARED_LIBRARIES += \
>         libopencore_player \
>         libopencore_author
> endif
>
> LOCAL_C_INCLUDES := external/tremor/Tremor \
>         $(call include-path-for, graphics corecg)
>
> ifeq ($(BUILD_WITHOUT_PV),true)
> LOCAL_CFLAGS := -DNO_OPENCORE
> endif
>
> LOCAL_MODULE:= libmediaplayerservice
>
> include $(BUILD_SHARED_LIBRARY)
>
> I have tried alot of things but this seems the way its supposed to be
> done. And I get the following error :
>
> target SharedLib: libmediaplayerservice (out/target/product/generic/
> obj/SHARED_LIBRARIES/libmediaplayerservice_intermediates/LINKED/
> libmediaplayerservice.so)
> /prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin/../lib/gcc/arm-eabi/
> 4.2.1/../../../../arm-eabi/bin/ld: skipping incompatible out/target/
> product/generic/obj/lib/libAlEngine.so when searching for -lAlEngine
> /prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin/../lib/gcc/arm-eabi/
> 4.2.1/../../../../arm-eabi/bin/ld: cannot find -lAlEngine
> collect2: ld returned 1 exit status
> make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/
> libmediaplayerservice_intermediates/LINKED/libmediaplayerservice.so]
> Error 1
>
> So he cannot find the lib I just pushed and it is definatly there just
> "incompatible". Any thoughts?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"android-framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to