diff options
Diffstat (limited to 'OpenSim/Region/Environment/Modules/ContentManagementSystem/README')
-rw-r--r-- | OpenSim/Region/Environment/Modules/ContentManagementSystem/README | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Modules/ContentManagementSystem/README b/OpenSim/Region/Environment/Modules/ContentManagementSystem/README new file mode 100644 index 0000000..1a69fef --- /dev/null +++ b/OpenSim/Region/Environment/Modules/ContentManagementSystem/README | |||
@@ -0,0 +1,52 @@ | |||
1 | This module is meant to be built alone and not added to the Opensim code base. References are made to required dlls through a | ||
2 | reference file, ContentManagement.mdp. Originally, for development, this project was contained in the Opensim/Region/Modules/ | ||
3 | directory. | ||
4 | |||
5 | To compile: nant | ||
6 | To use: Copy ContentManagement.dll into the bin directory of your Opensim build. You should find many other dlls in the same directory. | ||
7 | |||
8 | |||
9 | -------------------------------------------------------------------------------------------------------------------- | ||
10 | To build the libgit.so file: | ||
11 | |||
12 | #Download GIT git repository | ||
13 | $ git clone git://git2.kernel.org/pub/OpenSim/Region/Environment/Modules/ContentManagementSystem/scm/git/git.git | ||
14 | $ cd git | ||
15 | |||
16 | #Compile GIT | ||
17 | #Note that we are adding two extra flags to pass to gcc while compiling (-c and -fPIC) | ||
18 | $ autoconf | ||
19 | $ ./configure | ||
20 | $ CFLAGS="-g -O2 -Wall -c -fPIC" make | ||
21 | |||
22 | #Copy necessary object files (and some not so necessary) to their own directory for shared object file creation | ||
23 | $ mkdir ../libgit-objects | ||
24 | $ cp builtin*.o ../libgit-objects | ||
25 | $ cp xdiff/*.o ../libgit-objects | ||
26 | $ cp libgit.a ../libgit-objects | ||
27 | |||
28 | #Remove the main symbol from any object files (like git.o) | ||
29 | $ cd ../libgit-objects | ||
30 | $ strip -N main *.o | ||
31 | |||
32 | #Uncompress the plumbing objects from archive created by git | ||
33 | $ ar x libgit.a | ||
34 | |||
35 | #Create shared object file from all objects (including the zlib library) | ||
36 | $ ld -shared -soname libgit.so.1 -o libgit.so.1.5.6.3 -lc -lz *.o | ||
37 | |||
38 | |||
39 | #You can also just copy the following commands into a file and run as a script inside the git directory | ||
40 | |||
41 | make clean | ||
42 | autoconf | ||
43 | ./configure | ||
44 | CFLAGS="-g -O2 -Wall -c -fPIC" make | ||
45 | mkdir libgit-objects | ||
46 | cp builtin*.o libgit-objects | ||
47 | cp xdiff/*.o libgit-objects | ||
48 | cp libgit.a libgit-objects | ||
49 | cd libgit-objects | ||
50 | strip -N main *.o | ||
51 | ar x libgit.a | ||
52 | ld -shared -soname libgit.so.1 -o libgit.so.1.5.6.3 -lc -lz *.o \ No newline at end of file | ||