undefined reference to `avcodec_register_all'
这个怎么解决
#include "include/com_dreamiii_testffmpeg_FFmpegNative.h"
#include "prebuild/libavcodec/avcodec.h"
#include "prebuild/libavutil/avutil.h"
JNIEXPORT jstring JNICALL Java_com_dreamiii_testffmpeg_FFmpegNative_hello
(JNIEnv *env, jobject obj){
avcodec_register_all();
char wd[512];
sprintf(wd,"avcodec_version %u\n",avcodec_version());
return (*env)->NewStringUTF(env,"hello jni");
}
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
人生最曼妙的风景,竟是内心的淡定与从容!