NDK cygwin编译 cannot find lffmp…
2014-06-14 19:38
495 查看
编译libffmpeg.so后,编写.c文件封装libffmpeg.so,在编译.c文件时需要引用ffmpeg文件夹,需要将ffmpeg文件夹与.c文件一起放到jni文件夹下,在mk文件中编译源文件指向.c文件,然后把.so文件拷到libs文件夹下,如果提示找不到lib**库文件(cannot
find
lffmpeg),需要将libffmpeg.so文件拷到ndk目录的android-ndk-r8\platforms\android-14\arch-arm\usr\lib文件夹下(这里假设编译脚本里设置platform为android-14)。
其他的库文件如果找不到,应该也是类似的原因。
如java.lang.UnsatisfiedLinkError: Library hello-jni not
found,也是一样的,将项目下libs\armeabi\的libhello-jni.so文件拷贝到android-ndk-r8\platforms\android-8\arch-arm\usr\lib下,方可解决。
试了一下,使用
LOCAL_SHARED_LIBRARIES := libffmpeg
代替
LOCAL_LDLIBS := -lffmpeg
就可以不用在系统目录还有ndk的目录里面拷来拷去了。
find
lffmpeg),需要将libffmpeg.so文件拷到ndk目录的android-ndk-r8\platforms\android-14\arch-arm\usr\lib文件夹下(这里假设编译脚本里设置platform为android-14)。
其他的库文件如果找不到,应该也是类似的原因。
如java.lang.UnsatisfiedLinkError: Library hello-jni not
found,也是一样的,将项目下libs\armeabi\的libhello-jni.so文件拷贝到android-ndk-r8\platforms\android-8\arch-arm\usr\lib下,方可解决。
试了一下,使用
LOCAL_SHARED_LIBRARIES := libffmpeg
代替
LOCAL_LDLIBS := -lffmpeg
就可以不用在系统目录还有ndk的目录里面拷来拷去了。
相关文章推荐
- Cocos2d-x 2.2.3 使用NDK配置安卓编译环境问题之 Cannot find module with tag 'CocosDenshion/android' in import path
- QFontDatabase:cannot find font d…
- android编译时出现cannot fin…
- Cocos2d-x 2.2.3 使用NDK配置安卓编译环境问题之 Cannot find module with tag 'CocosDenshion/android' in import path
- androidStudio ndk Cannot find 'jni.h'
- /usr/bin/ld: cannot find -lxxx …
- /usr/bin/ld: cannot find libncur…
- Android Studio中CMake编译NDK时,切换编译编译platform API--Cannot find source file:CMakeFiles/CMakeTmp/testCComp
- Eclipse NDK 编译报错:Cannot run program "sh":
- cocos2dx在Eclipse下编译报错:Cannot find module with tag 'CocosDenshion/android' in import path
- 关于使用Android NDK编译ffmpeg
- SP2-0618: Cannot find&…
- Cannot find bean: "test" in any scope
- Spring启动异常: cvc-elt.1: Cannot find the declaration of element 'beans'
- 编译PHP时候报错:configure: error: Cannot find libmysqlclient under /usr 解决
- VC编译程序时Cannot open precompiled header file: 'Debug/****.pch&#...
- warning LNK4022: cannot find unique match for symbol 'XXXXX'
- Windows下使用VIM&Cygwin,搭建Mainframe开发环境(六)---用awk/sed合并PLI/Cobol编译结果
- 编译错误fatal error C1033: cannot open program database '文件夹路径/debug/vc60.pdb'
- VS2008编译错误—LINK : fatal error LNK1104: cannot open file 'LIBC.lib'