我正在尝试为 Android 构建 PDFium。我正在使用 Debian 拉伸。
我执行了以下命令:
> mkdir build
> cd build
> mkdir build/source
> cd source
> gclient config --unmanaged https://pdfium.googlesource.com/pdfium.git
> echo "target_os = [ 'android' ]" >> .gclient
> gclient sync
> cd pdfium
> build/install-build-deps-android.sh
一旦安装了依赖项,我执行了这个:
> gn args wx/arm64/release
我把这些作为论据
# Build arguments go here.
# See "gn args <out_dir> --list" for available build arguments.
target_os = "android"
target_cpu = "arm64" # See "Figuring out target_cpu" below
use_goma = false # Googlers only. Make sure goma is installed and running first.
is_debug = false # Enable debugging features.
# Set true to enable experimental Skia backend.
pdf_use_skia = false
# # Set true to enable experimental Skia backend (paths only).
pdf_use_skia_paths = false
pdf_enable_xfa = false # Set false to remove XFA support (implies JS support).
pdf_enable_v8 = false # Set false to remove Javascript support.
pdf_is_standalone = true # Set for a non-embedded build.
is_component_build = true # Disable component build (Though it should work) #
clang_use_chrome_plugins = false # Currently must be false.
use_cxx11_on_android=false
当我退出编辑器时,我收到以下错误:
ERROR Unresolved dependencies.
//:pdfium_embeddertests__exec(//build/toolchain/android:android_clang_arm64)
needs //build/android:cpplib_stripped(//build/toolchain/android:android_clang_arm64)
//:pdfium_unittests__exec(//build/toolchain/android:android_clang_arm64)
needs //build/android:cpplib_stripped(//build/toolchain/android:android_clang_arm64)
你可以帮帮我吗 ?你对我在这里犯的错误有什么想法吗?是不是配置错误?缺少依赖?
非常感谢你能给我的任何帮助。