File: README

package info (click to toggle)
libtinymail 0.0.9-4
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 18,148 kB
  • ctags: 19,175
  • sloc: ansic: 151,565; xml: 20,145; sh: 9,245; makefile: 2,394; cs: 243; cpp: 141; python: 93; perl: 71
file content (90 lines) | stat: -rw-r--r-- 2,618 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#
## .NET bindings for Tinymail
#

This is the documentation about the .NET bindings for Tinymail.

#
## About the patches
#

At this moment you need to apply the patch attached in the Novell bbug
https://bugzilla.novell.com/show_bug.cgi?id=358012 to make these DotNet
bindings generate correct CS proxy/adapter code.

The same patch is also available here: ./gtk-sharp-patch-01.diff

You also need to patch ./gtk-sharp-patch-02.diff discussed in Novell
bug https://bugzilla.novell.com/show_bug.cgi?id=357324

You also need to patch ./gtk-sharp-patch-03.diff discussed in Novell
bug https://bugzilla.novell.com/show_bug.cgi?id=361504

Tracker bug: https://bugzilla.novell.com/show_bug.cgi?id=361505


#
## Instructions to get it working
#

svn co svn://anonsvn.mono-project.com/source/trunk/gtk-sharp gtk-sharp
cd gtk-sharp

# Depending on the version of GtkSharp, this might not be necessary.
# Check the bugs mentioned above:

patch -p0 < gtk-sharp-patch-01.diff
patch -p0 < gtk-sharp-patch-02.diff
patch -p0 < gtk-sharp-patch-03.diff

# Make sure that you DO set a prefix, else you will overwrite your
# existing GtkSharp installation with a patched one (not good)
# We just need the adapted generator, but GtkSharp's build system
# does not make it possible to compile just that part :-( :

./boodstrap-2.12 --prefix=/opt/gtk-sharp

make && sudo make install
export PKG_CONFIG_PATH=/opt/gtk-sharp/lib/pkgconfig:/opt/tinymail/lib/pkgconfig
export PATH=$PATH:/opt/gtk-sharp/bin
cd ..
./autogen.sh --prefix=/opt/tinymail --enable-dotnet-bindings
make && sudo make install

#
## Testing it with a little demo ui written in C#
#

cd tests/dotnet-demo
sh ./build.sh

#
## To compile something simple
#

mcs -pkg:libtinymail-platform-sharp-1.0 *cs gtk-gui/*.cs \
	-resource:gtk-gui/gui.stetic -o test.exe

# Or for example:

mcs -r:Mono.Posix.dll -pkg:libtinymail-platform-sharp-1.0 \
	*cs gtk-gui/*.cs -resource:gtk-gui/gui.stetic -o test.exe

export LD_LIBRARY_PATH=/opt/tinymail/lib/:/opt/gtk-sharp/lib/
export MONO_PATH=/opt/gtk-sharp/lib/mono/gtk-sharp-2.0/:\
/opt/tinymail/lib/mono/libtinymail-sharp-1.0/:\
/opt/tinymail/lib/mono/libtinymailui-sharp-1.0/:\
/opt/tinymail/lib/mono/libtinymailui-gtk-sharp-1.0/:\
/opt/tinymail/lib/mono/libtinymail-camel-sharp-1.0/:\
/opt/tinymail/lib/mono/libtinymail-platform-sharp-1.0/

mono test.exe

#
## Note about those insane LD_LIBRARY_PATH and MONO_PATH variables:
#

A normal install does not require these. They are required because the 
assemblies and shared object files, when installed in /opt, wont be found by 
Mono unless you specify MONO_PATH and LD_LIBRARY_PATH.