1
0

README 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. To compile: nant
  5. To use: Copy ContentManagement.dll into the bin directory of your Opensim build. You should find many other dlls in the same directory.
  6. --------------------------------------------------------------------------------------------------------------------
  7. To build the libgit.so file:
  8. #Download GIT git repository
  9. $ git clone git://git2.kernel.org/pub/OpenSim/Region/Environment/Modules/ContentManagementSystem/scm/git/git.git
  10. $ cd git
  11. #Compile GIT
  12. #Note that we are adding two extra flags to pass to gcc while compiling (-c and -fPIC)
  13. $ autoconf
  14. $ ./configure
  15. $ CFLAGS="-g -O2 -Wall -c -fPIC" make
  16. #Copy necessary object files (and some not so necessary) to their own directory for shared object file creation
  17. $ mkdir ../libgit-objects
  18. $ cp builtin*.o ../libgit-objects
  19. $ cp xdiff/*.o ../libgit-objects
  20. $ cp libgit.a ../libgit-objects
  21. #Remove the main symbol from any object files (like git.o)
  22. $ cd ../libgit-objects
  23. $ strip -N main *.o
  24. #Uncompress the plumbing objects from archive created by git
  25. $ ar x libgit.a
  26. #Create shared object file from all objects (including the zlib library)
  27. $ ld -shared -soname libgit.so.1 -o libgit.so.1.5.6.3 -lc -lz *.o
  28. #You can also just copy the following commands into a file and run as a script inside the git directory
  29. make clean
  30. autoconf
  31. ./configure
  32. CFLAGS="-g -O2 -Wall -c -fPIC" make
  33. mkdir libgit-objects
  34. cp builtin*.o libgit-objects
  35. cp xdiff/*.o libgit-objects
  36. cp libgit.a libgit-objects
  37. cd libgit-objects
  38. strip -N main *.o
  39. ar x libgit.a
  40. ld -shared -soname libgit.so.1 -o libgit.so.1.5.6.3 -lc -lz *.o