You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2021/02/01 07:38:42 UTC

[GitHub] [incubator-brpc] longdafeng opened a new issue #1339: 编译目录设置不对,config_brpc.sh 需要支持多个目录

longdafeng opened a new issue #1339:
URL: https://github.com/apache/incubator-brpc/issues/1339


   **Describe the bug (描述bug)**
   gflags 是用yum 安装的, 目录在/usr/include /usr/lib64下
   protobuffer 是自己编译按照的, 目录在/usr/local/include /usr/local/lib 下
   
   ```
   # sh config_brpc.sh --headers=/usr/include --libs=/usr/lib64
   Fail to find protobuf from --libs
   Fail to find google/protobuf/message.h from --headers
   
   
   #sh config_brpc.sh --headers=/usr/local/include --libs=/usr/local/lib64
   Fail to find openssl/ssl.h from --headers
   Fail to find gflags from --libs
   Fail to find leveldb from --libs
   Fail to find gflags/gflags.h from --headers
   grep: /gflags/gflags_declare.h: 没有那个文件或目录
   Fail to grep namespace of gflags source /gflags/gflags_declare.h
   
   ```
   
   **To Reproduce (复现方法)**
   
   
   **Expected behavior (期望行为)**
   
   
   **Versions (各种版本)**
   OS:
   Compiler:
   brpc:
   protobuf:
   
   **Additional context/screenshots (更多上下文/截图)**
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] longdafeng closed issue #1339: 编译目录设置不对,config_brpc.sh 需要支持多个目录

Posted by GitBox <gi...@apache.org>.
longdafeng closed issue #1339:
URL: https://github.com/apache/incubator-brpc/issues/1339


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] wasphin commented on issue #1339: 编译目录设置不对,config_brpc.sh 需要支持多个目录

Posted by GitBox <gi...@apache.org>.
wasphin commented on issue #1339:
URL: https://github.com/apache/incubator-brpc/issues/1339#issuecomment-809990255


   https://github.com/apache/incubator-brpc/blob/60159fc3f3e13490fb9806ea0a0cb0dcdbda7f7d/package/rpm/brpc.spec#L26
   
   gflags 需要 2.1+ 的版本


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] mico-yu commented on issue #1339: 编译目录设置不对,config_brpc.sh 需要支持多个目录

Posted by GitBox <gi...@apache.org>.
mico-yu commented on issue #1339:
URL: https://github.com/apache/incubator-brpc/issues/1339#issuecomment-809876948


   yum 安装完gflag之后
   $ ls /usr/include/gflags/
   gflags_completions.h  gflags.h
   只有这两个文件,没有gflags_declare.h


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] serverglen commented on issue #1339: 编译目录设置不对,config_brpc.sh 需要支持多个目录

Posted by GitBox <gi...@apache.org>.
serverglen commented on issue #1339:
URL: https://github.com/apache/incubator-brpc/issues/1339#issuecomment-771288344


   有兴趣自己实现并贡献个PR嘛


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] lorinlee commented on issue #1339: 编译目录设置不对,config_brpc.sh 需要支持多个目录

Posted by GitBox <gi...@apache.org>.
lorinlee commented on issue #1339:
URL: https://github.com/apache/incubator-brpc/issues/1339#issuecomment-782063652


   @longdafeng 是支持多个目录的,sh config_brpc.sh --headers="dir1 dir2 dir3" --libs="dir4 dir5 dir6"这样就可以


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] longdafeng commented on issue #1339: 编译目录设置不对,config_brpc.sh 需要支持多个目录

Posted by GitBox <gi...@apache.org>.
longdafeng commented on issue #1339:
URL: https://github.com/apache/incubator-brpc/issues/1339#issuecomment-770651224


   看了源码 config_brpc.sh, 只能支持单目录的设置
   ```
   find_dir_of_lib() {
       local lib=$(find ${LIBS_IN} -name "lib${1}.a" -o -name "lib${1}.$SO" 2>/dev/null | head -n1)
       if [ ! -z "$lib" ]; then
           dirname $lib
       fi
   }
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] serverglen commented on issue #1339: 编译目录设置不对,config_brpc.sh 需要支持多个目录

Posted by GitBox <gi...@apache.org>.
serverglen commented on issue #1339:
URL: https://github.com/apache/incubator-brpc/issues/1339#issuecomment-771288344


   有兴趣自己实现并贡献个PR嘛


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org