简体   繁体   English

为 QNX 编译 gRPC 示例

[英]Compiling gRPC examples for QNX

Successfully compiled gRPC for QNX and now trying to build the examples.为 QNX 成功编译 gRPC,现在尝试构建示例。

Build command:构建命令:

cmake -DCMAKE_C_COMPILER=qcc -DCMAKE_CXX_COMPILER=q++ ../..

Linker errors:链接器错误:

[ 90%] Linking CXX executable greeter_client
[ 95%] Linking CXX executable greeter_async_client
[100%] Linking CXX executable greeter_async_server
/home/csa/src/qnx//host/linux/x86_64/usr/bin/x86_64-pc-nto-qnx7.1.0-ld: cannot find -lpthread
/home/csa/src/qnx//host/linux/x86_64/usr/bin/x86_64-pc-nto-qnx7.1.0-ld: cannot find -lpthread
/home/csa/src/qnx//host/linux/x86_64/usr/bin/x86_64-pc-nto-qnx7.1.0-ld: cannot find -lpthread
/home/csa/src/qnx//host/linux/x86_64/usr/bin/x86_64-pc-nto-qnx7.1.0-ld: cannot find -ldl
/home/csa/src/qnx//host/linux/x86_64/usr/bin/x86_64-pc-nto-qnx7.1.0-ld: cannot find -ldl
/home/csa/src/qnx//host/linux/x86_64/usr/bin/x86_64-pc-nto-qnx7.1.0-ld: cannot find -ldl

I found the following link, looks like it might be cmake issue for -lpthread, but not sure about -ldl.我找到了以下链接,看起来可能是 -lpthread 的 cmake 问题,但不确定 -ldl。 https://gitlab.kitware.com/cmake/cmake/-/issues/21579 https://gitlab.kitware.com/cmake/cmake/-/issues/21579

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM