用户工具

站点工具


build_emacs_on_macos

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录前一修订版
后一修订版
前一修订版
build_emacs_on_macos [2026/01/08 03:27] – [下载源码] jiajibuild_emacs_on_macos [2026/01/09 02:09] (当前版本) – [测试] jiaji
行 12: 行 12:
 git checkout emacs-28 # 以emacs 28为例,你可以切换到其他的branch git checkout emacs-28 # 以emacs 28为例,你可以切换到其他的branch
 ``` ```
- 
 ### 下载依赖 ### 下载依赖
  
 ``` ```
-brew install libgccjit+# 使用 Homebrew 安装依赖 
 +brew install autoconf automake libtool gnutls texinfo 
 +brew install gcc libgccjit  # 用于原生编译(可选但推荐)
 ``` ```
 ### 编译 ### 编译
  
 ``` ```
 +
 +cd workspace_opensource/emacs
 +
 +# 清理之前的构建
 +make distclean 2>/dev/null || true
 +
 +# 生成配置脚本
 ./autogen.sh ./autogen.sh
  
 ./configure \ ./configure \
---with-mailutils \ +  --with-ns \ 
---with-json +  --without-x \ 
---with-native-compilation +  --without-dbus \ 
 +  --without-gconf \ 
 +  --without-gsettings \ 
 +  --without-pop \ 
 +  --without-mailutils \ 
 +  --without-sound 
 +  --without-rsvg \ 
 +  --without-webp 
  
 +make -j$(sysctl -n hw.ncpu)
 +make install  # 现在不会尝试安装到系统目录了
  
-make -j4 +echo "构建完成!Emacs.app 位于 nextstep/Emacs.app"
-make install+
 ``` ```
- +### 安装
-### 测试+
  
 ``` ```
-# 直接打开 Emacs 
-open nextstep/Emacs.app 
 # 在 Finder 中打开 Emacs,方便拖到 /Applications # 在 Finder 中打开 Emacs,方便拖到 /Applications
 open -R nextstep/Emacs.app open -R nextstep/Emacs.app
build_emacs_on_macos.1767842861.txt.gz · 最后更改: jiaji