构建月光树干 - Mono.Cecil.dll
由于下面的构建错误,我无法从主干或最近的 tarball 构建 Mono Moonlight。这种情况发生在 Make 成功构建了其他一些子目录之后:
make[2]: Leaving directory `/home/dev/MonoTar/moonlight-1.99.5/src' Making all in class make[2]: Entering directory `/home/dev/MonoTar/moonlight-1.99.5/class' Making all in . make[3]: Entering directory `/home/dev/MonoTar/moonlight-1.99.5/class' make[3]: *** No rule to make target `/home/dev/MonoTar/mcs/class/lib/net_1_1 /Mono.Cecil.dll', needed by `lib/tuner/Mono.Cecil.dll'. Stop. make[3]: Leaving directory `/home/dev/MonoTar/moonlight-1.99.5/class' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/dev/MonoTar/moonlight-1.99.5/class' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/dev/MonoTar/moonlight-1.99.5' make: *** [all] Error 2
无论是使用 tarball 还是 svn checkout,我都将 mono、mcs、libgdiplus 和 Moon 放在同一目录中。然后:
cd mono ./autogen.sh --prefix=/usr make sudo make install cd ../libgdiplus ./autogen.sh --prefix=/usr make sudo make install cd ../moon ./configure --prefix=/usr make
我收到有关 Mono.Cecil.dll 的错误。关于为什么有什么想法吗?从 Moon 配置没有显示任何错误,最终配置如下所示,以防有帮助(我已经尝试过使用和不使用 --with-mcspath 选项):
./configure --prefix=/usr --with-mcspath=/home/dev/MonoTar/mcs/ Moonlight configuration ======================= General configuration: Using cairo: embedded Test Harness: no (reason: failed to find xtst >= 1.0) Performance Suite: no (reason: performance suite requires FF3) Debug configuration: Sanity checks: no Object tracking: no Logging support with MOONLIGHT_DEBUG: yes Media Support: FFmpeg: no (reason: could not find libavutil and libavcodec packages) ALSA: no (reason: could not find alsa development package) PulseAudio: no (reason: could not find libpulse development package) Silverlight Support: Silverlight 1.0: yes Silverlight 2.0: yes Browser plugin assemblies: yes Path to mcs tree: /home/dev/MonoTar/mcs/ Path to mono-basic tree: no Desktop application assemblies: yes Browser Support: Firefox: yes Plugin Installer (.xpi): yes Gecko 1.8 (Firefox 2): yes Gecko 1.9 (Firefox 3): no (reason: missing FF3 development packages)
是否有人在任何 Linux 发行版上成功编译了 Moonlight 插件?有什么建议吗?
非常感谢!
I'm unable to build Mono Moonlight from trunk or from recent tarballs due to the build error below. This happens after Make successfully builds a few other subdirectories:
make[2]: Leaving directory `/home/dev/MonoTar/moonlight-1.99.5/src' Making all in class make[2]: Entering directory `/home/dev/MonoTar/moonlight-1.99.5/class' Making all in . make[3]: Entering directory `/home/dev/MonoTar/moonlight-1.99.5/class' make[3]: *** No rule to make target `/home/dev/MonoTar/mcs/class/lib/net_1_1 /Mono.Cecil.dll', needed by `lib/tuner/Mono.Cecil.dll'. Stop. make[3]: Leaving directory `/home/dev/MonoTar/moonlight-1.99.5/class' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/dev/MonoTar/moonlight-1.99.5/class' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/dev/MonoTar/moonlight-1.99.5' make: *** [all] Error 2
Whether with tarballs or svn checkout, I am placing mono, mcs, libgdiplus, and moon in the same directory. Then:
cd mono ./autogen.sh --prefix=/usr make sudo make install cd ../libgdiplus ./autogen.sh --prefix=/usr make sudo make install cd ../moon ./configure --prefix=/usr make
And I get this error about Mono.Cecil.dll. Any ideas about why? Configure from moon shows no errors and the final configuration look like this below, in case it helps (I've tried with and without the --with-mcspath option):
./configure --prefix=/usr --with-mcspath=/home/dev/MonoTar/mcs/ Moonlight configuration ======================= General configuration: Using cairo: embedded Test Harness: no (reason: failed to find xtst >= 1.0) Performance Suite: no (reason: performance suite requires FF3) Debug configuration: Sanity checks: no Object tracking: no Logging support with MOONLIGHT_DEBUG: yes Media Support: FFmpeg: no (reason: could not find libavutil and libavcodec packages) ALSA: no (reason: could not find alsa development package) PulseAudio: no (reason: could not find libpulse development package) Silverlight Support: Silverlight 1.0: yes Silverlight 2.0: yes Browser plugin assemblies: yes Path to mcs tree: /home/dev/MonoTar/mcs/ Path to mono-basic tree: no Desktop application assemblies: yes Browser Support: Firefox: yes Plugin Installer (.xpi): yes Gecko 1.8 (Firefox 2): yes Gecko 1.9 (Firefox 3): no (reason: missing FF3 development packages)
Is anyone successfully compiling the moonlight plugin themselves on any Linux distro? Any advice?
Thanks very much!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
对于 Moonlight 2.0,我们将使用这里的 mono 2.6 分支:
http ://anonsvn.mono-project.com/source/branches/mono-2-6/
mono trunk 现在正在经历很多不稳定的变化,这就是为什么我们决定使用稳定的 2.6 分支。
For Moonlight 2.0 we'll be using mono's 2.6 branch from here:
http://anonsvn.mono-project.com/source/branches/mono-2-6/
mono trunk is going through a lot of unstable changes right now, which is why we decided to use the stable 2.6 branch instead.
我认为 Moonlight 目前使用 mono 和 mcs 的一个分支,所以最好使用它 - 或者它可能只是 mcs 主干中的 makfile bug。您最好在月光邮件列表或 IRC 上询问。
I think Moonlight currently uses a branch of mono and mcs, so it might be best to use that - or it might just be a makfile bug in mcs trunk. You'd be best asking on the moonlight mailing list or IRC.
对于有关构建 Moonlight 的此类具体问题,请加入我们的 irc.gnom.org/#moonlight 或我们的邮件列表 Moonlight-list @lists.ximian.com。这样我们可以更好地帮助您。
For such specific questions about building moonlight, please join us on irc.gnom.org/#moonlight or our mailing list moonlight-list @ lists.ximian.com. We can better help you that way.