Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support cmake and update some submodule #192

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

vermorth
Copy link

@vermorth vermorth commented May 8, 2021

changes:

  • remove submodule gmock
  • remove submodule protobuf
  • add submodule googletest v1.10.0 to third_party/googletest
  • add submodule grpc v1.37.0 to third_party/grpc
  • update submodule leveldb to v1.23
  • support cmake

Maybe more tests are needed to confirm correctness and stability.

Signed-off-by: vermorth <[email protected]>
Signed-off-by: vermorth <[email protected]>
Signed-off-by: vermorth <[email protected]>
@tencent-adm
Copy link
Member

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@vermorth
Copy link
Author

vermorth commented May 8, 2021

You can compile with the following command:

git clone --recurse-submodules https://github.com/vermorth/phxpaxos.git
cd phxpaxos

pushd third_party
./autoinstall.sh
popd

mkdir -p build
cd build

cmake \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr/local/phxpaxos \
    -DPHXPAXOS_BUILD_TOOLS=ON \
    -DPHXPAXOS_BUILD_UT=ON \
    -DPHXPAXOS_BUILD_TEST=ON \
    -DPHXPAXOS_BUILD_BENCHMARK=ON \
    -DPHXPAXOS_BUILD_PLUGIN=ON \
    -DPHXPAXOS_BUILD_SAMPLE_ECHO=ON \
    -DPHXPAXOS_BUILD_SAMPLE_ELECTION=ON \
    -DPHXPAXOS_BUILD_SAMPLE_KV=ON \
    ..

make
make install

@USTB-JXY
Copy link

如遇见
image

可以将 phxpaxos/CMakeLists.txt 里的
"${PROJECT_SOURCE_DIR}/third_party/local_install/abseil/lib64/cmake/absl" 改为
"${PROJECT_SOURCE_DIR}/third_party/local_install/abseil/lib/cmake/absl"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants