This is a generic installation for ACDK packages.
ACDK is split in several packages. Each package
can be installed/compiled separately.
Most packages depends on other ACDK packages.
For instance the package acdk_lisp depends
on acdk_core and acdk_text. These packages
must be installed before you try to install and
compile the acdk_lisp package. Please refer to the
package documentation regarding the detailed requirements.
This installation note describes the installation of one ACDK
package named "acdk_package".
Windows NT 4/2000/XP | MS Visual C++ 6 (released) |
Windows NT 4/2000/XP | MS Visual C++ 7 (AKA .NET) (experimental) |
Windows NT 4/2000/XP | BCC 5.5 (experimental) |
Windows NT 4/2000/XP | Boland C++-Builder 5 (experimental) |
Windows NT 4/2000/XP | Boland C++-Builder 6 (experimental) |
Windows NT 4/2000/XP | gcc 2.92 (static linked)(experimental) |
Linux | gcc 2.95.2 (released) |
Sun Solaris | gcc 2.95.2 (released) |
Sun Solaris | Sun Workshop 5.2/3 (experimental) |
FreeBSD 4.0 | gcc 2.95.2 (experimental) |
|
The ACDK packages are provided 2 formats: Unix .tar.gz and
Windows .zip format. The packages contains the same files, but
in the windows .zip packages the sources are encoded in the
windows file format ("\r\n").
cd /usr/local # the parent directory of ACDK
gunzip acdk_package-1.01.tar.gz # uncompress
tar xf acdk_package-1.01.tar # and untar the package
This extract the files into a directory:
/usr/local/acdk-1.01/acdk_package
where:
/usr/local/acdk-1.01
is the ACDKHOME .
You can make link of this directory to
/usr/local/acdk
On Windows platform unzip the ACDK package
in one directory:
d:\artefaktur
This will create
the directory:
d:\artefaktur\acdk-1.01
Whenever you want to configure, compile, install
or run ACDK, following environment variable
are needed:
- ACDKHOME: The home of ACDK, target of
installed header, and other files.
- PATH: Path to search executable. You may
extend this with the ACDK binary path:
export PATH=%PATH%:$ACDKHOME/bin # bash or ksh
- LD_LIBRARY_PATH: Path to search shared libraries.
You have to extend this to the ACDK library path:
export PATH=%PATH%:$ACDKHOME/bin
On Windows you can set these environment variables in the system
configurations.
For the distributed ACDK packages the project files and
makefiles are already generated.
The platform makes does understand normally following commands:
- all: install and compile
- install: copy the header and configuration in ACDKHOME/include
- compile: compile the sources
- clean: removes the .o/.obj files
- test: run test units
global settings for the make process
can ajusted in the file $ACDKHOME/acdk_globals.${target}
(target = linux, etc.)
If this file exists, it will be included from the
project make files.
To compile ACDK you must have installed GCC 2.95.2 (or grater)
compiler on your system.
cd /usr/local/acdk-1.01/acdk_package
make -f acdk_packakge.linux all
On computer with more CPU, add __SMP__ define
in the $ACDKHOME/acdk_globals.linux
To compile ACDK you must have installed GCC 2.95.2 (or grater)
compiler on your system.
cd /usr/local/acdk-1.01/acdk_package
make -f acdk_packakge.sunos-gcc all
You need Visual Studio 6 SP3 or later
to compile the packages on Windows (NT/2000).
cd d:\artefaktur\acdk-1.01\acdk_package
nmake -f acdk_packakge.nmake all
You can also use Visual Studio to open the provided
acdk_package.dsw, for installation (of headers)
you must use the nmake file.
You can use the provided .dsw and .dsp also
with Visual Studio .NET respectivally Visual C++ 7.
Some packages (f.e. acdk_perl, acdk_tcl, acdk_java, acdk_python, etc.)
you need header to include and libraries to link.
For these package you may have to correct the include
and library settings in the make/project files.
Please refer also to the readmes of the packages.
Instead of using the platform 'make' you can
also use acdkmake to build ACDK projects.
You need to download the acdk_tools package compiled
for your platform.
Extract the acdk_tools package in different
directory than acdk packages.
ACDK packages:
d:\projects\acdk\acdk_core\*.*
/d/projects/acdk/acdk_core/*.*
etc.
ACDK tools:
d:\projects\acdk_tools\*.*
/d/projects/acdk_tools/*.*
Set in shell (cmd, bash) the environment
variables ACDK_TOOLS_HOME=/d/projects/acdk_tools
and ACDKHOME=/d/projects/acdk .
extend the PATH with /d/projects/acdk_tools/bin
On unices you may also have to extend the LD_LIBRARY_PATH
with this directory.
In the package directory should be a build.csf file, which
is the make file for acdkmake.
/d/projects/acdk/acdk_core/build.csf.
In this directory just execute acdkmake to compile the project.
ACDK build.csf files normally understands following make commands:
- build
- clean
- install
- compile
- test
Please refer to the ACDK Make documentation for
more information.
|