GithubHelp home page GithubHelp logo

usb_modeswitch_android's People

Contributors

joerg65 avatar

Stargazers

 avatar

Watchers

 avatar

usb_modeswitch_android's Issues

error at compile

even if I'm not a bit android dev guy I've well compile libusb and I well get the .so file
but when I try to do it on usb_modswitch jni folder
I got a strange error on LOCAL_SRC_FILES missing but they are present
I tryied to mod .mk file adding the LOCAL_PATH var to the LOCAL_SRC_FILES

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE := libUsb
#LOCAL_SRC_FILES := $(LOCAL_PATH)/../../libusb/android/libs/$(TARGET_ARCH_ABI)/libusb-1.0.so
LOCAL_SRC_FILES := $(LOCAL_PATH)/../../libusb-1.0.24/android/libs/$(TARGET_ARCH_ABI)/libusb-1.0.so
include $(PREBUILT_SHARED_LIBRARY)

include $(CLEAR_VARS)

LOCAL_CFLAGS += -pie -fPIE
LOCAL_LDFLAGS += -pie -fPIE
LOCAL_LDLIBS    := -llog 

LOCAL_MODULE    := usb_modeswitch
#LOCAL_SRC_FILES := usb_modeswitch.c
LOCAL_SRC_FILES := $(LOCAL_PATH)/usb_modeswitch.c

#LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../libusb/libusb
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../libusb-1.0.24/libusb
LOCAL_SHARED_LIBRARIES := libUsb

include $(BUILD_EXECUTABLE)

but I always get the same error

oga@oga-UX550VD:~/devel/usbmodsw/jni$ ~/bin/ndk/ndk-build -B 
Android NDK: ERROR:/home/oga/devel/usbmodsw/jni/Android.mk:Usb: LOCAL_SRC_FILES points to a missing file    
Android NDK: Check that /home/oga/devel/usbmodsw/jni/../../libusb-1.0.24/android/libs/armeabi-v7a/libusb-1.0.so exists  or that its path is correct   
/home/oga/bin/ndk/build/core/prebuilt-library.mk:45: *** Android NDK: Aborting    .  Stop.

but local sources looks ok

oga@oga-UX550VD:~/devel/usbmodsw/jni$ ls 
Android.mk  Application.mk  usb_modeswitch.c  usb_modeswitch.h

it would be so great to be able to do as you switching to hilink my modem
thank's a lot for any idea
and sory for disturbing

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.