| 1 | = Ubuntu 9.1 Compilation Guide = |
| 2 | |
| 3 | '''Note: The compilation steps for Ubuntu 9.1 are incomplete. More work is required.''' |
| 4 | |
| 5 | Ubuntu 9.1 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. |
| 6 | |
| 7 | Compilation is more successful if Ubuntu 9.1 is set up to use GCC 4.1 by grabbing additional packages |
| 8 | {{{ |
| 9 | apt-get install gcc-4.1 g++-4.1 autoconf automake automake1.7 libtool bison |
| 10 | apt-get install zliblg zlib1g-dev zlibc libjpeg62-dev libxml2-dev |
| 11 | }}} |
| 12 | and exporting CC, CPP, and CXX as follows: |
| 13 | {{{ |
| 14 | export CC=gcc-4.1 |
| 15 | export CPP='gcc-4.1 -E' |
| 16 | export CXX=g++-4.1 |
| 17 | }}} |
| 18 | |
| 19 | However, there is at least one Oem build script which hardcodes CC, CPP, and CXX. Additional work is required. |