美文网首页
llvm-4.0添加字符串加密--编译出错解决方法

llvm-4.0添加字符串加密--编译出错解决方法

作者: 是Jonathan | 来源:发表于2019-07-24 16:43 被阅读0次
    ILD_TYPE=Release ../
    -- The C compiler identification is AppleClang 10.0.1.10010046
    -- The CXX compiler identification is AppleClang 10.0.1.10010046
    -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
    -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
    -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    CMake Error at CMakeLists.txt:10 (create_llvm_tool_options):
      Unknown CMake command "create_llvm_tool_options".
    
    
    CMake Warning (dev) in CMakeLists.txt:
      No cmake_minimum_required command is present.  A line of code such as
    
        cmake_minimum_required(VERSION 3.12)
    
      should be added at the top of the file.  The version specified may be lower
      if you wish to support older CMake versions for this project.  For more
      information run "cmake --help-policy CMP0000".
    This warning is for project developers.  Use -Wno-dev to suppress it.
    
    -- Configuring incomplete, errors occurred!
    
    (venv) ~/day04/obfuscator(llvm-4.0 ✗) grep -i "create_llvm_tool_options" -R .
    ./tools/CMakeLists.txt:create_llvm_tool_options()
    ./cmake/modules/AddLLVM.cmake:function(create_llvm_tool_options)
    ./cmake/modules/AddLLVM.cmake:endfunction(create_llvm_tool_options)
    
    image.png

    在提示的 lib/Transforms/Obfuscation/CMakeLists.txt文件中添加cmake_minimum_required(VERSION 3.12)

    (venv) ~/day04/obfuscator(llvm-4.0 ✗) code  lib/Transforms/Obfuscation/CMakeLists.txt
    
    
    image.png
    $ cmake -DCMAKE_BUILD_TYPE=Release ../
    $ make -j8
    

    相关文章

      网友评论

          本文标题:llvm-4.0添加字符串加密--编译出错解决方法

          本文链接:https://www.haomeiwen.com/subject/orffrctx.html