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

编译echo测试程序失败,brpc是通过cmake方式编译的 #2880

Open
FHBOL opened this issue Jan 18, 2025 · 0 comments
Open

编译echo测试程序失败,brpc是通过cmake方式编译的 #2880

FHBOL opened this issue Jan 18, 2025 · 0 comments

Comments

@FHBOL
Copy link

FHBOL commented Jan 18, 2025

分支:On branch 1.9.0
通过cmake方式构建

Image

CMake Deprecation Warning at CMakeLists.txt:18 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

-- The C compiler identification is Clang 14.0.0
-- The CXX compiler identification is Clang 14.0.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found Protobuf: /usr/local/lib/libprotobuf.so (found version "3.19.4")
CMake Error at CMakeLists.txt:50 (message):
Fail to find brpc

-- Configuring incomplete, errors occurred!
See also "/home/fanghongbin/brpc/example/echo_c++/build/CMakeFiles/CMakeOutput.log".

构建目录
f@DESKTOP-UB1M0MH:/brpc/build$ ls output/
bin include lib
f@DESKTOP-UB1M0MH:
/brpc/build$ ls output/lib/
libbrpc.a
只有静态库没有动态库

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

No branches or pull requests

1 participant