pombreda / libkml

Automatically exported from code.google.com/p/libkml
Other
0 stars 0 forks source link

Docs should note more prominently that cppunit has to be configured with RTTI disabled #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. scons RUNSWIG=0

What is the expected output? What do you see instead?
a clean build

What version of the product are you using? On what operating system?
libkml svn revision 27
Ubuntu Gutsy, 2.6.22-14 kernel, gcc 4.1.3

Please provide any additional information below.

$ scons RUNSWIG=0 
scons: Reading SConscript files ...
Checking for C library expat... yes
Checking for C header file zlib.h... yes
Checking for C++ library cppunit... yes
SCons OS is posix
scons: done reading SConscript files.
scons: Building targets ...
g++ -o build/kml/dom/abstractlatlonbox_test.o -c -ansi -pedantic -Wall
-Werror -fno-rtti -Wno-non-virtual-dtor -Isrc -I/usr/include -I/usr/include
src/kml/dom/abstractlatlonbox_test.cc
/usr/include/cppunit/extensions/ExceptionTestCaseDecorator.h: In member
function 'void
CppUnit::ExceptionTestCaseDecorator<ExpectedException>::runTest()':
/usr/include/cppunit/extensions/ExceptionTestCaseDecorator.h:84: error:
cannot use typeid with -fno-rtti
src/kml/dom/abstractlatlonbox_test.cc: In static member function 'static
const CppUnit::TestNamer& kmldom::AbstractLatLonBoxTest::getTestNamer__()':
src/kml/dom/abstractlatlonbox_test.cc:32: error: cannot use typeid with
-fno-rtti
scons: *** [build/kml/dom/abstractlatlonbox_test.o] Error 1
scons: building terminated because of errors.

Original issue reported on code.google.com by perry...@gmail.com on 29 Mar 2008 at 7:28

GoogleCodeExporter commented 9 years ago
See http://code.google.com/p/libkml/source/browse/trunk/DEPENDENCIES

cppunit wants to use RTTI by default. you need to configure it accordingly:

On Mac OS X:
./configure --disable-typeinfo-name
This is because libkml explicitly does not use RTTI.

On Linux:
./configure --disable-typeinfo-name LIBS="-ldl"

I guess we should note this more prominently. Thanks!

Original comment by kml.mash...@gmail.com on 29 Mar 2008 at 9:06

GoogleCodeExporter commented 9 years ago

Original comment by kml.mash...@gmail.com on 29 Mar 2008 at 9:13

GoogleCodeExporter commented 9 years ago
Updated the wiki page.

Original comment by kml.mash...@gmail.com on 29 Mar 2008 at 9:18