全球主机交流论坛

标题: 怎么编译monero,编译出错,求各位彭于晏赐教 [打印本页]

作者: 52naiba    时间: 2021-3-26 16:03
标题: 怎么编译monero,编译出错,求各位彭于晏赐教
https://github.com/monero-project/monero#compiling-monero-from-source

On Linux and macOS
Install the dependencies

Change to the root of the source code directory, change to the most recent release branch, and build:

cd monero
git checkout release-v0.17   【这里卡住了,哪里看版本】
make

make后:

mkdir -p build/"Linux/release-v0.17"/release
cd build/"Linux/release-v0.17"/release && cmake -D BUILD_TESTS=ON -D CMAKE_BUILD_TYPE=release ../../../.. && make
-- CMake version 3.13.4
-- ccache NOT found! Please install it for faster rebuilds.
-- Building without build tag
-- Checking submodules
CMake Error at CMakeLists.txt:203 (message):
  Submodule 'external/miniupnp' is not up-to-date.  Please update all
  submodules with

  git submodule update --init --force

  or run cmake with -DMANUAL_SUBMODULES=1

Call Stack (most recent call first):
  CMakeLists.txt:208 (check_submodule)


-- Configuring incomplete, errors occurred!
See also "/usr/src/gtest/monero/build/Linux/release-v0.17/release/CMakeFiles/CMakeOutput.log".
make: *** [Makefile:103: release-all] Error 1

作者: sinowrt    时间: 2021-3-26 16:06
项目根目录执行 git submodule update --init --force
作者: 52naiba    时间: 2021-3-26 16:07
sinowrt 发表于 2021-3-26 16:06
项目根目录执行 git submodule update --init --force

root@byi:/usr/src/gtest# git submodule update --init --force
fatal: not a git repository (or any of the parent directories): .git
root@byi:/usr/src/gtest# cd monero
root@byi:/usr/src/gtest/monero# git submodule update --init --force
fatal: remote error: upload-pack: not our ref 4c700e09526a7d546394e85628c57e9490feefa0
fatal: the remote end hung up unexpectedly
Fetched in submodule path 'external/miniupnp', but it did not contain 4c700e09526a7d546394e85628c57e9490feefa0. Direct fetching of that commit failed.
root@byi:/usr/src/gtest/monero#

作者: 李多鱼    时间: 2021-3-26 16:28
提示: 作者被禁止或删除 内容自动屏蔽




欢迎光临 全球主机交流论坛 (https://443502.xyz/) Powered by Discuz! X3.4