Академический Документы
Профессиональный Документы
Культура Документы
* Install Lua
Download the prebuild binaries from
http://luabinaries.sourceforge.net/download.html
You need the "lua-5.2.1_MacOS107_lib.tar.gz" package only. Copy
the header files ("lua.h" and other ".h" files) into
"/usr/local/include".
Copy "liblua52.dylib" into "/usr/local/lib".
DO NOT install "liblua52.a" on your system, to avoid accidentally
performing a static link.
* Now you can either manually compile and install Ipe, or you can
build a MacOS application bundle (which you can then install on
several machines).
(1) Simple compile and install:
cd src
make IPEPREFIX=/usr/local
sudo make install IPEPREFIX=/usr/local
sudo cp ../fontmaps/mactex2011-fontmap.xml \
/usr/local/share/ipe/7.x.y/fontmap.xml
(where 7.x.y has to be replaced by the current Ipe version)
(2) To build an application bundle, just run the script
"mac_make_bundle.sh". (Line #4 of the script contains
the Ipe version number - make sure it's set properly!)
cd src
bash mac_make_bundle.sh
The bundle will contain Qt and Lua, so you do not need to
install those manually to install Ipe on another Mac.
If something doesn't work for you, please read below to check the
details!
-------------------------------------------------------------------Supported platforms
------------------Ipe should compile on most Unix platforms and on Microsoft Windows.
Mac OS X is not an officially supported platform - while it is based
on a Unix kernel, the Apple application infrastructure is proprietary
and quite different from standard Unix. I do not own an Apple
computer, and cannot help you with building or installing Ipe on Mac
OS.
-------------------------------------------------------------------Required components
------------------Before you can compile Ipe, you will need to have the following tools
and libraries:
* GNU make
The Ipe makefiles are written for GNU make. A Linux system will
already have it. On other Unix systems, GNU make is often
installed as 'gmake'. Otherwise, install it yourself from
www.gnu.org. Other "make" implementations will not work!
MacOS 10.6 already has this.
* The compression library 'zlib'
Very likely you already have it on your system (check for the
include file "zlib.h"). If not, obtain it from "www.gzip.org/zlib"
and install it.
MacOS 10.6 already has this.
* The font library 'Freetype 2'
On Linux, you most likely already have this on your system. You
will need the development package (on Debian/Ubuntu, this is
"libfreetype6-dev").
MacOS 10.6 already has this.
The original sources are at "www.freetype.org". You need version
2.1.8 or newer.
* The Cairo library (version 1.8.0 or higher)
The Gnome desktop uses this high-quality rendering library, so you
may already have it. You will need the development package,
e.g. on Debian/Ubuntu "libcairo2-dev".
MacOS 10.6 already has this.
You can also install from sources at "www.cairographics.org". If
you compile Cairo yourself, note that you only need the image and
svg surfaces (backends). You also need freetype support, but no
fontconfig. Since Ipe does not need any platform-dependent
backends, Cairo should compile fine on any platform.
* The libpng library
Linux and MacOS 10.6 already have this.
You can also install from source at "http://www.libpng.org".
* The libjpeg library (version 6 or higher)
Linux and MacOS 10.6 already have this.
You'll need the development package, e.g. on Debian/Ubuntu
"libjpeg8-dev". You can also use libjpeg-turbo instead (the
package "libjpeg-turbo8-dev"), from http://libjpeg-turbo.virtualgl.org/.
* The Lua language (version 5.2)
Lua is an embeddable scripting language. On Debian/Ubuntu, install