编译第三方依赖库问题

nebula版本为1.1.0

我想用https://github.com/vesoft-inc/nebula/tree/master/third-party/ 里面的build-all-third-party.sh,总是编译错误,请问需要什么前置条件?

另外,https://oss-cdn.nebula-graph.com.cn/third-party/nebula-third-party-src-1.0.tgz 里面的 libevent-2.1.12-stable.tar.gz 包,怎么和 https://github.com/vesoft-inc/nebula/tree/master/third-party/externals/libevent.cmake
不匹配。
这个 libevent.cmake 要求的是 libevent-2.1.11-stable.tar.gz。而你的第三方依赖组件的安装包是 2.1.12

libevent.cmake部分代码:
ExternalProject_Add(
${name}
URL https://github.com/libevent/libevent/releases/download/release-2.1.11-stable/libevent-2.1.11-stable.tar.gz
URL_HASH MD5=7f35cfe69b82d879111ec0d7b7b1c531
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/${name}

是不是你们的第三方编译build-all-third-party.sh没更正过来

我想用nebula/third-party at master · vesoft-inc/nebula · GitHub 里面的build-all-third-party.sh,总是编译错误,请问需要什么前置条件?

麻烦把报错的贴出来

另外,https://oss-cdn.nebula-graph.com.cn/third-party/nebula-third-party-src-1.0.tgz里面的libevent-2.1.12-stable.tar.gz 包,怎么和https://github.com/vesoft-inc/nebula/tree/master/third-party/externals/libevent.cmake 不匹配

你的代码没有更新吧,https://github.com/vesoft-inc/nebula/tree/master/third-party/externals/libevent.cmake 里面的是libevent-2.1.12-stable

1 个赞

1.1.0的版本。
https://github.com/vesoft-inc/nebula/blob/v1.1.0/third-party/externals/libevent.cmake
这里确实是libevent-2.1.11-stable

后面升级过版本,oss上面的包是和master同步的

third party 的 tar 包目前没有细粒度的版本控制。你可以把旧版本的相关内容(版本和校验码)更新到 master 来解决。