wiki:CompilingMapGuide22Centos54

Version 4 (modified by trevorwekel, 14 years ago) ( diff )

--

CentOS 5.4 Compilation Guide

Note: These compilation steps are a work in progress.

Build Machine Setup

CentOS 5.4 uses GCC 4.1 as its native compiler so MapGuide 2.2 does compile cleanly on CentOS 5.4. The following rpms are required (list may not be complete):

yum install libjpeg libjpeg-devel libpng libpng-devel fontconfig-devel freetype-devel
yum install ant xml-commons-apis

If you are also performing an FDO 3.5 build on the same machine, the following packages may also needed:

  • For MySQL Provider 'yum install mysql mysql-devel'
  • For ODBC Provider unixODBC-2.2.14-linux-x86-32.tar.gz is required. /usr/local/lib should also be added to ld.so.conf once the tarball is unpacked.

Download Java SE JDK 6 from Sun and install it. Then export JAVA_HOME from .bash_profile

JAVA_HOME=/usr/java/latest
export JAVA_HOME

Compilation Steps

Grab the source from Subversion

svn co http://svn.osgeo.org/mapguide/trunk/MgDev mgdev

Build the Oem tree

cd mgdev
./build_oem.sh
pushd Oem/fusion
ant prepare
ant compress
popd
pushd Oem/LinuxApt
./build_apt.sh
popd

Build MapGuide

aclocal
libtoolize --force
automake --add-missing --copy
autoconf
./configure --enable-optimized
make
make install
Note: See TracWiki for help on using the wiki.