This document explains the main steps requited to port Thot Editor to a new platform. This should be quite straightforward as long as the following applies :
The Thot Editor team is porting Thot Editor to the Windows 32 bit API, but this is not finished yet. The current code merge both the Unix/X-Window code and the Windows one.
Here are the steps needed to build Thot Editor for a new platform :
Thot/
Target
Thot/
Target/Makefile
by copying
Thot/makes/Makefile.template and changing the values for
THOTDIR, MACHINE,
LINK_OPTIONS, CFLAGS,
SYSTEM_FLAGS, MOTIFLIBS,
STDLIBS and CC according to the source path,
the Target value and the compilation environment.
make libjpeg
make libpng
Hopefully, this will create libjpeg.a
, libpng.a
and
libz.a
in the Thot/Target directory.
In case of problems, the sources are located in the Thot/libpng
and Thot/libjpeg
directories.
You will probably notice errors and warning, you can safely ignore them as long as the libraries needed are generated.
CC
,
COMPIL_FLAGS, LINK_FLAGS
. Verify all dependencies related to
X-Window and Motif installation path.
From that point, compiling Thot Editor should be identical to compiling on a supported platfom. In case of problems, first check the following files:
Thot/thotlib/include/thot_sys.h
: try to isolate dependencies
with respect to the operating system programming interface.
Thot/thotlib/include/thot_gui.h
: try to isolate dependencies
with respect to the user interface programming interface.
Thot/
Target/config.h
: results
obtained by autoconf on the Target
system.
Of course the general rules for fighting compilation problems and problems running Thot Editor binary should be of interest.
If the porting process is stopped and there is no obvious solutions on how to
solve the problem, send the error to the
thot-developers@opera.inrialpes.fr
mailing-list. We can't
guarantee that the team will be able to help out, but other people on the list
may suggest new solutions on how to solve your problem.
If you succeed to port to a new platform, it would be of general interest to
send to the mailing-list the modifications needed (use patch
-p), as well as the config.h and the Makefile for the corresponding
Target. We cannot guarantee that the patches will be
incorporated in the general sources, but keeping them around may simplify the
task for other users. If the changes are big, do not send them to the list,
but store them in the ftp://opera.inrialpes.fr/incoming/
FTP
site, and send a mail concerning their availability, thanks.