bytedeco / bytedeco/sample-projects

cannot locate symbol "av_version_info" referenced by "libjniavutil.so in sample project javacv-android-recognize

Open
#30 9 comments 0 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
Java
Stars
228
Forks
173
PR merge metrics
No merged PRs in 30d

Description

Error Log is:

> 04/25 18:34:19: Launching app
> $ adb install-multiple -r -t C:\Users\Shereif\Downloads\Compressed\javacv-android-recognize-bytedeco\app\build\intermediates\split-apk\debug\dep\dependencies.apk C:\Users\Shereif\Downloads\Compressed\javacv-android-recognize-bytedeco\app\build\intermediates\split-apk\debug\slices\slice_0.apk C:\Users\Shereif\Downloads\Compressed\javacv-android-recognize-bytedeco\app\build\intermediates\split-apk\debug\slices\slice_1.apk C:\Users\Shereif\Downloads\Compressed\javacv-android-recognize-bytedeco\app\build\intermediates\split-apk\debug\slices\slice_2.apk C:\Users\Shereif\Downloads\Compressed\javacv-android-recognize-bytedeco\app\build\intermediates\split-apk\debug\slices\slice_3.apk C:\Users\Shereif\Downloads\Compressed\javacv-android-recognize-bytedeco\app\build\intermediates\split-apk\debug\slices\slice_4.apk C:\Users\Shereif\Downloads\Compressed\javacv-android-recognize-bytedeco\app\build\intermediates\split-apk\debug\slices\slice_5.apk C:\Users\Shereif\Downloads\Compressed\javacv-android-recognize-bytedeco\app\build\intermediates\split-apk\debug\slices\slice_6.apk C:\Users\Shereif\Downloads\Compressed\javacv-android-recognize-bytedeco\app\build\intermediates\split-apk\debug\slices\slice_7.apk C:\Users\Shereif\Downloads\Compressed\javacv-android-recognize-bytedeco\app\build\intermediates\split-apk\debug\slices\slice_8.apk C:\Users\Shereif\Downloads\Compressed\javacv-android-recognize-bytedeco\app\build\intermediates\split-apk\debug\slices\slice_9.apk C:\Users\Shereif\Downloads\Compressed\javacv-android-recognize-bytedeco\app\build\intermediates\instant-run-apk\debug\app-x86-debug.apk
> Split APKs installed
> $ adb shell am start -n "org.bytedeco.javacv.android.recognize.example/org.bytedeco.javacv.android.recognize.example.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
> Client not ready yet..Waiting for process to come online
> Connected to process 1921 on device unknown-custom_phone___5_1_0___api_22___768x1280-192.168.160.101:5555
> Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
> D/Atlas: Validating map...
> D/libEGL: loaded /system/lib/egl/libEGL_emulation.so
> D/libEGL: loaded /system/lib/egl/libGLESv1_CM_emulation.so
> D/libEGL: loaded /system/lib/egl/libGLESv2_emulation.so
> D/: HostConnection::get() New Host Connection established 0xe3456100, tid 1939
> I/OpenGLRenderer: Initialized EGL, version 1.4
> D/OpenGLRenderer: Enabling debug mode 0
> W/EGL_emulation: eglSurfaceAttrib not implemented
> W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xe3599440, error=EGL_SUCCESS
> W/art: Before Android 4.1, method int android.support.v7.widget.DropDownListView.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView
> I/Choreographer: Skipped 604 frames! The application may be doing too much work on its main thread.
> I/Choreographer: Skipped 36 frames! The application may be doing too much work on its main thread.
> W/linker: libjniopencv_core.so: unused DT entry: type 0xf arg 0x6a44d
> W/linker: libjniopencv_imgproc.so: unused DT entry: type 0xf arg 0x32f6d
> W/linker: libjniopencv_imgcodecs.so: unused DT entry: type 0xf arg 0x4813
> W/linker: libjniopencv_videoio.so: unused DT entry: type 0xf arg 0x2f5f
> W/linker: libjniopencv_highgui.so: unused DT entry: type 0xf arg 0x893a
> W/linker: libjniopencv_ml.so: unused DT entry: type 0xf arg 0x9382
> W/linker: libjniopencv_objdetect.so: unused DT entry: type 0xf arg 0xd640
> W/linker: libjniopencv_face.so: unused DT entry: type 0xf arg 0x3a3d
> I/Choreographer: Skipped 109 frames! The application may be doing too much work on its main thread.
> I/CvCameraPreview: onMeasure(): set surface dimension to 779x1038
> W/EGL_emulation: eglSurfaceAttrib not implemented
> W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xe3559a40, error=EGL_SUCCESS
> I/CvCameraPreview: onMeasure(): set surface dimension to 851x1134
> I/TrainHelper: Loaded cascade classifier from /data/data/org.bytedeco.javacv.android.recognize.example/app_xml/temp.xml
> D/CvCameraPreview: call checkCurrentState
> call processExitState: 0
> call processEnterState: 1
> call onEnterStartedState
> Connecting to camera
> I/CvCameraPreview: initializeCamera(): successfully set camera #1
> I/CvCameraPreview: determineBestSize(): bestSize is 640x480
> D/CvCameraPreview: setupCamera(): settings applied:
> preview size: 640x480
> picture size: 640x480
> D/CvCameraPreview: setCameraCallback()
> I/CvCameraPreview: init filter with width = 640 and height = 480 and degree = 270 and isFrontFaceCamera = true
> W/linker: libjniavutil.so: unused DT entry: type 0xf arg 0x18890
> libjniavutil.so: unused DT entry: type 0x6ffffffe arg 0x21ac0
> libjniavutil.so: unused DT entry: type 0x6fffffff arg 0x1
> E/art: dlopen("/data/app/org.bytedeco.javacv.android.recognize.example-2/lib/x86/libjniavutil.so", RTLD_LAZY) failed: dlopen failed: cannot locate symbol "av_version_info" referenced by "libjniavutil.so"...
> I/CvCameraPreview: filter initialize success
> D/CvCameraPreview: Starting processing thread
> I/Choreographer: Skipped 199 frames! The application may be doing too much work on its main thread.
> D/: HostConnection::get() New Host Connection established 0xe34cec90, tid 1935
> D/: HostConnection::get() New Host Connection established 0xe34ced60, tid 1934
> I/CvCameraPreview: onMeasure(): set surface dimension to 851x1134
> I/art: Rejecting re-init on previously-failed class java.lang.Class
>
> --------- beginning of crash
> E/AndroidRuntime: FATAL EXCEPTION: Thread-168
> Process: org.bytedeco.javacv.android.recognize.example, PID: 1921
> java.lang.UnsatisfiedLinkError: org.bytedeco.javacpp.avutil
> at org.bytedeco.javacpp.avutil.av_frame_alloc(Native Method)
> at org.bytedeco.javacv.FFmpegFrameFilter.startUnsafe(FFmpegFrameFilter.java:159)
> at org.bytedeco.javacv.FFmpegFrameFilter.start(FFmpegFrameFilter.java:155)
> at org.bytedeco.javacv.android.recognize.example.CvCameraPreview$CameraWorker.run(CvCameraPreview.java:784)
> at java.lang.Thread.run(Thread.java:818)
> D/CvCameraPreview: surfaceDestroyed
> call checkCurrentState
> call processExitState: 1
> Disconnecting from camera
> Notify thread
> Wating for thread
> I/Process: Sending signal. PID: 1921 SIG: 9
> Application terminated.

Gradle:

```
apply plugin: 'com.android.application'

android {
compileSdkVersion 27
buildToolsVersion '27.0.3'
defaultConfig {
applicationId "org.bytedeco.javacv.android.recognize.example"
minSdkVersion 15
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
splits {
abi {
enable true
reset()
include 'x86', 'armeabi'
universalApk false
}
}
}

dependencies {

androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
testImplementation 'junit:junit:4.12'
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation group: 'org.bytedeco', name: 'javacv', version: '1.3.3'
implementation group: 'org.bytedeco.javacpp-presets', name: 'opencv', version: '3.2.0-1.3.3', classifier: 'android-arm'
implementation group: 'org.bytedeco.javacpp-presets', name: 'opencv', version: '3.2.0-1.3.3', classifier: 'android-x86'
implementation group: 'org.bytedeco.javacpp-presets', name: 'ffmpeg', version: '3.2.1-1.3.3', classifier: 'android-arm'
implementation group: 'org.bytedeco.javacpp-presets', name: 'ffmpeg', version: '3.2.1-1.3.3', classifier: 'android-x86'
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.