Pebble icon indicating copy to clipboard operation
Pebble copied to clipboard

solution to compilation failure under ubuntu 16.04

Open pkulijing opened this issue 7 years ago • 0 comments

I failed to compile the project in an ubuntu 16.04 docker following the guideline. The following solution worked for me.

  1. apt-get install libreadline-dev && chmod 775 /root/bin/blade
  2. Edit example/threadpool/BUILD. Change
        '#pthread'
        '//src/common/:pebble_common',

to

        '//src/common/:pebble_common',
        '#pthread'
  1. There are two linkage errors with the provided protobuf libraries. Installing the official version solved the problem.
  • Download it from the official repo and install it following the guideline
  • ldconfig
  • Edit tools/compiler/pb/BUILD. Change
    deps = [
        '//src/common:pebble_common',
        '//thirdparty/protobuf:protoc',
    ]

to

    deps = [
        '#protoc',
        '#protobuf',
        '//src/common:pebble_common',
    ]

Now it compiles.

pkulijing avatar Dec 18 '18 09:12 pkulijing