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

Last change on this file since 32936 was 32936, checked in by sjm84, 5 years ago

Some minor adjustments to the instructions

File size: 3.0 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 svn co svn co http://svn.greenstone.org/gs2-extensions/gnome-lib/trunk gnome-lib (**)
8 export CFLAGS="-fPIC $CFLAGS"
9 export CXXFLAGS="-fPIC $CXXFLAGS"
10 source ./devel.bash
11
12** NOTE: if you check 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.
13
14Then follow from step B below onwards.
15
16
17B. To compile up all of gnome-lib:
18 ./CASCADE-MAKE.sh
19
20C. To do a clean compile
21 At the toplevel, rm the <OS> directory completely
22 ./CASCADE-MAKE.sh tarclean
23 ./CASCADE-MAKE.sh
24The second step removes all the extracted packages. While the third step extracts and recompiles them all again.
25If you wish to just remove the intermediate files generated by configure and compile, then replace the 2nd step with
26 ./CASCADE-MAKE.sh distclean
27
28
29D. To compile just a package in gnome-lib:
30 source ./devel.bash
31 ./packages/CASCADE-MAKE/<PACKAGE>.sh
32
33E. To completely clean a single package and compile it up by itself
34 (source ./devel.bash, unless you've already done it)
35 ./packages/CASCADE-MAKE/<PACKAGE>.sh tarclean
36 ./packages/CASCADE-MAKE/<PACKAGE>.sh
37If you wish to just remove the package's intermediate files generated by configure and compile, then replace the 2nd step with
38 ./packages/CASCADE-MAKE/<PACKAGE>.sh distclean
39
40
41F. To generate the gnome-lib-minimal-<os>.tar.gz archive file,
42
431. Open a fresh exterm
442. make sure the gnome-lib folder (or it may be called "src") is renamed to "gnome-lib-minimal" first
453. source ./devel.bash
46 from the gnome-lib-minimal folder
474. Also from the toplevel (gnome-lib-minimal) folder, run:
48 ./CASCADE-MAKE.sh makeminimal
49This 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.
505. Check out trunk level of gnome-lib and put the tar.gz there:
51 svn co --depth files http://svn.greenstone.org/gs2-extensions/gnome-lib/trunk/
52(--depth files only checks out files at that level, not a recursive checkout of folders and subfolders)
536. svn commit the tar.gz file
54
55This 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,
56when the tar.gz file is extracted, it will extract as a folder called gnome-lib-minimal, as required.
57
58Tested on the Mac MountainLion.
59
60
61G. To generate the gnome-lib-<os>.tar.gz archive file
62
631. Open a fresh exterm
642. Make sure the top level gnome-lib folder is called "gnome-lib"
653. source ./devel.bash
664. toplevel
67 ./CASCADE-MAKE.sh makedist
685. svn commit the tar.gz file
69
Note: See TracBrowser for help on using the repository browser.