Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building Mapnik from source in Ubuntu 16.04 LTS #3653

Open
dhthong92 opened this issue Apr 7, 2017 · 3 comments
Open

Building Mapnik from source in Ubuntu 16.04 LTS #3653

dhthong92 opened this issue Apr 7, 2017 · 3 comments

Comments

@dhthong92
Copy link

dhthong92 commented Apr 7, 2017

As title, I have tried to build the latest release of Mapnik from source in Ubuntu 16.04. I've already updated to gcc5 and used it to recompile boost 1.63 as well. After link mapnik with the new boost, try to build and it still get some errors, here it is:

utils/shapeindex/shapeindex.o: In function `boost::program_options::validation_error::validation_error(boost::program_options::validation_error::kind_t, std::string const&, std::string const&, int)':
shapeindex.cpp:(.text._ZN5boost15program_options16validation_errorC2ENS1_6kind_tERKSsS4_i[_ZN5boost15program_options16validation_errorC5ENS1_6kind_tERKSsS4_i]+0x31): undefined reference to `boost::program_options::validation_error::get_template(boost::program_options::validation_error::kind_t)'
shapeindex.cpp:(.text._ZN5boost15program_options16validation_errorC2ENS1_6kind_tERKSsS4_i[_ZN5boost15program_options16validation_errorC5ENS1_6kind_tERKSsS4_i]+0x49): undefined reference to `boost::program_options::error_with_option_name::error_with_option_name(std::string const&, std::string const&, std::string const&, int)'
utils/shapeindex/shapeindex.o: In function `boost::program_options::typed_value<std::vector<std::string, std::allocator<std::string> >, char>::name() const':
shapeindex.cpp:(.text._ZNK5boost15program_options11typed_valueISt6vectorISsSaISsEEcE4nameEv[_ZNK5boost15program_options11typed_valueISt6vectorISsSaISsEEcE4nameEv]+0x29): undefined reference to `boost::program_options::arg'
utils/shapeindex/shapeindex.o: In function `boost::program_options::typed_value<double, char>::name() const':
shapeindex.cpp:(.text._ZNK5boost15program_options11typed_valueIdcE4nameEv[_ZNK5boost15program_options11typed_valueIdcE4nameEv]+0x29): undefined reference to `boost::program_options::arg'
utils/shapeindex/shapeindex.o: In function `boost::program_options::typed_value<unsigned int, char>::name() const':
shapeindex.cpp:(.text._ZNK5boost15program_options11typed_valueIjcE4nameEv[_ZNK5boost15program_options11typed_valueIjcE4nameEv]+0x29): undefined reference to `boost::program_options::arg'
utils/shapeindex/shapeindex.o: In function `boost::program_options::basic_command_line_parser<char>::basic_command_line_parser(int, char const* const*)':
shapeindex.cpp:(.text._ZN5boost15program_options25basic_command_line_parserIcEC2EiPKPKc[_ZN5boost15program_options25basic_command_line_parserIcEC5EiPKPKc]+0x170): undefined reference to `boost::program_options::to_internal(std::string const&)'
shapeindex.cpp:(.text._ZN5boost15program_options25basic_command_line_parserIcEC2EiPKPKc[_ZN5boost15program_options25basic_command_line_parserIcEC5EiPKPKc]+0x294): undefined reference to `boost::program_options::detail::cmdline::cmdline(std::vector<std::string, std::allocator<std::string> > const&)'
shapeindex.cpp:(.text._ZN5boost15program_options25basic_command_line_parserIcEC2EiPKPKc[_ZN5boost15program_options25basic_command_line_parserIcEC5EiPKPKc]+0x338): undefined reference to `boost::program_options::to_internal(std::string const&)'
utils/shapeindex/shapeindex.o: In function `main':
shapeindex.cpp:(.text.startup+0x8a): undefined reference to `boost::program_options::options_description::options_description(std::string const&, unsigned int, unsigned int)'
shapeindex.cpp:(.text.startup+0x645): undefined reference to `boost::program_options::abstract_variables_map::operator[](std::string const&) const'
shapeindex.cpp:(.text.startup+0x748): undefined reference to `boost::program_options::abstract_variables_map::operator[](std::string const&) const'
shapeindex.cpp:(.text.startup+0x862): undefined reference to `boost::program_options::abstract_variables_map::operator[](std::string const&) const'

I know the issue of std::basic_string with c11 and already add the flag D_GLIBCXX_USE_CXX11_ABI=0 when compiling mapnik but nothing changed.

Any idea?

@lightmare
Copy link
Contributor

lightmare commented Apr 7, 2017

What does ldd utils/shapeindex/shapeindex show?
Try without and with LD_LIBRARY_PATH="/path/to/boost/lib:$LD_LIBRARY_PATH"

@dhthong92
Copy link
Author

I've already tried but still got the same errors :(

@sanastasiou
Copy link

sanastasiou commented Oct 8, 2017

Same issue on Ubuntu 16.04, boost = 1.58

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants