[Tile-serving] [osm2pgsql] Compiling on Yosemite (#224)

tetriscode notifications at github.com
Thu Dec 4 03:27:47 UTC 2014


Trying to compile from source on OSX Yosemite. Installed protobuf-c with homebrew. I see this error is also occurring on FreeBSD, but following that suggestion results in far more errors. 

In file included from osmdata.cpp:1:
In file included from ./osmdata.hpp:9:
In file included from ./output.hpp:27:
/usr/local/include/boost/lockfree/queue.hpp:91:5: error: implicit instantiation of undefined template 'boost::STATIC_ASSERTION_FAILURE<false>'
    BOOST_STATIC_ASSERT((boost::has_trivial_assign<T>::value));
    ^
/usr/local/include/boost/static_assert.hpp:169:13: note: expanded from macro 'BOOST_STATIC_ASSERT'
            sizeof(::boost::STATIC_ASSERTION_FAILURE< BOOST_STATIC_ASSERT_BOOL_CAST( __VA_ARGS__ ) >)>\
            ^
osmdata.cpp:354:21: note: in instantiation of template class 'boost::lockfree::queue<std::__1::pair<long long, unsigned long>,
      boost::parameter::void_, boost::parameter::void_, boost::parameter::void_>' requested here
    pending_queue_t queue;
                    ^
/usr/local/include/boost/static_assert.hpp:87:26: note: template is declared here
template <bool x> struct STATIC_ASSERTION_FAILURE;
                         ^
osmdata.cpp:391:28: error: non-const lvalue reference to type 'middle_t::pending_processor' cannot bind to a value of unrelated type
      '<anonymous>::pending_threaded_processor'
        mid->iterate_ways( ptp );
                           ^~~
./middle.hpp:57:50: note: passing argument to parameter 'pf' here
    virtual void iterate_ways(pending_processor& pf) = 0;
                                                 ^
osmdata.cpp:396:33: error: non-const lvalue reference to type 'middle_t::pending_processor' cannot bind to a value of unrelated type
      '<anonymous>::pending_threaded_processor'
        mid->iterate_relations( ptp );
                                ^~~
./middle.hpp:58:55: note: passing argument to parameter 'pf' here
    virtual void iterate_relations(pending_processor& pf) = 0;

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/224
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20141203/920b483c/attachment.html>


More information about the Tile-serving mailing list