1,先从https://github.com/xmake-io/xmake/releases/download/v2.8.3/xmake-dev.win32.exe
下载新版本的xmake.
2,从xmake-repo克隆1个到我的仓库https://gitee.com/zjh6/xmake-repo
3,然后加上xrepo add-repo myrepo https://gitee.com/zjh6/xmake-repo,
4,然后xrepo install -y -a x86 libcurl
5,再xrepo install -y -a x86 cpr,
要有github速度,才能下载,不然速度太慢
xmake -y -a x86只是从cmake调用编译.
设置搜索目录:
xmake g --pkg_searchdirs=/xxx
编译后,要把x86版的包含放进路径,不然,要搞错.