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

Last change on this file since 32933 was 32933, checked in by ak19, 5 years ago

Explicitly detailing some further instructions on compiling up gnome-lib.

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