-
Notifications
You must be signed in to change notification settings - Fork 656
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
Bazel build #174
Bazel build #174
Conversation
Thanks for your pr, very convenience. |
I'm still having a small problem with boost libs, it seems I can't include them as header only libs, I need to compile them into a static |
Fixed compiling boost files. |
@teodor-pripoae Thanks very much for your code ! I build successfully on Ubuntu12.04, but failed on centos7.3
gcc version: 4.8.5 Thanks :) |
Can you send me the full output of bazel build please ? I succesfully built it on centos 7.3 inside docker, using the following Dockerfile for bazel: FROM centos:7.3.1611
# Build tools
RUN yum install gcc gcc-c++ kernel-devel wget unzip zlib-devel zip \
git automake cmake patch libtool which glibc-static libstdc++-static \
java-1.8.0-openjdk-devel
# Bazel
RUN wget -O /tmp/bazel.sh https://github.com/bazelbuild/bazel/releases/download/0.4.2/bazel-0.4.2-installer-linux-x86_64.sh && \
chmod +x /tmp/bazel.sh && \
/tmp/bazel.sh |
@teodor-pripoae I found it's something wrong with my build environment and I succesfully built now. Thanks. |
I've added build file for unit-test, for test I will try in the following days. I tried using I will try to find a solution later this week. |
Can we merge this pull request first? @zd-double @qinzuoyan @bluebore |
Hi,
I've added Bazel config files to allow reproductible builds. I tested them on OS X and Linux (Ubuntu).
When building using Bazel, it will download all required dependencies and will compile static binaries for host platform.
To build
sofa-pbrpc-client
, run:To build examples: