android ndk build fails on build-binary.mk:369 -


I have a large project with hundreds of C ++ files, which I want to port on Android. I'm new to the project and Andike I most have been rid of errors and Andike build even goes:

Compile ++ thumb: mylib & lt; = MyApp.cpp

Shared Library: libmylib.so

.:

./ obj / local / armeabi / objs / mylib / MyApp .o: `MyClass :: MyFunction (unsigned long, zero *, unsigned long-term) in function ': development /. / Jni / AClass.h: 249: Undefined context for the MyClass :: function (unsigned long, zero *, unsigned long-term) '

.... lots of these error messages here Are there. ..

Collection 2: LD returned 1 exit status

/ cygdrive / c / android / android-ndk / android-ndk-r8 / build / core / build -binary.mk: 369: The recipe for the target 'obz / local / armeby / libimbilib.' Failed

Make: * [obj / local / armeabi / libmylib.so] Error 1

It also "shared library: libmylib. So ", but then I get the heap of these errors as" undefined reference "above. The sections are included and the functions are defined.

line build-binary.mk in 369:

@ @ $ (Call host mkdir, $ (dir $))

But I do not know what it means. I read something about permission problems with shared libraries and give everything to set up all the files, but it does not change anything, can it be that for some reason does the MkDire fail? Does anyone know what the problem might be?

Any help is appreciated!

Here is my Android.amke file:

LOCAL_PATH: = Add $ (call direct)

$ (CLEAR_VARS)

LOCAL_MODULE: mylib

LOCAL_SRC_FILES: = MyApp.cpp

LOCAL_CFLAGS: = -D_Android_ -D_Debug_

Add $ (BUILD_SHARED_LIBRARY)

There is a possibility that one of the three things is happening:

    < Li>

    You are not really compiling the code for these tasks, because it is surrounded by #ifdef or because the files in question are not being createdYou can check the presence of files according to their source. You can put #Terror in the body of the ceremony and can verify that the build fails there (I know that it is silly, but it captures the wasting mistakes of your time).

  • Functions are in an object file or library, which is not linked. In this case you have to add to the missing piece.

  • Functions are loaded before a separate dynamic library that loads the library you have created, or load them before the least loaded tasks. There is a special flag that you can use to allow unspecified symbols in shared libraries - I've forgotten what this is, but you can see it.

Comments

Popular posts from this blog

java - NullPointerException for a 2d Array -

python - Assemble mpeg file unable to play in mediaplayer -

c# - NameSpace Manager or XsltContent to parse aspx page -