我试图为 android 构建一个 FreeRDP 应用程序。
我按照编译页面ldconfig
中描述的说明进行操作。
之后我运行了下面的命令,没有人工作。并显示构建失败。
./scripts/android-build-freerdp.sh
或者
./scripts/android-build-freerdp.sh --ndk $ANDROID_NDK --sdk $ANDROID_SDK
终端输出:
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
ANDROID_ABI
CMAKE_TOOLCHAIN_FILE
-- Build files have been written to: /home/sufi/FreeRDP
/home/sufi/FreeRDP/build/freerdp-build/armeabi
[RUN] cmake --build . --target install
Error: could not load cache
[ERROR] cmake --build . --target install retured 1
然后我跑去./gradlew build
创建一个apk,当我尝试连接远程连接时,它给了我以下错误:
com.freerdp.afreerdp E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.UnsatisfiedLinkError: Native method not found: com.freerdp.freerdpcore.services.LibFreeRDP.freerdp_new:(Landroid/content/Context;)J
at com.freerdp.freerdpcore.services.LibFreeRDP.freerdp_new(Native Method)
at com.freerdp.freerdpcore.services.LibFreeRDP.newInstance(LibFreeRDP.java:116)
at com.freerdp.freerdpcore.application.GlobalApp.createSession(GlobalApp.java:128)
at com.freerdp.freerdpcore.presentation.SessionActivity.connect(SessionActivity.java:661)
at com.freerdp.freerdpcore.presentation.SessionActivity.processIntent(SessionActivity.java:651)
我错过了什么?
谢谢是提前。
我试穿了ubuntu 16.04
Openssl 版本:OpenSSL 1.0.2g 1 Mar 2016