-
Notifications
You must be signed in to change notification settings - Fork 681
Create a CoqIDE bundle on macOS
- Get Xcode and Command line tools Xcode
- Get gtk-mac-integration (that require the Quartz backend of gtk) and gtksourceview2 libraries. I used
jhbuild
. I didcurl -LO https://git.gnome.org/browse/gtk-osx/plain/gtk-osx-build-setup.sh
sh gtk-osx-build-setup.sh
~/.local/bin/jhbuild bootstrap
-
~/.local/bin/jhbuild build python
(used to be necessary, seems OK under 10.10) ~/.local/bin/jhbuild build meta-gtk-osx-bootstrap
~/.local/bin/jhbuild build meta-gtk-osx-core
~/.local/bin/jhbuild build gtksourceview
fix_gtksourceview.patch
(lost attachment)), download some tar.xz by hand, recall autoconf with extra arguments, ...
- Get coq OCaml build dependencies (OCaml, camlp5, lablgtk2, lablgtkosx). I did it using opam by
- Get the opam binary on the opam github page. Put it somewhere on path, give it x rights. Do
opam init
and then the command opam asks you to do to config your shell. ~/.local/bin/jhbuild run opam install lablgtkosx camlp5
- Get the opam binary on the opam github page. Put it somewhere on path, give it x rights. Do
- Get coq >= v8.5 sources
~/.local/bin/jhbuild run ./configure -opt -prefix '''whatever'''
~/.local/bin/jhbuild run make bin/CoqIDE_'''versionfromconfigure.ml'''.app
You've got a CoqIDE (without coqtop so it will asks you for it if you launch it)
- Add a coq installation in the bundle can be done independently from generating the bundle as long as you use the same version of the OCaml compiler and a coq that speaks the same protocol.
If you've ./configure -opt -prefix '''somewhere_there_is_nothing'''
do
make -j 4 coq copide-toploop
make install-coq -install-coqide-toploop
ditto '''somewhere_there_is_nothing''' '''correct_path'''/CoqIDE_'''versionfromconfigure.ml'''.app/Contents/Resources/
codesign -f -s - '''correct_path'''/CoqIDE_'''versionfromconfigure.ml'''.app
- Get command line tools for Xcode.
export COQBIN='''correct_path'''/CoqIDE_version.app/Contents/Resources/bin/
- maybe
${COQBIN}coq_makefile -f _CoqProject -o Makefile
make -j 2 && make install
⚠️ codesign -f -s - '''correct_path'''/CoqIDE_version.app
To the extent possible under law, the contributors of the Rocq wiki have waived all copyright and related or neighboring rights to their contributions.
By contributing to the Rocq wiki, you agree that you hold the copyright and you agree to license your contribution under the CC0 license or you agree that you have permission to distribute your contribution under the CC0 license.