Mac环境,使用cmake编译DMKit出现异常
- Dominant language
- C++
- Stars
- 321
- Forks
- 114
- PR merge metrics
- No merged PRs in 30d
Description
执行日志如下:
CMake Deprecation Warning at CMakeLists.txt:1 (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 AppleClang 11.0.3.11030032
-- The CXX compiler identification is AppleClang 11.0.3.11030032
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - 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: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
usage: dirname path
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found Protobuf: /usr/local/lib/libprotobuf.dylib (found version "3.21.12")
CMake Error at CMakeLists.txt:20 (message):
Fail to find brpc
brpc已完成安装。在unit-dmkit-master的根目录下。
执行sh deps.sh mac命令完成,且未报错。
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with CMakeLists.txt, especially line 20 where the brpc check fails, and review how the dependency installed by sh deps.sh mac is discovered. Reproduce the configuration on macOS and compare the expected brpc location with CMake's search behavior. Done means CMake finds the installed brpc and proceeds past this error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100