Android aFreeRDP cmake 构建失败
Android aFreeRDP cmake build failed
我试图为 android 构建一个 FreeRDP 应用程序。
我按照 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
删除 CMakeCache.txt
刚刚解决了我的问题。
特别感谢Zhifeng Hu
Reference
我试图为 android 构建一个 FreeRDP 应用程序。
我按照 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
删除 CMakeCache.txt
刚刚解决了我的问题。
特别感谢Zhifeng Hu
Reference