Hi,
they are optional, but if activated in the build script they must be shipped too as libfreerdp is build with them as dependency. deactivate in the script and the dependency is gone. Note that no AVC420/AVC444 support is available in that case. jpeg is no longer actively used anyway, so no harm in deactivating it entirely. Anyway, the loading error messages are not fatal (see LibFreeRDP.java) but the last one is (Failed to register native method) That one happens in JNI_OnLoad (android_freerdp.c) Did you change something in the package names or native JNI methods? regards Armin On 4/29/19 7:06 PM, Amrat Singh via FreeRDP-devel wrote: > Hi Team, > Greetings to All, > > We were trying to setup freeRDP library in android studio with NDK r15c. We > have successfully executed 'android-build-freerdp.sh' script file. > After generating JNI files we tried to load android project (Studio) but when > we run on device app throwing an error, which we think is related to JPEG and > OPENH264. we know that they is optional but seems like it is necessary for > running the application. We tried to find out if any way to enable/on that > but not found any useful information. These is the logcat results: > > 2019-04-29 21:52:00.915 32460-32460/com.freerdp.afreerdp E/LibFreeRDP: Failed > to load library openh264: java.lang.UnsatisfiedLinkError: > dalvik.system.PathClassLoader[DexPathList[[zip file > "/data/app/com.freerdp.afreerdp-2/base.apk"],nativeLibraryDirectories=[/data/app/com.freerdp.afreerdp-2/lib/arm64, > /data/app/com.freerdp.afreerdp-2/base.apk!/lib/arm64-v8a, /system/lib64, > /vendor/lib64]]] couldn't find "libopenh264.so" > 2019-04-29 21:52:00.938 32460-32460/com.freerdp.afreerdp E/linker: library > "/system/lib64/libjpeg.so" ("/system/lib64/libjpeg.so") needed or dlopened by > "/system/lib64/libnativeloader.so" is not accessible for the namespace: > [name="classloader-namespace", ld_library_paths="", > default_library_paths="/data/app/com.freerdp.afreerdp-2/lib/arm64:/data/app/com.freerdp.afreerdp-2/base.apk!/lib/arm64-v8a", > permitted_paths="/data:/mnt/expand:/data/data/com.freerdp.afreerdp"] > 2019-04-29 21:52:00.940 32460-32460/com.freerdp.afreerdp E/LibFreeRDP: Failed > to load library jpeg: java.lang.UnsatisfiedLinkError: dlopen failed: library > "/system/lib64/libjpeg.so" needed or dlopened by > "/system/lib64/libnativeloader.so" is not accessible for the namespace > "classloader-namespace" > 2019-04-29 21:52:00.963 32460-32460/com.freerdp.afreerdp E/art: Failed to > register native method > > We need an help ASAP to resolve load openh264 and jpeg support library issue > for freeRDP. > > Thanks & Regards > Amrat Singh > > _______________________________________________ > FreeRDP-devel mailing list > FreeRDP-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/freerdp-devel _______________________________________________ FreeRDP-devel mailing list FreeRDP-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freerdp-devel