source: gs2-extensions/gnome-lib/trunk/src/README@ 34983

Last change on this file since 34983 was 34983, checked in by anupama, 3 years ago

Merging the gnome-lib branch macos-dev at https://trac.greenstone.org/browser/gs2-extensions/gnome-lib/branches/macos-dev with the main trunk after testing it first on assigned linux 64 bit machine in lab as well as 64 bit LSB VM, and making changes for it to compile on Linux 64 bit LSB.

File size: 3.8 KB
Line 
1A. For compiling glib-2.54.3 onwards, need python2.7+. On LSB, python needs to be manually compiled up (we're using 2.7.18 on 64 bit LSB) and put into a user location e.g. /home/sjm84/python2.7/bin in our case, with its bin folder added to the PATH:
2( export PATH=/home/sjm84/python2.7/bin:$PATH )
3
4To configure and compile wvware in Greenstone2/3, it used to be required to first:
5 source ./devel.bash
6
7Now the above is done automatically when compiling up Greenstone 2 or 3.
8
9However, if compiling gnome-lib manually (outside a Greenstone installation), then the above is still necessary to compile wvware and you need to add -fPIC to CFLAGS and CXXFLAGS:
10
11 svn co http://svn.greenstone.org/gs2-extensions/gnome-lib/trunk gnome-lib
12 cd gnome-lib/src
13OR**
14 svn co http://svn.greenstone.org/gs2-extensions/gnome-lib/trunk/src gnome-lib
15 cd gnome-lib
16
17For compiling glib-2.54.3 onwards, need python2.7+. On LSB this needs to be manually compiled up and put into a user location and its bin folder on the PATH, e.g. /home/sjm84/python2.7/bin
18
19Then:
20( export PATH=/home/sjm84/python2.7/bin:$PATH )
21 export CFLAGS="-fPIC $CFLAGS"
22 export CXXFLAGS="-fPIC $CXXFLAGS"
23 source ./devel.bash
24
25** NOTE: if you svn checked out the gnome-lib/trunk folder as "gnome-lib", then its "src" subfolder is the one you'll want to be doing things like sourcing devel.bash/CASCADE-MAKE.sh, compiling and creating gnome-lib-minimal tarballs in.
26
27Then follow from step B below onwards.
28
29
30B. To compile up all of gnome-lib:
31 ./CASCADE-MAKE.sh
32
33C. To do a clean compile
34 At the toplevel, rm the <OS> directory completely
35 ./CASCADE-MAKE.sh tarclean
36 ./CASCADE-MAKE.sh
37The second step removes all the extracted packages. While the third step extracts and recompiles them all again.
38If you wish to just remove the intermediate files generated by configure and compile, then replace the 2nd step with
39 ./CASCADE-MAKE.sh distclean
40
41
42D. To compile just a package in gnome-lib:
43 source ./devel.bash
44 #./packages/CASCADE-MAKE/<PACKAGE>.sh
45 cd packages
46 ./CASCADE-MAKE/<PACKAGE>.sh
47
48E. To completely clean a single package and compile it up by itself
49 (source ./devel.bash, unless you've already done it)
50 ./packages/CASCADE-MAKE/<PACKAGE>.sh tarclean
51 ./packages/CASCADE-MAKE/<PACKAGE>.sh
52If you wish to just remove the package's intermediate files generated by configure and compile, then replace the 2nd step with
53 ./packages/CASCADE-MAKE/<PACKAGE>.sh distclean
54
55
56F. To generate the gnome-lib-minimal-<os>.tar.gz archive file,
57
581. Open a fresh terminal
592. make sure the gnome-lib folder (or it may be called "src", depending on what you checked out) is renamed to "gnome-lib-minimal" first
603. source ./devel.bash
61 from the gnome-lib-minimal folder
624. Also from the toplevel (gnome-lib-minimal) folder, run:
63 ./CASCADE-MAKE.sh makeminimal
64This will generate the tar.gz file. For ElCapitan and later MacOS, ensure the tar.gz file is named correctly. It may need to be moved into the folder containing the src subfolder.
655. If you haven't already, check out trunk level of gnome-lib and put the tar.gz there:
66 svn co --depth files http://svn.greenstone.org/gs2-extensions/gnome-lib/trunk/
67(--depth files only checks out files at that level, not a recursive checkout of folders and subfolders)
686. svn commit the tar.gz file
69
70This will generate a tar.gz file of the correct name. And because the gnome-lib folder had been renamed to gnome-lib-minimal in step 2,
71when the tar.gz file is extracted, it will extract as a folder called gnome-lib-minimal, as required.
72
73Tested on the Mac MountainLion.
74
75
76G. To generate the gnome-lib-<os>.tar.gz archive file
77
781. Open a fresh exterm
792. Make sure the top level gnome-lib folder is called "gnome-lib"
803. source ./devel.bash
814. toplevel
82 ./CASCADE-MAKE.sh makedist
835. svn commit the tar.gz file
84
Note: See TracBrowser for help on using the repository browser.