-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Building Error #321
Description
Hi,
Not sure if this is the place to post this. Please let me know if I should go somewhere else with this.
I tried to install OSRM on my Ubuntu Lucid VPS. I followed instructions on https://github.com/DennisOSRM/Project-OSRM/wiki/Running-OSRM. I had to add a PPA for boost>=1.44. I used https://launchpad.net/~mapnik/+archive/boost/+packages, which contains boost 1.49. I installed libboost-dev from there including all the additional boost libraries that were needed.
After installing all the dependencies fot OSRM, I ran scons in the source directory. It gave errors (see output below). Any thoughts on how to solve this?
Many thanks for any help.
Best regards,
Martijn Senden.
Output form scons:
scons: Reading SConscript files ... Using default C++ Compiler: g++ Default platform Checking for C++ library pthread... (cached) yes Checking for C header file omp.h... (cached) yes Checking for C++ library bz2... (cached) yes Checking for C++ library osmpbf... (cached) yes Checking for C++ library png... (cached) yes Checking for C++ library zip... (cached) yes Checking for C++ library protobuf... (cached) yes Checking for Protobuffer version >= 2.3.0... (cached) yes Checking for C++ library stxxl... (cached) yes Checking for C++ library xml2... (cached) yes Checking for C++ library z... (cached) yes Checking for Boost version >= 1.44... (cached) yes Checking for C++ library boost_thread... (cached) yes Checking for C++ library boost_regex... (cached) yes Checking for C++ library boost_system... (cached) yes Checking for C++ library boost_filesystem... (cached) yes Checking for C++ header file boost/archive/iterators/base64_from_binary.hpp... (cached) yes Checking for C++ header file boost/archive/iterators/binary_from_base64.hpp... (cached) yes Checking for C++ header file boost/archive/iterators/transform_width.hpp... (cached) yes Checking for C++ header file boost/bind.hpp... (cached) yes Checking for C++ header file boost/circular_buffer.hpp... (cached) yes Checking for C++ header file boost/enable_shared_from_this.hpp... (cached) yes Checking for C++ header file boost/foreach.hpp... (cached) yes Checking for C++ header file boost/lexical_cast.hpp... (cached) yes Checking for C++ header file boost/logic/tribool.hpp... (cached) yes Checking for C++ header file boost/math/tr1.hpp... (cached) yes Checking for C++ header file boost/noncopyable.hpp... (cached) yes Checking for C++ header file boost/property_tree/ptree.hpp... (cached) yes Checking for C++ header file boost/property_tree/ini_parser.hpp... (cached) yes Checking for C++ header file boost/shared_ptr.hpp... (cached) yes Checking for C++ header file boost/thread/mutex.hpp... (cached) yes Checking for C++ header file boost/thread/thread.hpp... (cached) yes Checking for C++ header file boost/thread/condition.hpp... (cached) yes Checking for C++ header file boost/thread/thread.hpp... (cached) yes Checking for C++ header file boost/thread.hpp... (cached) yes Checking for C++ header file boost/tuple/tuple.hpp... (cached) yes Checking for C++ header file boost/unordered_map.hpp... (cached) yes scons: done reading SConscript files. scons: Building targets ... g++ -o Contractor/EdgeBasedGraphFactory.o -c -O3 -DNDEBUG -march=native -fopenmp -I/usr/include -I/usr/include/include -I/usr/include/libxml2 Contractor/EdgeBasedGraphFactory.cpp In file included from /usr/include/c++/4.4/ext/hash_map:60, from /usr/include/include/stxxl/bits/compat_hash_map.h:24, from /usr/include/include/stxxl/bits/common/debug.h:23, from /usr/include/include/stxxl/bits/io/syscall_file.h:17, from /usr/include/include/stxxl/bits/io/io.h:17, from /usr/include/include/stxxl/io:13, from /usr/include/include/stxxl.h:18, from Contractor/EdgeBasedGraphFactory.h:33, from Contractor/EdgeBasedGraphFactory.cpp:29: /usr/include/c++/4.4/backward/backward_warning.h:28:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. In file included from /usr/include/boost/functional/hash/hash.hpp:15, from /usr/include/boost/functional/hash.hpp:6, from /usr/include/boost/unordered/unordered_map.hpp:21, from /usr/include/boost/unordered_map.hpp:16, from Contractor/../DataStructures/ExtractorStructs.h:26, from Contractor/EdgeBasedGraphFactory.h:39, from Contractor/EdgeBasedGraphFactory.cpp:29: /usr/include/boost/functional/hash/detail/hash_float.hpp: In function 'size_t boost::hash_detail::float_hash_value(T) [with T = float]': /usr/include/boost/functional/hash/hash.hpp:329: instantiated from here /usr/include/boost/functional/hash/detail/hash_float.hpp:65: error: call of overloaded 'fpclassify(float&)' is ambiguous /usr/include/c++/4.4/cmath:497: note: candidates are: typename __gnu_cxx::__enable_if<std::__is_arithmetic::__value, int>::__type std::fpclassify(_Tp) [with _Tp = float] /usr/include/boost/math/special_functions/fpclassify.hpp:248: note: int boost::math::fpclassify(T) [with T = float] /usr/include/boost/functional/hash/detail/hash_float.hpp: In function 'size_t boost::hash_detail::float_hash_value(T) [with T = double]': /usr/include/boost/functional/hash/hash.hpp:334: instantiated from here /usr/include/boost/functional/hash/detail/hash_float.hpp:65: error: call of overloaded 'fpclassify(double&)' is ambiguous /usr/include/c++/4.4/cmath:497: note: candidates are: typename __gnu_cxx::__enable_if<std::__is_arithmetic::__value, int>::__type std::fpclassify(_Tp) [with _Tp = double] /usr/include/boost/math/special_functions/fpclassify.hpp:248: note: int boost::math::fpclassify(T) [with T = double] /usr/include/boost/functional/hash/detail/hash_float.hpp: In function 'size_t boost::hash_detail::float_hash_value(T) [with T = long double]': /usr/include/boost/functional/hash/hash.hpp:339: instantiated from here /usr/include/boost/functional/hash/detail/hash_float.hpp:65: error: call of overloaded 'fpclassify(long double&)' is ambiguous /usr/include/c++/4.4/cmath:497: note: candidates are: typename __gnu_cxx::__enable_if<std::__is_arithmetic::__value, int>::__type std::fpclassify(_Tp) [with _Tp = long double] /usr/include/boost/math/special_functions/fpclassify.hpp:248: note: int boost::math::fpclassify(T) [with T = long double] scons: *** [Contractor/EdgeBasedGraphFactory.o] Error 1 scons: building terminated because of errors.