wiki:CompilingMapGuide22Ubuntu910

Version 5 (modified by hluo, 14 years ago) ( diff )

--

Build Instruction on Ubuntu 10.04

Note: The compilation steps for Ubuntu 10.04 are incomplete. More work is required.

Build Environment Setup

Ubuntu 10.04 uses GCC 4.4 as its native compiler. MapGuide 2.2 does not compile cleanly against GCC 4.4. Further work will be required to support native GCC 4.4 compilation.

Compilation is more successful if Ubuntu 10.04 is set up to use GCC 4.1.

  1. Grab Tudor Golubenco's atomic.h replacement header and drop it in /usr/include/asm.
  2. install the following packages (list may not be complete):
    • gcc-4.1
    • g++-4.1
    • autoconf
    • automake
    • libtool
    • bison
    • zlibc
      apt-get install gcc-4.1 g++-4.1 autoconf automake automake1.7 libtool bison
      apt-get install zliblg zlib1g-dev zlibc libjpeg62-dev libxml2-dev
      

Export CC, CPP, and CXX to use GCC 4.1:

export CC=gcc-4.1
export CPP='gcc-4.1 -E'
export CXX=g++-4.1

However, there is at least one Oem build script which hardcodes CC, CPP, and CXX. The build will fail here so additional script cleanup will be required.

Note: See TracWiki for help on using the wiki.