unable to compile cpufeatures library on Android

Sysprogs forums Forums VisualGDB unable to compile cpufeatures library on Android

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #593
    haddock
    Participant

    My Android.mk links with cpufeatures library (included in NDK). This file ends like this:

    LOCAL_STATIC_LIBRARIES := cpufeatures
    include $(BUILD_SHARED_LIBRARY)
    $(call import-module,android/cpufeatures)

    The compilation ends up on this error:
    make: *** No rule to make target `/cygdrive/d/dev/android/ndk/sources/android/cpufeatures/cpu-features.c’, needed by `obj/local/armeabi/objs-debug/cpufeatures/cpu-features.o’. Stop.
    /cygdrive/d/dev/android/ndk is where is located ndk on my computer.

    When compiling on the command line, there is no error.

    #2485
    ket
    Participant

    Hi,

    Please try rebuilding.
    It looks like you previously built using cygwin and now the .d files have cygwin paths that confuse make. Rebuilding our Android projects by default deletes the obj folder where the .d files are.
    If it does not help, search where the built .d files of your project are and then delete them.

    #2484
    haddock
    Participant

    Thanks, deleting all .d files make it work!

    #22794
    freela
    Participant

    Thankyou for the solution. it helped me get out of the problem.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.