From 44f0829221f725d9fcee12f2456c899ac5ae4b87 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 9 May 2012 09:09:57 +0200 Subject: Add note on ODB requiring GCC with plugin support --- INSTALL | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/INSTALL b/INSTALL index 9fe12bf..2383e68 100644 --- a/INSTALL +++ b/INSTALL @@ -4,13 +4,34 @@ Prerequisites - GNU g++ >= 4.5.0 http://gcc.gnu.org/ - libcutl http://www.codesynthesis.com/projects/libcutl/ +ODB requires the GCC compiler (g++) to be built with plugin support. +If you are building GCC yourself, you can enable plugin support with +the --enable-plugin configure option. If you are using a pre-packaged +GCC (for example, as part of your distribution), then you can verify +that GCC was built with plugin support by running g++ with the -v +option and then making sure --enable-plugin is present in the output. + +Note also that for pre-packaged GCC, plugin headers are usually +distributed in a separate package, normally called gcc-plugin-dev +or similar. You will need to install this package in order to build +ODB. For Debian/Ubuntu, this package is called gcc-X.Y-plugin-dev, +for example: + +apt-get install gcc-4.7-plugin-dev + +For RedHat/Fedora, this package is called gcc-plugin-devel, for +example: + +yum install gcc-plugin-devel + + Building on UNIX ================ The following build instructions are for the Linux/UNIX/Mac OS X operating systems. -The standard autotools-based build system is used on these platforms. +The standard autotools-based build system is used on these platforms. After unpacking the source code archive, change to the odb package directory (referred to as odb/ from now on) and run the configure script: @@ -55,6 +76,6 @@ make install Building on Windows =================== -Building odb on Windows involves a custom build procedure. Consider +Building odb on Windows involves a custom build procedure. Consider using the pre-compiled binary distribution of odb for Windows or write to odb-users@codesynthesis.com for more information. -- cgit v1.1