2009-04-29 23:19:21 +04:00
|
|
|
Installing Dependencies
|
2007-10-29 17:22:35 +03:00
|
|
|
=======================
|
|
|
|
|
|
|
|
To build Moonlight, you need to install a few dependencies for
|
|
|
|
the basic runtime engine (this is needed to support both API
|
2008-01-11 20:23:13 +03:00
|
|
|
profiles: Silverlight 1.0 and 2.0).
|
2007-10-29 17:22:35 +03:00
|
|
|
|
2009-04-29 23:19:21 +04:00
|
|
|
You will need the following dependencies:
|
2009-04-29 23:28:05 +04:00
|
|
|
libexpat
|
|
|
|
glib2
|
|
|
|
gtk+
|
2009-04-29 23:19:21 +04:00
|
|
|
gtk-sharp2
|
|
|
|
rsvg2-sharp
|
2009-04-29 23:28:05 +04:00
|
|
|
|
|
|
|
To build the mozilla plugin you will need xulrunner packages
|
2009-04-29 23:39:31 +04:00
|
|
|
for your requisite firefox version.
|
2007-10-29 17:22:35 +03:00
|
|
|
|
2009-04-29 23:28:05 +04:00
|
|
|
You will need alsa or pulse-audio for audio support.
|
2007-10-29 17:22:35 +03:00
|
|
|
|
2009-04-29 23:19:21 +04:00
|
|
|
Build Mono
|
|
|
|
==========
|
2007-10-29 17:22:35 +03:00
|
|
|
|
2009-04-29 23:19:21 +04:00
|
|
|
You currently need a working Mono from svn. The latest known working
|
2009-05-21 00:51:26 +04:00
|
|
|
revision is r134208. Check #moonlight on irc.gimp.org for more info
|
2007-10-29 17:22:35 +03:00
|
|
|
|
2009-04-29 23:19:21 +04:00
|
|
|
Check out mono,mcs,mono-basic from svn
|
|
|
|
svn co -rREV svn://anonsvn.mono-project.com/source/trunk/mono
|
|
|
|
svn co -rREV svn://anonsvn.mono-project.com/source/trunk/mcs
|
|
|
|
svn co svn://anonsvn.mono-project.com/source/trunk/mono-basic
|
2007-10-29 17:22:35 +03:00
|
|
|
|
2009-04-29 23:19:21 +04:00
|
|
|
In mono, do the usual ./autogen.sh && make && make install
|
2007-10-29 19:53:45 +03:00
|
|
|
|
2009-04-29 23:19:21 +04:00
|
|
|
See http://mono-project.com/Parallel_Mono_Environments
|
|
|
|
for tips on running in multiple Mono environments
|
2008-05-27 23:17:10 +04:00
|
|
|
|
2009-04-29 23:19:21 +04:00
|
|
|
Make mono-basic
|
2009-04-29 23:44:32 +04:00
|
|
|
./configure && make && make install
|
2007-10-29 17:22:35 +03:00
|
|
|
|
|
|
|
|
2009-04-29 23:19:21 +04:00
|
|
|
Moonlight Configuration Options
|
|
|
|
=====================
|
|
|
|
We do not support building moonlight 1.0 from HEAD anymore.
|
|
|
|
For only Moonlight 1.0 support, checkout our branch at
|
|
|
|
svn://anonsvn.mono-project.com/source/branches/moon-1-0
|
2008-08-19 23:29:58 +04:00
|
|
|
|
2009-04-29 23:19:21 +04:00
|
|
|
Moonlight is now focused on Silverlight 2.0 support. Moonlight needs
|
|
|
|
to know where to find the mcs and mono-basic directories.
|
2008-08-19 23:29:58 +04:00
|
|
|
|
2009-04-29 23:19:21 +04:00
|
|
|
--with-mcspath=<path>
|
2008-08-19 23:29:58 +04:00
|
|
|
|
2009-04-29 23:19:21 +04:00
|
|
|
By default moon looks for ../mcs.
|
2007-10-29 17:22:35 +03:00
|
|
|
|
2009-04-29 23:19:21 +04:00
|
|
|
--with-mono-basic-path=<path>
|
2008-01-11 20:23:13 +03:00
|
|
|
|
2009-04-29 23:19:21 +04:00
|
|
|
By default moon looks for ../mono-basic.
|
2008-01-11 20:23:13 +03:00
|
|
|
|
2008-08-20 02:25:05 +04:00
|
|
|
--with-alsa=yes,no
|
|
|
|
|
|
|
|
To enable audio using the ALSA stack, this can be
|
|
|
|
mixed with --with-pulse-audio=yes
|
|
|
|
|
|
|
|
--with-pulse-audio=yes,no
|
|
|
|
|
|
|
|
To enable audio using the Pulse Audio stack, this can
|
|
|
|
be mixed with --with-alsa=yes
|
|
|
|
|
2009-04-29 23:19:21 +04:00
|
|
|
--with-testing=yes,no
|
2009-01-24 22:14:06 +03:00
|
|
|
|
2009-04-29 23:19:21 +04:00
|
|
|
Enable/disable unit tests (default=yes)
|
2007-10-29 17:22:35 +03:00
|
|
|
|
2009-04-29 23:19:21 +04:00
|
|
|
--with-performance=yes|no
|
2007-10-29 17:22:35 +03:00
|
|
|
|
2009-04-29 23:19:21 +04:00
|
|
|
Enable/disable the performance tests (default=yes)
|
2007-10-29 17:22:35 +03:00
|
|
|
|
|
|
|
|
2008-02-12 01:21:58 +03:00
|
|
|
|
2009-01-24 22:14:06 +03:00
|
|
|
|
|
|
|
Installing Moonlight
|
|
|
|
====================
|
|
|
|
|
|
|
|
(Note: if you are building Moonlight from an svn checkout,
|
|
|
|
you'll need to run ./autogen.sh first.)
|
|
|
|
|
|
|
|
Configure the build system by running ./configure with any
|
|
|
|
configuration options you might want (see the "Configuration
|
2009-04-29 23:19:21 +04:00
|
|
|
Options" section). For example, a typical configure might be:
|
2009-01-24 22:14:06 +03:00
|
|
|
|
2009-04-29 23:19:21 +04:00
|
|
|
./configure --prefix=/usr/local --with-mcs-path=<path/to/mcs>
|
2009-01-24 22:14:06 +03:00
|
|
|
|
|
|
|
Once ./configure has finished, you'll need to actually compile
|
|
|
|
and install Moonlight using the following command:
|
|
|
|
|
|
|
|
make && make install
|
|
|
|
|
|
|
|
After Moonlight has finished building and installing, you'll
|
|
|
|
need to install the plugin so that Firefox will be able to
|
|
|
|
load it when it encounters a Silverlight-enabled website:
|
|
|
|
|
|
|
|
make test-plugin
|
|
|
|
|
2009-04-29 23:19:21 +04:00
|
|
|
Building the .xpi
|
|
|
|
================
|
|
|
|
|
|
|
|
To build a mozilla plugin installer (XPI), you must have the Firefox
|
|
|
|
packages installed. Building the xpi builds a modified libmoon and
|
2009-04-29 23:46:11 +04:00
|
|
|
libmoonloader that the xpi will use.
|
2009-04-29 23:19:21 +04:00
|
|
|
|
|
|
|
When you configured, you should have seen something like this:
|
|
|
|
|
|
|
|
Browser Support:
|
|
|
|
Firefox: yes
|
|
|
|
Plugin Installer (.xpi): yes
|
|
|
|
Gecko 1.8 (Firefox 2): no (reason: missing FF2 development packages)
|
|
|
|
Gecko 1.9 (Firefox 3): yes
|
|
|
|
|
|
|
|
After you run make, then run make user-plugin
|
|
|
|
|
|
|
|
The plugin is located at moon/plugin/install/novell-moonlight.xpi
|
|
|
|
|
|
|
|
To install the plugin open the .xpi with your mozilla-based browser
|
|
|
|
and follow the prompts. Moonlight should now be properly installed
|
|
|
|
and ready to be used.
|