KIN DB 2004 Project - KinGUI Installation Hints for Win32 target |
Project hosted at: |
These are simple instructions to install the KinGUI application on a Win32 target.
This is not intended as a comprehensive manual, but as
a "quick guide" with basic common procedures and ideas.
Note on updating sources: issue a make clean from src
directory before trying to compile after a sources update to avoid messing up code
and have a troubleless build.
Please read INSTALL file present at distribution
(package or
SVN download) for complete instructions. This is a (probably successful)
quick guide:
KinGUI installation is already done.tar zxvf kingui-dev-0.5-alpha.tgz
(use real package file name). If your tar version can't pipe through gzip, first
gunzip kingui-dev-0.5-alpha.tgz
then
tar xvf kingui-dev-0.5-alpha.tar
You also will need some third party libraries:
It is important to install Win32 version of headers and library files, and to
do it into given paths, as the (maybe) existing version on you machine is for Linux
(if you're cross compiling) and will break compilation.
Same rules apply for SDL_image
and SDL_ttf libraries.
cd kingui-dev
from where you SVN'd (for the first time) or untar'ed.
Be sure to change Win32 value to 1 (native) or 2
(cross complilation).
Other variables have defaults that are ok for most people, so first, try it with
no further modifications.
Go to src
cd src
directory. Here type
make
and wait. For the first time, some files may be created (like config.h), then
compilation starts. If lots of errors arise with the first build line (guilib) or when
linking application (kingui one), probably you don't have an usable SDL library or
headers. It is expected in a place like /usr/local/xmingw/i686-pc-mingw32/include/SDL,
required parts are main one (SDL.h), image loading library (SDL_image.h) and TrueType
font manager (SDL_ttf.h).
You will need the dinamic libSDL (DLL) when executing KinGUI application.
If all goes right, make will end with no errors.
make link
to get the Win32
executable. To have a smooth start, you should also copy your preferred font
into the kingui/font directory.
When cross compiling, you should create every single file required to work manually
on the target machine, but as this is quite hard, it is preferred that you create a
/usr/local/kingui directory and make install with a Linux target first,
so you get that tree populated; then copy everything into the Win32 target machine,
and install win32 binary over it (c:\kingui\bin is also a good place to copy all the
required third party DLLs).
c:\kingui\bin\kingui1.exe
If you found some trouble trying to compile KinGUI, please refer first to the README file
that comes with your distribution or better, from SVN. If anything fails, please
provide me some information as what you did and some piece of the result on your
console, or at least, the message you get, posting at project's
bugtrack
(thank you).
These are some commonly implemented make options for this project:
make
This simply checks and builds dependancies, and object files ("compiles")
make link
Links object files to build an executable or library (where applicable)
make install
Installs linked executables or libraries. First links them if no object files are available.
make clean
Deletes all the compilation results (dependancies, object files, and executables/libraries)
make installdirs
Creates the installation dirs (if not already created and have enough privileges)
Return to home page |