CMake не может скомпилировать на ma c os из-за CMakeTmp - PullRequest
0 голосов
/ 05 апреля 2020

Привет, я попытался установить dlib на мою ма c, но похоже, что cmake не был установлен правильно, когда я пытаюсь запустить cmake .., я сталкиваюсь с этой ошибкой, у вас, ребята, есть идеи, как это исправить ?

терпит неудачу со следующим выводом Изменить каталог: / Users / muhammadaimankhalid / dlib / build / CMakeFiles / CMakeTmp

-- The C compiler identification is Clang 4.0.1
-- The CXX compiler identification is Clang 4.0.1
-- Check for working C compiler: /Users/muhammadaimankhalid/opt/anaconda3/bin/x86_64-apple-darwin13.4.0-clang
-- Check for working C compiler: /Users/muhammadaimankhalid/opt/anaconda3/bin/x86_64-apple-darwin13.4.0-clang -- broken
CMake Error at /usr/local/Cellar/cmake/3.15.4/share/cmake/Modules/CMakeTestCCompiler.cmake:60 (message):
  The C compiler

    "/Users/muhammadaimankhalid/opt/anaconda3/bin/x86_64-apple-darwin13.4.0-clang"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /Users/muhammadaimankhalid/dlib/build/CMakeFiles/CMakeTmp

    Run Build Command(s):/usr/bin/make cmTC_e1c5b/fast && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_e1c5b.dir/build.make CMakeFiles/cmTC_e1c5b.dir/build
    Building C object CMakeFiles/cmTC_e1c5b.dir/testCCompiler.c.o
    /Users/muhammadaimankhalid/opt/anaconda3/bin/x86_64-apple-darwin13.4.0-clang   -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk   -o CMakeFiles/cmTC_e1c5b.dir/testCCompiler.c.o   -c /Users/muhammadaimankhalid/dlib/build/CMakeFiles/CMakeTmp/testCCompiler.c
    Linking C executable cmTC_e1c5b
    /usr/local/Cellar/cmake/3.15.4/bin/cmake -E cmake_link_script CMakeFiles/cmTC_e1c5b.dir/link.txt --verbose=1
    /Users/muhammadaimankhalid/opt/anaconda3/bin/x86_64-apple-darwin13.4.0-clang -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs  CMakeFiles/cmTC_e1c5b.dir/testCCompiler.c.o  -o cmTC_e1c5b 
    ld: warning: ignoring file /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd, file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (x86_64): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd
    ld: dynamic main executables must link with libSystem.dylib for architecture x86_64
    clang-4.0: error: linker command failed with exit code 1 (use -v to see invocation)
    make[1]: *** [cmTC_e1c5b] Error 1
    make: *** [cmTC_e1c5b/fast] Error 2





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


-- Configuring incomplete, errors occurred!

...