pdfium三方库源码windows android编译

使用curl测试是否通
curl.exe http://www.google.com
1、vs下载遗漏组件
the “MFC/ATL support” sub-components. This can be done from the command line by passing these arguments to the Visual Studio installer (see below for ARM64 instructions)
2、安装SDK Debugging Tools工具
同时添加构建工具系统环境路径,构建需要gn 和 ninja
gn.exe
ninja.exe
系统环境变量添加两个exe对应本地目录:D:\Work\code\pdf

windows环境配置
pdfium源码编译依赖较多,环境配置比较复杂,结合pdfium官网
官网 https://pdfium.googlesource.com/pdfium/(Google pdfium官网,需要VPN才能访问)

配置代理
配置代理可以参考w3上链接配置,配置代理过程比较复杂。配置有问题,拉取depot_tools工具和源码时会出现超时错误
set HTTP_PROXY=http://127.0.0.1:3128
set HTTPS_PROXY=http://127.0.0.1:3128

git config --global http.proxy http://127.0.0.1:3128
git config --global https.proxy http://127.0.0.1:3128

取消代理
!!!配置代理会影响其他代码拉取过程,取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy

相关依赖

  1. visual studio 2017或visual studio 2022
    VS还需下载组件
    o 安装Desktop development with C++
    o 安装MFC/ATL support
    系统环境变量添加 vs2017_install=xxx\Microsoft Visual Studio\2017\Professional

  2. windows kits 10
    下载地址 https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/
    系统环境变量添加 WINDOWSSDKDIR= xxx\Windows Kits\10

  3. depot_tools
    depot_tools工具目录中包含了构建编译pdfium的工具gn,ninjia,depot_tools可以通过pdfium官网git命令获取或者取用别人pull下来的
    提供pdfium源码构建编译工具
    Path中添加系统环境变量 xxx\depot_tools

代码拉取

连接上VPN,就可以直接拉取代码了,不需要其他proxy的配置
gclient config --unmanaged https://pdfium.googlesource.com/pdfium.git
![在这里插入图片描述](https://img-blog.csdnimg.cn/4fd927c50813406fa0355cab0622f908.png
gclient sync
用git bash here,最后报错了
在这里插入图片描述
在这里插入图片描述
按照显示目录,一个个目录拉取corpus icu skia
在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值