Alright so far I have been using the prebuilt arm-eabi toolchain found
in de android source. I've been able to succesfully compile my source.
The only problem I have left is that I need to link against "lasound"
for Alsa related objects. Otherwise there will be unreferenced symbols
in my libs. Now the arm toolchain doenst recognize this linker
option :

/prebuilt/linux-x86/toolchain/arm-eabi-4.3.1/bin/../lib/gcc/arm-eabi/
4.3.1/../../../../arm-eabi/bin/ld: cannot find -lasound
collect2: ld returned 1 exit status

The regular toolchain however seems to have no problem with it. I've
been trying to find the cause for this but so far my search has
resulted in nothing.

Perhaps anyone here has an idea? That would help me out alot.

On Apr 16, 10:23 pm, DkRd <pieter.schelfh...@gmail.com> wrote:
> Isn't that some sort of hardware related tool chain? Also I have been
> trying to find some sort of documentation on how the shared libraries
> are built in android. This way I could edit my own builder to match
> those options. If anyone knows of such files please let me know.
>
> On 16 apr, 15:15, Freepine <freep...@gmail.com> wrote:
>
> > Yes, that could be the problem. Android uses arm-eabi toolchain.And there
> > isn't glibc, 
> > too.http://android.git.kernel.org/?p=platform/prebuilt.git;a=tree;f=linux...
>
> > 2009/4/16 DkRd <pieter.schelfh...@gmail.com>
>
> > > Ah yes to clarify. My lib is not built with the android toolchain. It
> > > is built outside of android within another tree. It is too expansive
> > > to set up all the source within /external for example. I just want to
> > > use it as such.
>
> > > Is that a problem? Because I rly need to use that library to make it
> > > work.
>
> > > On 16 apr, 14:48, Freepine <freep...@gmail.com> wrote:
> > > > Is your lib built with android toolchain?
>
> > > > 2009/4/16 DkRd <pieter.schelfh...@gmail.com>
>
> > > > > libAlEngine.so is the shared library I wish to use in my player
> > > > > implementation AlPlayer.cpp . The library is pushed to the out folder
> > > > > and it is there after the first block in the make file (I checked the
> > > > > folder).
>
> > > > > So what Im looking for is mistakes in the makefile or other things I
> > > > > might have overlooked. But after reading these groups I found that
> > > > > this should be the way to do it.
>
> > > > > On 16 apr, 11:58, Han Chao <hancha...@gmail.com> wrote:
> > > > > > What is the libAlEngine ?
> > > > > > It seems the lib is not there
>
> > > > > > On 4月16日, 上午5时16分, DkRd <pieter.schelfh...@gmail.com> 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 android-framework@googlegroups.com
To unsubscribe from this group, send email to 
android-framework+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to