macOS编译ckb-next

       macOS x86 成功,下一步,测试:m1、m2、m3 。

1、Homebrew

# 三选一
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
# /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

2、zsh(可选)

brew install zsh
echo $SHELL				# 查看当前使用的 shell
cat /etc/shells		# 查看安装的 shell
chsh -s /bin/zsh	# 切换为 zsh
exit							# 重启终端即可使用 zsh
curl -L http://install.ohmyz.sh | sh
git clone https://github.com/zsh-users/zsh-syntax-highlighting $ZSH_CUSTOM/plugins/zsh-syntax-highlighting

3、原码及工具链

brew install cmake qt5 quazip
git clone https://github.com/ckb-next/ckb-next.git
cd ckb-next
# echo 'export PATH="/usr/local/opt/qt@5/bin:$PATH"' >> ~/.zshrc
# export LDFLAGS="-L/usr/local/opt/qt@5/lib"
# export CPPFLAGS="-I/usr/local/opt/qt@5/include"
# export PKG_CONFIG_PATH="/usr/local/opt/qt@5/lib/pkgconfig"
export PATH="/usr/local/opt/qt@5/bin:$PATH" \
	export LDFLAGS="-L/usr/local/opt/qt@5/lib" \
	export CPPFLAGS="-I/usr/local/opt/qt@5/include" \
	export PKG_CONFIG_PATH="/usr/local/opt/qt@5/lib/pkgconfig"

4、编译

4.1、编译打包

brew install npm
brew cask install packages
npm install -g appdmg
cmake -H. -Bbuild -DCMAKE_OSX_DEPLOYMENT_TARGET=10.10 -DCMAKE_BUILD_TYPE=Release -DSAFE_INSTALL=ON -DSAFE_UNINSTALL=ON
cmake --build build --target macos-package

4.2、直接安装

./quickinstall

X、关闭SIP内核保护

## 白果:
	1. 启动 > ⌘ + R > macOS实用工具 > 重新安装 macOS > 实用工具 > 终端
	2. csrutil disable / enable / status

## 黑果
	OpenCore 启动界面:Enable / Disable SIP 

相关推荐

  1. macOS编译ckb-next

    2023-12-26 06:02:06       57 阅读
  2. mace | ubuntu编译mace

    2023-12-26 06:02:06       38 阅读
  3. CKA-EXAM

    2023-12-26 06:02:06       25 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2023-12-26 06:02:06       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2023-12-26 06:02:06       100 阅读
  3. 在Django里面运行非项目文件

    2023-12-26 06:02:06       82 阅读
  4. Python语言-面向对象

    2023-12-26 06:02:06       91 阅读

热门阅读

  1. 新环境下,数据要素流通的安全挑战与对策

    2023-12-26 06:02:06       61 阅读
  2. 13-网络安全框架及模型-纵深防御模型

    2023-12-26 06:02:06       48 阅读
  3. CNVD原创漏洞审核和处理流程

    2023-12-26 06:02:06       64 阅读
  4. 2023.12.25 ubuntu程序输出另存为文件log

    2023-12-26 06:02:06       71 阅读
  5. RabbitMQ 面试

    2023-12-26 06:02:06       59 阅读
  6. TensorFlow中的Scikit Flow

    2023-12-26 06:02:06       48 阅读
  7. CentOS7安装git-2.42.1

    2023-12-26 06:02:06       52 阅读
  8. 【ES实战】ES的CCR对多活支撑的探讨

    2023-12-26 06:02:06       61 阅读
  9. 新概念英语第二册(2)

    2023-12-26 06:02:06       55 阅读