Ubuntu 13.04: how to build Monodevelop 4.0.1?

有些话、适合烂在心里 提交于 2019-11-30 05:05:54

Here's what I do:

sudo apt-get install libglade2.0-cil-dev 
sudo apt-get install gnome-sharp2

cd /usr/lib/mono/gac/

sudo gacutil -i glib-sharp/2.12.0.0__35e10195dab3c99f/glib-sharp.dll &&
sudo gacutil -i atk-sharp/2.12.0.0__35e10195dab3c99f/atk-sharp.dll &&
sudo gacutil -i gdk-sharp/2.12.0.0__35e10195dab3c99f/gdk-sharp.dll &&
sudo gacutil -i gtk-sharp/2.12.0.0__35e10195dab3c99f/gtk-sharp.dll &&
sudo gacutil -i glade-sharp/2.12.0.0__35e10195dab3c99f/glade-sharp.dll &&
sudo gacutil -i pango-sharp/2.12.0.0__35e10195dab3c99f/pango-sharp.dll &&
sudo gacutil -i gnome-sharp/2.24.0.0__35e10195dab3c99f/gnome-sharp.dll && 
sudo gacutil -i gconf-sharp/2.24.0.0__35e10195dab3c99f/gconf-sharp.dll &&
sudo gacutil -i gnome-vfs-sharp/2.24.0.0__35e10195dab3c99f/gnome-vfs-sharp.dll

Apparently, mono's GAC does not see those libs you install from packages. Well, commands above work for me :-D

I managed to compile Monodevelop 4.1.4 today on Ubuntu 13.04. I had similar problems as you did. I compiled and installed gnome-sharp from source. When you run ./configure pay attention to the output at the end. I actually managed to compile it without error by blindly running ./configure make make install but failed to notice that in order for the dlls to work a number of libraries needed to be available before hand. The final output of ./configure will tell you which libraries you need for those dlls.

Anything that appears to be missing, build from source and install it on your machine. Pay attention to the version numbers as there are later versions of some of the libraries.

I would recommend to try delete file ~/.config/xbuild/pkgconfig-cache-2.xml. It caches installed packages and in some cases produces a total mess after installing/reinstalling gtk-sharp and other packages. You could look into this file, and if you find references to non-existing old gtk-sharp files and other then this is you case. After deletion the file will be recreated by xbuild on the next compile.

John

instead of

cat «deb http://ubuntu.mirror.cambrium.nl/ubuntu/ lucid main» >> /etc/apt/sources.list

do

cat «deb http://ubuntu.mirror.cambrium.nl/ubuntu/ raring main» >> /etc/apt/sources.list

or possibly

cat «deb http://ubuntu.mirror.cambrium.nl/ubuntu/ quantal main» >> /etc/apt/sources.list 
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!