[fdo-users] FDO Compile error (libxalan-c)

kernel_panic sudoaptgetinstalld00d3 at gmail.com
Wed Oct 7 19:55:52 EDT 2009


Well, I tried what you suggested about using cmake instead of automake.

I followed instructions from Cmake_readme, but encountered a few
problems regarding to GDAL libraries being linked by OGR, GDAL and WMS
that werent found. I fixed that by editing the cmake files on ogr and
gdal/src/provider/, adding libgdal1.5.0.so to each linked library
section, like this:

target_link_libraries( GRFPProvider
	GRFPOverrides
	ProvidersCommon
	FDO
	libgdal1.5.0.so
)

After that, the cmake command ran with no errors, but when I ran the
make command I get A LOT of this:

CMakeFiles/SHPUnitTest.dir/FdoExpressionFunctionTest.cpp.o:(.data.rel.ro._ZTVN7CppUnit10TestCallerI25FdoExpressionFunctionTestNS_19NoExceptionExpectedEEE[vtable
for CppUnit::TestCaller<FdoExpressionFunctionTest,
CppUnit::NoExceptionExpected>]+0x34): undefined reference to
`CppUnit::Test::checkIsValidIndex(int) const'
CMakeFiles/SHPUnitTest.dir/FdoExpressionFunctionTest.cpp.o:(.data.rel.ro._ZTVN7CppUnit10TestCallerI25FdoExpressionFunctionTestNS_19NoExceptionExpectedEEE[vtable
for CppUnit::TestCaller<FdoExpressionFunctionTest,
CppUnit::NoExceptionExpected>]+0x38): undefined reference to
`CppUnit::TestLeaf::doGetChildTestAt(int) const'
CMakeFiles/SHPUnitTest.dir/FdoExpressionFunctionTest.cpp.o:(.data.rel.ro._ZTIN7CppUnit10TestCallerI25FdoExpressionFunctionTestNS_19NoExceptionExpectedEEE[typeinfo
for CppUnit::TestCaller<FdoExpressionFunctionTest,
CppUnit::NoExceptionExpected>]+0x8): undefined reference to `typeinfo
for CppUnit::TestCase'
../../../../Utilities/TestCommon/libTestCommon.so.3.5.0: undefined
reference to `CppUnit::Test::findTestPath(CppUnit::Test const*,
CppUnit::TestPath&) const'
../../../../Utilities/TestCommon/libTestCommon.so.3.5.0: undefined
reference to `CppUnit::Test::findTestPath(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&,
CppUnit::TestPath&) const'
../../../../Utilities/TestCommon/libTestCommon.so.3.5.0: undefined
reference to `CppUnit::Message::Message(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&,
std::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&)'
../../../../Utilities/TestCommon/libTestCommon.so.3.5.0: undefined
reference to `CppUnit::Asserter::fail(CppUnit::Message const&,
CppUnit::SourceLine const&)'
../../../../Utilities/TestCommon/libTestCommon.so.3.5.0: undefined
reference to `CppUnit::Message::Message(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&,
std::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&, std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&)'
../../../../Utilities/TestCommon/libTestCommon.so.3.5.0: undefined
reference to `CppUnit::Asserter::failIf(bool, CppUnit::Message const&,
CppUnit::SourceLine const&)'
../../../../Utilities/TestCommon/libTestCommon.so.3.5.0: undefined
reference to `CppUnit::Test::resolveTestPath(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&) const'
collect2: ld devolvió el estado de salida 1
make[2]: *** [Providers/SHP/Src/UnitTest/UnitTest] Error 1
make[1]: *** [Providers/SHP/Src/UnitTest/CMakeFiles/SHPUnitTest.dir/all] Error 2
make: *** [all] Error 2


As long as the terminal screen can "remember" :p

Did it happen to you? (both) What do you think the problem may be with SHP? :P

2009/10/6, Traian Stanev <traian.stanev at autodesk.com>:
>
> I meant 3.5, not 3.4. :)
>
> I have compiled successfully on Ubuntu using both automake and CMake, but I
> don't remember all the hacks I had to do to make it work using the automake
> build (it was a while back). The pain you are seeing with Thirdparty is that
> the versions of the components in /Thirparty are old and will not compile
> with newer g++. The CMake build uses the versions of those libraries
> installed by Ubuntu itself (using apt-get), so it does not have to compile
> /Thirparty at all. There is a file in /trunk/ called CMake__README.txt which
> explains how to do it.
>
> Traian
>


More information about the fdo-users mailing list