Comments (12)
请问方便来张完整的截图吗。看起来是卡在cmake里了
from hikari.
另外什么叫预编译和编译两个步骤都需要
from hikari.
http://p1kpxlx93.bkt.clouddn.com/snap.png
from hikari.
昨天编译的时候还可以编译,只不过编译到某个位置说某个文件已经存在就退出了。今天再编译,就一直卡在这里
from hikari.
然而我这里一点问题都没有,试试把原来的编译临时目录和~/Hikari删了?
另外readme里写了工作目录不能在家目录。有切换到其他地方吗。
我也不是太清楚cmake内部是怎么工作的,这套编译系统都是LLVM上流搞的
Last login: Sat Mar 24 15:45:16 on ttys000
Naville @ MacBook-Pro in ~
λ : >>> cd /tmp/
Naville @ MacBook-Pro in /tmp
λ : >>> git clone -b release_60 https://github.com/HikariObfuscator/Hikari.git Hikari \
&& mkdir Build && cd Build && \
cmake -G "Ninja" -DCMAKE_BUILD_TYPE=MinSizeRel -DLLVM_APPEND_VC_REV=on -DLLVM_CREATE_XCODE_TOOLCHAIN=on \
-DCMAKE_INSTALL_PREFIX=~/Library/Developer/ ../Hikari && ninja &&ninja install-xcode-toolchain && git clone \
https://github.com/HikariObfuscator/Resources.git ~/Hikari && rsync -ua \ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/ \ ~/Library/Developer/Toolchains/Hikari.xctoolchain/ && \
rm ~/Library/Developer/Toolchains/Hikari.xctoolchain/ToolchainInfo.plist
Cloning into 'Hikari'...
remote: Counting objects: 57328, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 57328 (delta 2), reused 0 (delta 0), pack-reused 57322
Receiving objects: 100% (57328/57328), 78.52 MiB | 2.42 MiB/s, done.
Resolving deltas: 100% (10135/10135), done.
Checking out files: 100% (52852/52852), done.
-- The C compiler identification is AppleClang 9.0.0.9000039
-- The CXX compiler identification is AppleClang 9.0.0.9000039
-- The ASM compiler identification is AppleClang
-- Found assembler: /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
-- 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
-- Found libtool - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool
-- Looking for dirent.h
-- Looking for dirent.h - found
-- Looking for dlfcn.h
-- Looking for dlfcn.h - found
-- Looking for errno.h
-- Looking for errno.h - found
-- Looking for fcntl.h
-- Looking for fcntl.h - found
-- Looking for inttypes.h
-- Looking for inttypes.h - found
-- Looking for link.h
-- Looking for link.h - not found
-- Looking for malloc.h
-- Looking for malloc.h - not found
-- Looking for malloc/malloc.h
-- Looking for malloc/malloc.h - found
-- Looking for ndir.h
-- Looking for ndir.h - not found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for signal.h
-- Looking for signal.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for sys/dir.h
-- Looking for sys/dir.h - found
-- Looking for sys/ioctl.h
-- Looking for sys/ioctl.h - found
-- Looking for sys/mman.h
-- Looking for sys/mman.h - found
此处省略几百行。。。。
-- Identified Xcode Version: 9.2
-- Configuring done
CMake Warning (dev):
Policy CMP0068 is not set: RPATH settings on macOS do not affect
install_name. Run "cmake --help-policy CMP0068" for policy details. Use
the cmake_policy command to set the policy and suppress this warning.
For compatibility with older versions of CMake, the install_name fields for
the following targets are still affected by RPATH settings:
LTO
libclang
This warning is for project developers. Use -Wno-dev to suppress it.
-- Generating done
-- Build files have been written to: /tmp/Build
[85/8094] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Signals.cpp.o
from hikari.
另外虽然我不认为cmake的版本跟这事儿有关系,但我这里的版本是3.10.2
我能想到的可能的解决方案:
- 删除原有的临时目录和
~/Hikari
- 挂着代理clone/编译
- 手动一条一条(clone/cmake/ninja)执行看看有啥其他的出错提示没有,目前其他大概50个用户都没这个问题
from hikari.
好的 我先按照你的方案试下
from hikari.
1.所有的临时目录和~/Hikari都删除了
2.挂了VPN也是一样
3.按照你提供的方案3,发现执行这条明令时就卡住了。
cmake -G "Ninja" -DCMAKE_BUILD_TYPE=MinSizeRel -DLLVM_APPEND_VC_REV=on -DLLVM_CREATE_XCODE_TOOLCHAIN=on
-DCMAKE_INSTALL_PREFIX=~/Library/Developer/ ../Hikari
卡住信息:
CMake Deprecation Warning at CMakeLists.txt:14 (cmake_policy):
The OLD behavior for policy CMP0051 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
from hikari.
不是太清楚你这什么情况。不过既然编译系统是LLVM上流的而且其他人都没这问题的话我只能怀疑是你那里环境的问题。我更新下预编译版吧
from hikari.
已更新预编译版。下载下来解压后把Hikari.xctoolchain 移动到 ~/Library/Developer/Toolchains
下并执行rsync -ua /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/ \ ~/Library/Developer/Toolchains/Hikari.xctoolchain/ && \ rm ~/Library/Developer/Toolchains/Hikari.xctoolchain/ToolchainInfo.plist
即可
from hikari.
好的,谢谢张总
from hikari.
跟 cmake没有关系,你可能是没有安装 ninja。用 brew install Ninja 后 就正常了。
from hikari.
Related Issues (20)
- Xcode12.0.1编译出现的问题 HOT 3
- 编译含有dobby.framework的动态库时未找到符号 HOT 1
- [PSA]Hikari will be fully unusable very soon HOT 5
- The LLVMObfuscation files can't hit breakpoints in the LLVM.xcodeproj HOT 2
- pkg install failed HOT 1
- Start porting to LLVM 9&10 as it's right at the corner HOT 2
- 加密字符选项运行不起来 HOT 4
- Current situation and future plan on porting and future compatibility
- Compile Error on macOS Catalina HOT 18
- Porting to NDK HOT 1
- Obfuscator passes not working HOT 3
- Library not loaded: libz3.dylib HOT 2
- Zip password is wrong HOT 3
- Use Hikari's toolchain with "Theos for iOS" (logos) HOT 13
- Ask HOT 5
- About the commercial version HOT 1
- Xcode 12.0下无法编译,曾经编译好的也无法执行 HOT 4
- 'ProjectName-Swift.h' file not found while archiving
- 'ProjectName-Swift.h' file not found while archiving HOT 1
- 苹果兼容问题 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hikari.