home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Freelog Special Edition 1: Linux
/
CD2.iso
/
SciTech
/
readme_mgl45b2.txt
< prev
next >
Wrap
Text File
|
1999-03-12
|
7KB
|
156 lines
SciTech Multi-platform Graphics Library
Version 4.5
BETA 2
Getting Started Guide
What is this document for?
--------------------------
This text document is intended to help developers get up and running
with the MGL 4.5 beta products, and to show the steps necessary to
compile and link the libraries and sample programs from for your
OS and compiler configuration.
Installing the files
--------------------
To install the files you will need a copy of the source archive, the base
utilities archive for your OS and the font and bitmap resource archive.
Uncompress all files in the archive into the directoy on your system
where you want the files to live (normally c:\scitech or ~/scitech). The
names of the archives you will need are the following:
mgl45b2-src.zip - Source archive in ZIP format
mgl45b2-font.zip - Font and bitmap archive in ZIP format
mgl45b2-dos.zip - DOS hosted base utilities
mgl45b2-os2.zip - OS/2 hostsed base utilities
mgl45b2-src.tar.gz - Source archive in gzip'ed tar format
mgl45b2-font.tar.gz - Font and bitmap archive in gzip'ed tar format
mgl45b2-linux.tar.gz - Linux hosted base utilities
mgl45b2-qnx.tar.gz - QNX hosted base utilities
Makefile utilities configuration
--------------------------------
Once you have installed the files, you need to configure the makefile
utilties and tools to allow you to compile the libraries. If you are
compiling under DOS a Windows DOS box, you will need to set the environment
for your DOS box to at least 2048 bytes as we use a lot of environment
variables.
DOS/Windows hosted tools
------------------------
The first thing you need to do is edit the bin\set-vars.bat batch
file to reference the location where you have installed the files,
and the locations where all your compilers are installed. See the
comments in set-vars.bat for more information.
Once you have the startup file configured, you then need to run the
following each time you start a command shell to enable the SciTech
makefile utilities (a good idea to put into your startup batch files):
call c:\scitech\bin\set-vars.bat
call c:\scitech\bin\wc11-d32.bat
The second batch file sets up the compiler configuration for your
default compiler. The line above sets up for Watcom C++ 11.0 32-bit
DOS compilation. Substitute this for any of the batch files in the
bin directory for the compiler you are using.
OS/2 hosted tools
------------------
The first thing you need to do is edit the bin-os2\set-vars.cmd
script file to reference the location where you have installed the
files, and the locations where all your compilers are installed. See
the comments in set-vars.cmd for more information.
Once you have the startup file configured, you then need to run the
following each time you start a command shell to enable the SciTech
makefile utilities (a good idea to put into your startup batch files):
call c:\scitech\bin-os2\set-vars.cmd
call c:\scitech\bin-os2\wc11-o32.cmd
The second batch file sets up the compiler configuration for your
default compiler. The line above sets up for Watcom C++ 11.0 32-bit
OS/2 compilation. Substitute this for any of the batch files in the
bin directory for the compiler you are using.
Linux hosted tools
------------------
The first thing you need to do is edit the bin\set-vars-linux.sh
script file to reference the location where you have installed the
files, and the locations where all your compilers are installed. See
the comments in set-vars-linux.sh for more information.
Once you have the startup file configured, you then need to run the
following each time you start a command shell to enable the SciTech
makefile utilities (a good idea to put into your startup scripts):
~/scitech/bin/set-vars-linux.sh
~/scitech/bin/gcc-linux.sh
The second script file sets up the compiler configuration for your
default compiler. The line above sets up for GNU C/C++ for Linux
(eventually other compilers will come to Linux, such a MetroWerks).
QNX hosted tools
----------------
The first thing you need to do is edit the bin\set-vars-qnx.sh
script file to reference the location where you have installed the
files, and the locations where all your compilers are installed. See
the comments in set-vars-qnx.sh for more information.
Once you have the startup file configured, you then need to run the
following each time you start a command shell to enable the SciTech
makefile utilities (a good idea to put into your startup scripts):
~/scitech/bin/set-vars-qnx.sh
~/scitech/bin/qnx4.sh
The second script file sets up the compiler configuration for your
default compiler. The line above sets up for Watcom C++ 10.6 for QNX.
NOTE: For QNX development you will need to set the USE_BIOS=1 environment
variable to enable support for calling the BIOS. You will also need
to copy the vbios.lib files from the drivers/qnx directory into your
runtime library directories. The final release will allow you to
build MGL programs without requiring the BIOS support, but for
the moment the BIOS support is required to run under QNX, even
though it is not used if you are running on SciTech Nucleus drivers.
Compiling the libraries
-----------------------
Once you have all the startup scripts configured and executed, you are
ready to begin compiling. Building all the MGL libraries in one fell
swoop is very easy. Simple change into the src directory below where you
have installed all the files and issue a dmake build. Ie:
cd scitech/src
dmake build
Using 'dmake build' will force build all the libraries. If any errors are
encountered during the build, it will stop and you can fix the errors and
then restart the build from the offending library with a simple 'dmake'
(ie: the default target builds for the selected compiler). You can also
build each library from each directory if you wish as well.
Compile the sample programs
---------------------------
Once you have all the libraries built, you can try to compile some of the
sample programs. To build the example programs, go into the
scitech/examples/mgl/samples directory and run dmake to build all the
example programs.
---- END OF README.TXT ----