mars icon indicating copy to clipboard operation
mars copied to clipboard

mac os 12.0.1 编译xlog出错

Open wj576038874 opened this issue 2 years ago • 1 comments

cmake版本:cmake version 3.22.1

ndk版本:20.0.5594570

wj576038874 avatar Aug 04 '22 04:08 wj576038874

Last login: Thu Aug 4 12:00:34 on ttys000 jack@jackdeMacBook-Pro ~ % cd /Users/jack/Documents/mars-master/mars jack@jackdeMacBook-Pro mars % python build_android.py Enter menu: 1. Clean && build mars. 2. Build incrementally mars. 3. Clean && build xlog. 4. Exit 3 ndk path:/Users/jack/Library/Android/sdk/ndk/20.0.5594570 fatal: 不是 git 仓库(或者任何父目录):.git fatal: 不是 git 仓库(或者任何父目录):.git [[==BUILD_DESCRIPTION==]]Revision:                   

PublicComponent
KEYVALUE
Branch
BuildTag
BuildTime2022-08-04 12:05:31
Revision
build cmd:cmake "/Users/jack/Documents/mars-master/mars" -DANDROID_ABI="armeabi-v7a" -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=/Users/jack/Library/Android/sdk/ndk/20.0.5594570/build/cmake/android.toolchain.cmake -DANDROID_TOOLCHAIN=clang -DANDROID_NDK=/Users/jack/Library/Android/sdk/ndk/20.0.5594570 -DANDROID_PLATFORM=android-21 -DANDROID_STL="c++_shared" && cmake --build . --target libzstd_static marsxlog --config Release -- -j8 -- CMAKE_INSTALL_PREFIX=/Users/jack/Documents/mars-master/mars/cmake_build/Android -- CMAKE_INSTALL_PREFIX=/Users/jack/Documents/mars-master/mars/cmake_build/Android -- Detecting C compiler ABI info -- Detecting C compiler ABI info - failed -- Check for working C compiler: /Users/jack/Library/Android/sdk/ndk/20.0.5594570/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang -- Check for working C compiler: /Users/jack/Library/Android/sdk/ndk/20.0.5594570/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang - broken CMake Error at /Users/jack/Downloads/cmake-3.22.1-macos-universal/CMake.app/Contents/share/cmake-3.22/Modules/CMakeTestCCompiler.cmake:69 (message): The C compiler
    "/Users/jack/Library/Android/sdk/ndk/20.0.5594570/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang"

    is not able to compile a simple test program.

    It fails with the following output:

    Change Dir: /Users/jack/Documents/mars-master/mars/cmake_build/Android/CMakeFiles/CMakeTmp

    Run Build Command(s):/usr/bin/make -f Makefile cmTC_b8949/fast && xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun





    CMake will not be able to correctly generate this project.
    Call Stack (most recent call first):
    comm/CMakeLists.txt:6 (project)


    -- Configuring incomplete, errors occurred!
    See also "/Users/jack/Documents/mars-master/mars/cmake_build/Android/CMakeFiles/CMakeOutput.log".
    See also "/Users/jack/Documents/mars-master/mars/cmake_build/Android/CMakeFiles/CMakeError.log".
    !!!!!!!!!!!!!!!!!!build fail!!!!!!!!!!!!!!!!!!!!
    jack@jackdeMacBook-Pro mars % 

望回复谢谢

wj576038874 avatar Aug 04 '22 04:08 wj576038874