droidVncServer icon indicating copy to clipboard operation
droidVncServer copied to clipboard

Compilation of new libs for android 4.3.

Open Substitut opened this issue 11 years ago • 7 comments

Hi I'm currently trying to generate new libraries to make this app functionnal on 4.3 devices. Sadly I got an error which I don't understand and don't find a way to solve it when I tried the "mm ." command.

make: *** No rule to make target out/target/product/generic_x86/obj/SHARED_LIBRARIES/libc_intermediates/export_includes', needed byout/target/product/generic_x86/obj/SHARED_LIBRARIES/libdvnc_flinger_sdk18_intermediates/import_includes'.

I saw someone got the same error as me but there is no answer. If someone now how to generate new libraries it would great.

Regards,

Substitut avatar Aug 26 '13 12:08 Substitut

Check with the make file in AOSP(or in VNC code), which generates the "libc" module, it got some issues with the _x86 arch. Resolving the make file will get you through.

ghost avatar Aug 26 '13 14:08 ghost

Actually I check those files but I didn't find an error. I noticed that I have no 'obj/SHARED_LIBRARIES/libc_intermediates/export_includes' repository so it's probably why I can't generate the libs. Now I guess I have to find a way to get these files...

Substitut avatar Aug 27 '13 07:08 Substitut

To be specific, you should have modified the native method make file to get the sdk18.so built? If yes, put down the code to discuss.

ghost avatar Aug 27 '13 09:08 ghost

Of course, I only did few modifications. Android.mk of flinger : LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS)

LOCAL_SRC_FILES =
flinger.cpp

#LOCAL_CFLAGS += -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION)

LOCAL_C_INCLUDES +=
$(LOCAL_PATH)
$(LOCAL_PATH)/..

LOCAL_PRELINK_MODULE:=false #override prelink map LOCAL_MODULE:= libdvnc_flinger_sdk$(PLATFORM_SDK_VERSION) LOCAL_MODULE_TAGS:= optional LOCAL_MODULE_PATH := $(LOCAL_PATH)/../libs/$(TARGET_CPU_ABI)

ifeq ($(PLATFORM_SDK_VERSION),9) LOCAL_SHARED_LIBRARIES := libsurfaceflinger_client libui libbinder libutils libcutils #libcrypto libssl libhardware else ifeq ($(PLATFORM_SDK_VERSION),10) LOCAL_SHARED_LIBRARIES := libsurfaceflinger_client libui libbinder libutils libcutils #libcrypto libssl libhardware else ifeq ($(PLATFORM_SDK_VERSION),14) LOCAL_SHARED_LIBRARIES := libgui libui libbinder libcutils else ifeq ($(PLATFORM_SDK_VERSION),15) LOCAL_SHARED_LIBRARIES := libgui libui libbinder libcutils else #add here more sdk versions LOCAL_SHARED_LIBRARIES := libgui libui libbinder libcutils libutils endif

include $(BUILD_SHARED_LIBRARY)

I added libutils to local shared libraries.

And I modified the common.h file too by adding the 18 sdk. static int compiled_sdks[] = {10, 14, 17, 18};

Substitut avatar Aug 28 '13 07:08 Substitut

Everything sounds good. Just verify the included libs for API 18 is available in 4.3 OS (JB).

ghost avatar Aug 28 '13 19:08 ghost

Substitut,Have you resolved this issue? Have you figured out the required libs?

ghost avatar Sep 24 '13 12:09 ghost

Nope I didn't success to create libraries for android 4.3. :/

Substitut avatar Sep 25 '13 13:09 Substitut