在尝试使用以下参数在 Ubuntu 上开发 Hello World NDK 程序时
/home/gufran/ADT2/sdk
/home/gufran/ADT2/android-ndk-r10e
我已经成功地生成com_appxperts_firstndkapp_MainActivity.h
,也MyJNI.c
。现在我想用命令生成 .so 文件
home/gufran/ADT2/android-ndk-r10e/ndk-build.cmd
Run Code Online (Sandbox Code Playgroud)
但它给出的错误
bash: home/gufran/ADT2/ndk/ndk-build.cmd: No such file or directory
Run Code Online (Sandbox Code Playgroud)
也试过
ndk-build.cmd
Run Code Online (Sandbox Code Playgroud)
仍然错误
ndk-build.cmd: command not found
Run Code Online (Sandbox Code Playgroud)
请注意 NDK 路径已经设置为
gufran@gufranKhurshid:~$ export NDK_HOME=home/gufran/ADT2/android-ndk-r10e
Run Code Online (Sandbox Code Playgroud) 我们在 android 设备的各个随机位置发生以下崩溃。虽然我们已经将 ndk abifilters 更改为“armeabi-v7a”、“arm64-v8a”
Crashed: Thread : SIGSEGV 0x0000000000000010
#00 pc 0x723d46f748 libjsc.so
#01 pc 0x723d4bbfe8 libjsc.so
#02 pc 0x7339d68b6c libc.so
Run Code Online (Sandbox Code Playgroud)
当前配置
RN 版本 0.63.4
defaultConfig {
..
ndk { abiFilters "armeabi-v7a", "arm64-v8a" }
}
splits {
abi {
reset()
enable enableSeparateBuildPerCPUArchitecture
universalApk false // If true, also generate a universal APK
include "armeabi-v7a",
"x86", "arm64-v8a", "x86_64"
}
}
project.ext.react = [
entryFile : "index.js",
enableHermes: false, // clean and rebuild if changing
]
Run Code Online (Sandbox Code Playgroud)
如何使用FFmpeg应用视频的简单棕褐色效果?我正在寻找将在android中使用的单行FFmpeg命令。尽管我已经学习colorchannelmixer=.393:.769:.189:0:.349:.686:.168:0:.272:.534:.131
了FFmpeg官方文档,但无法正确应用它。谢谢。