Saturday, February 22, 2014

Pain for several days! How libx264.a into JNI generated. So file ah


Objectives are: to generate so libx264.a file into JNI calls Android application.

Have been completed: (1) obtaining x264 source code, (2) by configure and make tools to generate a libx264.a file;

The main problem: unable to libx264.a into JNI, in the cygwin console can ls that a file, but the file is not found g+ + tips. .

Resulted in prompt function undefined reference cited. .

Environment: NDK 7r, Cygwin, Windows XP<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Results posted rate: 0.00%

Are you sure the library has functions you need? If you can view the cygwin. A document to explain the success of the ah mounted
Reply:
Encounter the same problem has been unable to solve the dynamic generation
Reply:
reference to the second floor of the reply:
encounter the same problem has been unable to solve generate dynamic library


I have found where the problem might be a problem the way the compiler or platform, first x264 only generate static library,
Secondly, through which the link comes makefile generated documents and Android NDK a little problem, insisted manner in accordance with Android NDK compiled into a file (network a lot of reference), the file can be linked JNI.
Reply:
Bloggers Hello, I downloaded a H264 of CODER want to recompile generate ***. So, but ndk-build it always prompts the following error, the path of the file clearly existed, and you do not know whether to say is a problem?

arm-linux-androideabi-g + + exe:. error: / cygdrive/d/beidou/video/AndroidVideo/jni/libx264/lib/libx264.a: No such file or directory

No comments:

Post a Comment