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

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

Corrected exterm (meant to be x-term) to terminal

File size: 3.2 KB
Line 
1A. To configure and compile wvware in Greenstone2/3, it used to be required to first:
2 source ./devel.bash
3
4Now the above is done automatically when compiling up Greenstone 2 or 3.
5
6However, 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:
7
8 svn co http://svn.greenstone.org/gs2-extensions/gnome-lib/trunk gnome-lib
9 cd gnome-lib/src
10OR**
11 svn co http://svn.greenstone.org/gs2-extensions/gnome-lib/trunk/src gnome-lib
12 cd gnome-lib
13
14Then:
15
16 export CFLAGS="-fPIC $CFLAGS"
17 export CXXFLAGS="-fPIC $CXXFLAGS"
18 source ./devel.bash
19
20** 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.
21
22Then follow from step B below onwards.
23
24
25B. To compile up all of gnome-lib:
26 ./CASCADE-MAKE.sh
27
28C. To do a clean compile
29 At the toplevel, rm the <OS> directory completely
30 ./CASCADE-MAKE.sh tarclean
31 ./CASCADE-MAKE.sh
32The second step removes all the extracted packages. While the third step extracts and recompiles them all again.
33If you wish to just remove the intermediate files generated by configure and compile, then replace the 2nd step with
34 ./CASCADE-MAKE.sh distclean
35
36
37D. To compile just a package in gnome-lib:
38 source ./devel.bash
39 #./packages/CASCADE-MAKE/<PACKAGE>.sh
40 cd packages
41 ./CASCADE-MAKE/<PACKAGE>.sh
42
43E. To completely clean a single package and compile it up by itself
44 (source ./devel.bash, unless you've already done it)
45 ./packages/CASCADE-MAKE/<PACKAGE>.sh tarclean
46 ./packages/CASCADE-MAKE/<PACKAGE>.sh
47If you wish to just remove the package's intermediate files generated by configure and compile, then replace the 2nd step with
48 ./packages/CASCADE-MAKE/<PACKAGE>.sh distclean
49
50
51F. To generate the gnome-lib-minimal-<os>.tar.gz archive file,
52
531. Open a fresh terminal
542. 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
553. source ./devel.bash
56 from the gnome-lib-minimal folder
574. Also from the toplevel (gnome-lib-minimal) folder, run:
58 ./CASCADE-MAKE.sh makeminimal
59This 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.
605. If you haven't already, check out trunk level of gnome-lib and put the tar.gz there:
61 svn co --depth files http://svn.greenstone.org/gs2-extensions/gnome-lib/trunk/
62(--depth files only checks out files at that level, not a recursive checkout of folders and subfolders)
636. svn commit the tar.gz file
64
65This 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,
66when the tar.gz file is extracted, it will extract as a folder called gnome-lib-minimal, as required.
67
68Tested on the Mac MountainLion.
69
70
71G. To generate the gnome-lib-<os>.tar.gz archive file
72
731. Open a fresh exterm
742. Make sure the top level gnome-lib folder is called "gnome-lib"
753. source ./devel.bash
764. toplevel
77 ./CASCADE-MAKE.sh makedist
785. svn commit the tar.gz file
79
Note: See TracBrowser for help on using the repository browser.