0
我試圖爲android構建一個FreeRDP應用程序。Android aFreeRDP cmake構建失敗
我遵循compilation page中描述的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