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

Last change on this file was 35660, checked in by davidb, 2 years ago

svn URLs updated from http to https

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 https://svn.greenstone.org/gs2-extensions/gnome-lib/trunk gnome-lib
12 cd gnome-lib/src
13OR**
14 svn co https://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 are on 32 bit linux, then add -march=i686 to CFLAGS
26
27** 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.
28
29Then follow from step B below onwards.
30
31
32B. To compile up all of gnome-lib:
33 ./CASCADE-MAKE.sh
34
35C. To do a clean compile
36 At the toplevel, rm the <OS> directory completely
37 ./CASCADE-MAKE.sh tarclean
38 ./CASCADE-MAKE.sh
39The second step removes all the extracted packages. While the third step extracts and recompiles them all again.
40If you wish to just remove the intermediate files generated by configure and compile, then replace the 2nd step with
41 ./CASCADE-MAKE.sh distclean
42
43
44D. To compile just a package in gnome-lib:
45 source ./devel.bash
46 #./packages/CASCADE-MAKE/<PACKAGE>.sh
47 cd packages
48 ./CASCADE-MAKE/<PACKAGE>.sh
49
50E. To completely clean a single package and compile it up by itself
51 (source ./devel.bash, unless you've already done it)
52 ./packages/CASCADE-MAKE/<PACKAGE>.sh tarclean
53 ./packages/CASCADE-MAKE/<PACKAGE>.sh
54If you wish to just remove the package's intermediate files generated by configure and compile, then replace the 2nd step with
55 ./packages/CASCADE-MAKE/<PACKAGE>.sh distclean
56
57
58F. To generate the gnome-lib-minimal-<os>.tar.gz archive file,
59
601. Open a fresh terminal
612. 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
623. source ./devel.bash
63 from the gnome-lib-minimal folder
644. Also from the toplevel (gnome-lib-minimal) folder, run:
65 ./CASCADE-MAKE.sh makeminimal
66This 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.
675. If you haven't already, check out trunk level of gnome-lib and put the tar.gz there:
68 svn co --depth files https://svn.greenstone.org/gs2-extensions/gnome-lib/trunk/
69(--depth files only checks out files at that level, not a recursive checkout of folders and subfolders)
706. svn commit the tar.gz file
71
72This 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,
73when the tar.gz file is extracted, it will extract as a folder called gnome-lib-minimal, as required.
74
75Tested on the Mac MountainLion.
76
77
78G. To generate the gnome-lib-<os>.tar.gz archive file
79
801. Open a fresh exterm
812. Make sure the top level gnome-lib folder is called "gnome-lib"
823. source ./devel.bash
834. toplevel
84 ./CASCADE-MAKE.sh makedist
855. svn commit the tar.gz file
86
Note: See TracBrowser for help on using the repository browser.