[Liblas-devel] liblas fails to compile
Howard Butler
hobu.inc at gmail.com
Mon Aug 23 16:33:14 EDT 2010
On Aug 23, 2010, at 1:53 PM, Tommy Stehle wrote:
> I re-pulled everything again and the errors from the index files are gone. It seems to have trouble linking the las2las program...The compile results are attached...
> MakeFiles/las2las2.dir/las2las2.cpp.o: In function `main':
> las2las2.cpp:(.text+0x101b): undefined reference to `boost::program_options::options_description::options_description(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)'
> las2las2.cpp:(.text+0x12c1): undefined reference to `boost::program_options::options_description::options_description(unsigned int, unsigned int)'
> CMakeFiles/las2las2.dir/las2las2.cpp.o: In function `std::basic_string<char, std::char_traits<char>, std::allocator<char> > const& boost::program_options::validators::get_single_string<char>(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, bool)':
> las2las2.cpp:(.text._ZN5boost15program_options10validators17get_single_stringIcEERKSbIT_St11char_traitsIS3_ESaIS3_EERKSt6vectorIS7_SaIS7_EEb[std::basic_string<char, std::char_traits<char>, std::allocator<char> > const& boost::program_options::validators::get_single_string<char>(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, bool)]+0x131): undefined reference to `boost::program_options::validation_error::validation_error(boost::program_options::validation_error::kind_t, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
> las2las2.cpp:(.text._ZN5boost15program_options10validators17get_single_stringIcEERKSbIT_St11char_traitsIS3_ESaIS3_EERKSt6vectorIS7_SaIS7_EEb[std::basic_string<char, std::char_traits<char>, std::allocator<char> > const& boost::program_options::validators::get_single_string<char>(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, bool)]+0x266): undefined reference to `boost::program_options::validation_error::validation_error(boost::program_options::validation_error::kind_t, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
> CMakeFiles/las2las2.dir/laskernel.cpp.o: In function `GetFilteringOptions()':
> laskernel.cpp:(.text+0x10a3): undefined reference to `boost::program_options::options_description::options_description(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)'
> CMakeFiles/las2las2.dir/laskernel.cpp.o: In function `GetTransformationOptions()':
> laskernel.cpp:(.text+0x148c): undefined reference to `boost::program_options::options_description::options_description(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)'
> collect2: ld returned 1 exit status
> make[2]: *** [bin/las2las2] Error 1
> make[1]: *** [apps/CMakeFiles/las2las2.dir/all] Error 2
> make: *** [all] Error 2
>
Hmm. Can you run 'make VERBOSE=1" and extract the line that does the las2las link? It seems like the boost libs aren't getting included (las2las2 needs these).
Howard
More information about the Liblas-devel
mailing list