On Mon, 1 Feb 2010 15:06:02 -0500
Johann Koenig <[email protected]> wrote:

> Hi,
> I'm trying to compile an executable to run on a phone. Added a
> directory (external/test) and a working Android.mk:
> 
> LOCAL_PATH := $(call my-dir)
> include $(CLEAR_VARS)
> 
> LOCAL_MODULE := disptest
> 
> LOCAL_SRC_FILES := disptest.cpp
> 
> LOCAL_SHARED_LIBRARIES := \
>     libutils \
>     libui \
>     libskia
> 
> include $(BUILD_EXECUTABLE)
> 
> The binary compiles and works. When I try and add a library
> external/test/libtest.a:
> 
> LOCAL_PATH := $(call my-dir)
> include $(CLEAR_VARS)
> MY_LOCAL_PATH := $(LOCAL_PATH)
> LOCAL_PREBUILT_LIBS := libtest.a             
> include $(BUILD_MULTI_PREBUILT)
> 
> include $(CLEAR_VARS)
> LOCAL_MODULE := disptest
> 
> LOCAL_SRC_FILES := disptest.cpp
> 
> LOCAL_SHARED_LIBRARIES := \
>     libutils \
>     libui \
>     libskia
> 
> include $(BUILD_EXECUTABLE)

Duhr. Forgot to add libtest to LOCAL_SHARED_LIBRARIES. New error now
though:
make: *** No rule to make target
`out/target/product/generic/obj/lib/libtest.so', needed by
`out/target/product/generic/obj/EXECUTABLES/disptest_intermediates/LINKED/disptest'.
Stop.

I don't want this to be shared; it should be linked in statically. 
-- 
-Johann Koenig

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to