Skip to content

Notes about how to build Moscow ML installers

Ken Friis Larsen edited this page Aug 28, 2014 · 1 revision

Notes about how to build Moscow ML installers

For OS X

Use the commands (in mosml dir):

mkdir osx-root
(cd src && make DESTDIR=`pwd`/../osx-root BASISDYNLIB="msocket munix" world install)
mkdir pkg1
pkgbuild --root osx-root \
         --identifier org.mosml \
         --version 2.10.1 \
         pkg1/mosml-2.10.1.pkg

We build without IntInf support (the BASISDYNLIB stuff), because we don't to distribute GMP with Moscow ML.

See also http://vincent.bernat.im/en/blog/2013-autoconf-osx-packaging.html

For Debian/Ubuntu

Build a deb with the one of commands:

debuild -us -uc 
debbuild -S

The later for building a signed package.

See also:

Uploading Ubuntu package:

dput ppa:kflarsen/mosml mosml_2.10.1-0ubuntu0_source.changes

Result can be found at: https://launchpad.net/~kflarsen/+archive/ubuntu/mosml

For Windows

Binaries for Windows can be build by cross-compiling under Linux:

sudo apt-get install mingw32
mkdir win-root
(cd src && make DESTDIR=`pwd`/../win-root PREFIX=/mosml cross_w32)
cd win-root
zip -r mosml-2.10.1.windows-bin.zip mosml