2001-12-11 09:32:28 -05:00
|
|
|
How to prepare wxGTK distribution
|
|
|
|
=================================
|
2001-12-10 20:11:54 -05:00
|
|
|
|
|
|
|
0. Introduction
|
|
|
|
---------------
|
|
|
|
|
|
|
|
This note explains what should be done, step by step, to prepare the packages
|
2002-09-15 14:17:02 -04:00
|
|
|
for a wxGTK distribution. Note that the same instructions should be used for
|
|
|
|
the other Unix-based ports including wxMotif, wxX11 and wxBase.
|
2001-12-10 20:11:54 -05:00
|
|
|
|
2003-08-25 22:27:43 -04:00
|
|
|
See distrib/msw/makerpm for a script that embodies some of the steps
|
|
|
|
below.
|
|
|
|
|
2001-12-10 20:11:54 -05:00
|
|
|
1. Preparing the sources
|
|
|
|
------------------------
|
|
|
|
|
|
|
|
a) Do a fresh checkout using the command
|
|
|
|
|
2006-08-05 10:58:25 -04:00
|
|
|
cvs -d :pserver:anoncvs@cvs.wxwidgets.org:/packs/cvsroots/wxwidgets co wxGTK
|
2001-12-10 20:11:54 -05:00
|
|
|
|
|
|
|
NB: if you realize later that some needed files were not checked out
|
|
|
|
by this command, please modify CVSROOT/modules to include the missing
|
|
|
|
files so that it works for the next release!
|
|
|
|
|
2008-02-24 09:19:20 -05:00
|
|
|
You also need the samples and demos directories, so change to
|
2004-05-04 04:27:20 -04:00
|
|
|
wxWidgets directory created by the first cvs command and do "cvs up -d"
|
2006-08-05 10:58:25 -04:00
|
|
|
for each of them. Of course, you can also check out everything (use
|
|
|
|
wxWidgets module name instead of wxGTK) if the bandwidth and disk space
|
|
|
|
are not a problem.
|
2001-12-10 20:11:54 -05:00
|
|
|
|
2004-05-04 04:27:20 -04:00
|
|
|
b) Create a build directory under wxWidgets, e.g. I use "gtk-release",
|
2002-09-15 14:17:02 -04:00
|
|
|
"cd" to it and run configure: the options don't really matter, you can use
|
|
|
|
something like
|
|
|
|
|
2006-08-05 10:58:25 -04:00
|
|
|
../configure -C --without-subdirs
|
2002-09-15 14:17:02 -04:00
|
|
|
|
|
|
|
to make it run a bit faster.
|
|
|
|
|
|
|
|
c) Then type "make -j1 dist bzip-dist-only". This should create the
|
|
|
|
following files;
|
2001-12-10 20:11:54 -05:00
|
|
|
|
|
|
|
wxGTK-${version}.tar.bz2
|
|
|
|
wxGTK-demos-${version}.tar.bz2
|
|
|
|
wxGTK-samples-${version}.tar.bz2
|
|
|
|
wxGTK-${version}.tar.gz
|
|
|
|
wxGTK-demos-${version}.tar.gz
|
|
|
|
wxGTK-samples-${version}.tar.gz
|
|
|
|
|
|
|
|
where version is something like 2.3.2.
|
|
|
|
|
|
|
|
Note 1: "-j1" is needed now because make dist target is broken and doesn't
|
|
|
|
allow parallelizing, if your make is aliased to "make -j4" (like
|
2001-12-11 09:32:28 -05:00
|
|
|
mine), it simply won't work.
|
2001-12-10 20:11:54 -05:00
|
|
|
|
2002-09-15 14:17:02 -04:00
|
|
|
Note 2: there are also dist-only and bzip-dist targets, the "-only" suffix
|
2001-12-10 20:11:54 -05:00
|
|
|
means to just create the archive supposing that the files
|
2001-12-11 09:32:28 -05:00
|
|
|
themselves are already under _dist_dir/wxGTK-${version} where
|
|
|
|
"make dist" creates them
|
2001-12-10 20:11:54 -05:00
|
|
|
|
|
|
|
2. Building the RPMs
|
|
|
|
--------------------
|
|
|
|
|
2002-09-15 14:17:02 -04:00
|
|
|
Note that we didn't check if the library actually could be built -- this is
|
2001-12-10 20:11:54 -05:00
|
|
|
because it is done during this step, during the RPM generation. If, for
|
|
|
|
whatever reason, you don't build the RPMs, you must have checked previously
|
2002-09-15 14:17:02 -04:00
|
|
|
that the library could be built -- nothing worse than a release which doesn't
|
2001-12-10 20:11:54 -05:00
|
|
|
even compile!
|
|
|
|
|
|
|
|
The rest of this section applies to a system with RPM installed (Redhat in my
|
|
|
|
case).
|
|
|
|
|
|
|
|
a) Setting up the RPM tree: you should have the RPM tree set up properly
|
|
|
|
before doing anything else. If you are going to build the RPMs as root,
|
|
|
|
you already have one under /usr/src/redhat and can just build there.
|
|
|
|
Otherwise you may do it (without root rights) in any directory RPM_ROOT.
|
|
|
|
RPM_ROOT should have the following subdirectories: BUILD, RPMS, SOURCES,
|
|
|
|
SPECS and SRPMS. RPMS should contain i386, i686 and noarch. You should
|
2002-09-15 14:17:02 -04:00
|
|
|
also create the file ~/.rpmmacros containing at least a line like this:
|
|
|
|
"%_topdir /biton/zeitlin/rpm" (replace the directory with $RPM_ROOT, of
|
|
|
|
course)
|
2001-12-10 20:11:54 -05:00
|
|
|
|
|
|
|
In either case, put the file wxGTK-${version}.tar.bz2 in SOURCES
|
|
|
|
subdirectory and wxGTK.spec in SPECS one (hint: you can just link them from
|
2002-09-15 14:17:02 -04:00
|
|
|
there -- like this you won't forget to update them after redoing "make
|
2001-12-10 20:11:54 -05:00
|
|
|
dist").
|
|
|
|
|
2002-09-15 14:17:02 -04:00
|
|
|
b) Start RPM build by going to RPM_ROOT directory and typing "rpm -ba
|
2002-12-04 09:11:26 -05:00
|
|
|
SPECS/wxGTK.spec". It may be a good idea to append "2>&1 | tee wxGTK.out"
|
2001-12-10 20:11:54 -05:00
|
|
|
(or "|& tee" if you're using the one true shell ;-) as it might be not
|
|
|
|
easy to detect errors in the verbose rpm output if anything goes wrong.
|
|
|
|
|
|
|
|
Then wait (and pray that nothing goes wrong because if anything does
|
|
|
|
you'll have to restart from the very beginning because rpm doesn't allow
|
|
|
|
to short circuit the package generation).
|
|
|
|
|
2006-08-05 10:58:25 -04:00
|
|
|
If everything goes well, this should produce many files in SRPMS and
|
|
|
|
RPMS/i386 subdirectories.
|
2001-12-10 20:11:54 -05:00
|
|
|
|
2003-08-20 05:50:17 -04:00
|
|
|
Use "rpm -ba --with gtk2" to build GTK+2 version of wxGTK and use
|
2006-08-05 10:58:25 -04:00
|
|
|
"rpm -ba --with gtk2 --with unicode" to build GTK+2 Unicode build
|
|
|
|
(these are defaults, you can use --without option to change this).
|
2002-09-15 14:17:02 -04:00
|
|
|
|
|
|
|
Note: you may want to set the environment variable SMP to 3 or 4 on an
|
|
|
|
SMP machine to speed up the build (it uses "make -j$SMP" if the
|
|
|
|
variable is set)
|
|
|
|
|
|
|
|
c) Test the resulting RPMs: install them using "rpm -i" (or "rpm -U) as usual
|
|
|
|
and try to build some samples using makefile.unx ("make -f makefile.unx")
|
|
|
|
so that they use wx-config in the PATH and not from the build tree
|
|
|
|
|
2001-12-11 09:32:28 -05:00
|
|
|
3. Building the DEBs
|
|
|
|
--------------------
|
|
|
|
|
2006-08-05 10:58:25 -04:00
|
|
|
This is explained in more details in debian/README.HowToBuild.txt.
|
|
|
|
|
2001-12-11 09:32:28 -05:00
|
|
|
|
|
|
|
4. Uploading the files
|
2001-12-10 20:11:54 -05:00
|
|
|
----------------------
|
|
|
|
|
2006-08-06 18:46:12 -04:00
|
|
|
All files should be uploaded (via FTP) to several locations.
|
2001-12-10 20:11:54 -05:00
|
|
|
|
|
|
|
a) incoming.sourceforge.net, go to project admin page on sf.net and choose
|
|
|
|
add/edit releases for more details
|
|
|
|
|
2002-07-22 09:37:07 -04:00
|
|
|
b) ftp://biolpc22.york.ac.uk/pub (Julian has the password)
|
2001-12-10 20:11:54 -05:00
|
|
|
|
2001-12-11 09:32:28 -05:00
|
|
|
5. Announcing the release
|
2001-12-10 20:11:54 -05:00
|
|
|
-------------------------
|
|
|
|
|
2006-08-06 18:46:12 -04:00
|
|
|
+ update www.wxwidgets.org
|
|
|
|
|
|
|
|
+ FreshMeat:
|
|
|
|
- http://freshmeat.net/projects/wxwidgets/
|
2001-12-13 18:35:36 -05:00
|
|
|
- hit "new release" at the top
|
|
|
|
- follow the step by step
|
2001-12-11 09:32:28 -05:00
|
|
|
|
2006-08-06 18:46:12 -04:00
|
|
|
+ wx-announce mailing list: mailto:wx-announce@lists.wxwidgets.org
|
2001-12-11 09:32:28 -05:00
|
|
|
|
2006-08-05 11:25:31 -04:00
|
|
|
The standard announcement text is in docs/publicity/announce.txt
|
2001-12-11 14:30:05 -05:00
|
|
|
|
2006-08-06 19:07:06 -04:00
|
|
|
+ GnomeFiles:
|
|
|
|
- http://www.gnomefiles.org/app.php/wxWidgets
|
2006-08-06 19:38:39 -04:00
|
|
|
(only for stable releases, probably need Robert's account)
|
2006-08-06 19:07:06 -04:00
|
|
|
|
2006-08-06 18:46:12 -04:00
|
|
|
+ MacNN:
|
2001-12-13 18:35:36 -05:00
|
|
|
- http://www.macnn.com
|
|
|
|
- Contact or Contribute or something
|
|
|
|
|
2006-08-06 18:46:12 -04:00
|
|
|
+ MacRumors:
|
2001-12-13 18:35:36 -05:00
|
|
|
- http://www.macrumors.com
|
|
|
|
- Contact or Contribute or something
|
|
|
|
|
2006-08-06 18:46:12 -04:00
|
|
|
+ Apple Developers Connection:
|
2001-12-13 18:35:36 -05:00
|
|
|
mailto: adcnews@apple.com
|
2002-09-15 14:17:02 -04:00
|
|
|
|
2006-08-06 18:46:12 -04:00
|
|
|
+ LinuxDevices.com:
|
2001-12-13 18:35:36 -05:00
|
|
|
Interesting for wxUniversal.
|
|
|
|
|
2006-08-06 18:46:12 -04:00
|
|
|
+ The Python mailing list:
|
2001-12-13 18:35:36 -05:00
|
|
|
|