Hi,
I am quite a newbie in this Liblas. I would like to compile Liblas and modified
it in order to have a WKT format instead of ASCII.
However, I have several problem while I am building the source code. I am
following this link to compile
http://liblas.org/compilation.html#compilation
I am using Window 7. In adition, I am using Boost 1.46.1 and CMake 2.8
Here are the errors that make the build process failed:
1>LINK : fatal error LNK1104: cannot open file
'libboost_thread-vc100-mt-gd-1_46_1.lib'
2>LINK : fatal error LNK1104: cannot open file
'libboost_thread-vc100-mt-gd-1_46_1.lib'
Surprisingly, I can find the .lib in my boost folder. I have no idea why this
error can come up.
FYI, I only build the las2txt.
Attached is the detail of error logs.
Any help I'll really appreciate much.
Thank you.
1>------ Build started: Project: liblas, Configuration: Debug Win32 ------
1>libboost_program_options-vc100-mt-s-1_46_1.lib(parsers.obj) : error LNK2038:
mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value
'2' in indexcell.obj
1>libboost_program_options-vc100-mt-s-1_46_1.lib(config_file.obj) : error
LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match
value '2' in indexcell.obj
1>libboost_program_options-vc100-mt-s-1_46_1.lib(convert.obj) : error LNK2038:
mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value
'2' in indexcell.obj
1>libboost_program_options-vc100-mt-s-1_46_1.lib(options_description.obj) :
error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't
match value '2' in indexcell.obj
1>libboost_program_options-vc100-mt-s-1_46_1.lib(cmdline.obj) : error LNK2038:
mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value
'2' in indexcell.obj
1>libboost_program_options-vc100-mt-s-1_46_1.lib(utf8_codecvt_facet.obj) :
error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't
match value '2' in indexcell.obj
1>libboost_program_options-vc100-mt-s-1_46_1.lib(value_semantic.obj) : error
LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match
value '2' in indexcell.obj
1>libboost_program_options-vc100-mt-s-1_46_1.lib(positional_options.obj) :
error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't
match value '2' in indexcell.obj
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: __int64 __thiscall
std::ios_base::width(__int64)" (?width@ios_base@std@@QAE_J_J@Z) already defined
in libboost_program_options-vc100-mt-s-1_46_1.lib(options_description.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: virtual __thiscall
std::basic_ios<char,struct std::char_traits<char> >::~basic_ios<char,struct
std::char_traits<char> >(void)"
(??1?$basic_ios@DU?$char_traits@D@std@@@std@@UAE@XZ) already defined in
libboost_program_options-vc100-mt-s-1_46_1.lib(parsers.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: virtual __thiscall
std::basic_ostream<char,struct std::char_traits<char>
>::~basic_ostream<char,struct std::char_traits<char> >(void)"
(??1?$basic_ostream@DU?$char_traits@D@std@@@std@@UAE@XZ) already defined in
libboost_program_options-vc100-mt-s-1_46_1.lib(options_description.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "protected: __thiscall
std::basic_ios<char,struct std::char_traits<char> >::basic_ios<char,struct
std::char_traits<char> >(void)"
(??0?$basic_ios@DU?$char_traits@D@std@@@std@@IAE@XZ) already defined in
libboost_program_options-vc100-mt-s-1_46_1.lib(parsers.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: virtual __thiscall
std::basic_streambuf<char,struct std::char_traits<char>
>::~basic_streambuf<char,struct std::char_traits<char> >(void)"
(??1?$basic_streambuf@DU?$char_traits@D@std@@@std@@UAE@XZ) already defined in
libboost_program_options-vc100-mt-s-1_46_1.lib(parsers.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "protected: char * __thiscall
std::basic_streambuf<char,struct std::char_traits<char> >::gptr(void)const "
(?gptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ) already defined
in libboost_program_options-vc100-mt-s-1_46_1.lib(parsers.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "protected: void __thiscall
std::basic_streambuf<char,struct std::char_traits<char> >::setg(char *,char
*,char *)" (?setg@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXPAD00@Z)
already defined in libboost_program_options-vc100-mt-s-1_46_1.lib(parsers.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "protected: void __thiscall
std::basic_streambuf<char,struct std::char_traits<char> >::setp(char *,char *)"
(?setp@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXPAD0@Z) already
defined in libboost_program_options-vc100-mt-s-1_46_1.lib(parsers.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "protected: char * __thiscall
std::basic_streambuf<char,struct std::char_traits<char> >::eback(void)const "
(?eback@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ) already
defined in libboost_program_options-vc100-mt-s-1_46_1.lib(parsers.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "protected: char * __thiscall
std::basic_streambuf<char,struct std::char_traits<char> >::_Pninc(void)"
(?_Pninc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEPADXZ) already
defined in libboost_program_options-vc100-mt-s-1_46_1.lib(parsers.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "protected: void __thiscall
std::basic_streambuf<char,struct std::char_traits<char> >::setp(char *,char
*,char *)" (?setp@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXPAD00@Z)
already defined in
libboost_program_options-vc100-mt-s-1_46_1.lib(options_description.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "protected: char * __thiscall
std::basic_streambuf<char,struct std::char_traits<char> >::pbase(void)const "
(?pbase@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ) already
defined in
libboost_program_options-vc100-mt-s-1_46_1.lib(options_description.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "protected: char * __thiscall
std::basic_streambuf<char,struct std::char_traits<char> >::epptr(void)const "
(?epptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ) already
defined in libboost_program_options-vc100-mt-s-1_46_1.lib(parsers.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "protected: char * __thiscall
std::basic_streambuf<char,struct std::char_traits<char> >::pptr(void)const "
(?pptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ) already defined
in libboost_program_options-vc100-mt-s-1_46_1.lib(parsers.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "protected: void __thiscall
std::basic_streambuf<char,struct std::char_traits<char> >::gbump(int)"
(?gbump@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXH@Z) already defined
in libboost_program_options-vc100-mt-s-1_46_1.lib(parsers.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "protected: char * __thiscall
std::basic_streambuf<char,struct std::char_traits<char> >::egptr(void)const "
(?egptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ) already
defined in libboost_program_options-vc100-mt-s-1_46_1.lib(parsers.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "protected: void __thiscall
std::basic_streambuf<char,struct std::char_traits<char> >::pbump(int)"
(?pbump@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAEXH@Z) already defined
in libboost_program_options-vc100-mt-s-1_46_1.lib(parsers.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "protected: __thiscall
std::basic_streambuf<char,struct std::char_traits<char>
>::basic_streambuf<char,struct std::char_traits<char> >(void)"
(??0?$basic_streambuf@DU?$char_traits@D@std@@@std@@IAE@XZ) already defined in
libboost_program_options-vc100-mt-s-1_46_1.lib(parsers.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: void __thiscall
std::basic_ios<char,struct std::char_traits<char> >::setstate(int,bool)"
(?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXH_N@Z) already defined
in libboost_program_options-vc100-mt-s-1_46_1.lib(parsers.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: __int64 __thiscall
std::basic_streambuf<char,struct std::char_traits<char> >::sputn(char const
*,__int64)"
(?sputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAE_JPBD_J@Z) already
defined in
libboost_program_options-vc100-mt-s-1_46_1.lib(options_description.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: int __thiscall
std::basic_streambuf<char,struct std::char_traits<char> >::sputc(char)"
(?sputc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHD@Z) already defined
in libboost_program_options-vc100-mt-s-1_46_1.lib(options_description.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: class
std::basic_streambuf<char,struct std::char_traits<char> > * __thiscall
std::basic_ios<char,struct std::char_traits<char> >::rdbuf(void)const "
(?rdbuf@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_streambuf@DU?$char_traits@D@std@@@2@XZ)
already defined in libboost_program_options-vc100-mt-s-1_46_1.lib(parsers.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: char __thiscall
std::basic_ios<char,struct std::char_traits<char> >::fill(void)const "
(?fill@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEDXZ) already defined in
libboost_program_options-vc100-mt-s-1_46_1.lib(options_description.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: int __thiscall
std::ios_base::flags(void)const " (?flags@ios_base@std@@QBEHXZ) already defined
in libboost_program_options-vc100-mt-s-1_46_1.lib(parsers.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: __int64 __thiscall
std::ios_base::width(void)const " (?width@ios_base@std@@QBE_JXZ) already
defined in
libboost_program_options-vc100-mt-s-1_46_1.lib(options_description.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: class
std::basic_ostream<char,struct std::char_traits<char> > & __thiscall
std::basic_ostream<char,struct std::char_traits<char> >::flush(void)"
(?flush@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@XZ) already
defined in libboost_program_options-vc100-mt-s-1_46_1.lib(parsers.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: class
std::basic_ostream<char,struct std::char_traits<char> > * __thiscall
std::basic_ios<char,struct std::char_traits<char> >::tie(void)const "
(?tie@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_ostream@DU?$char_traits@D@std@@@2@XZ)
already defined in libboost_program_options-vc100-mt-s-1_46_1.lib(parsers.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: bool __thiscall
std::ios_base::good(void)const " (?good@ios_base@std@@QBE_NXZ) already defined
in libboost_program_options-vc100-mt-s-1_46_1.lib(parsers.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: void __thiscall
std::basic_ostream<char,struct std::char_traits<char> >::_Osfx(void)"
(?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ) already defined in
libboost_program_options-vc100-mt-s-1_46_1.lib(options_description.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: bool __thiscall
std::ios_base::operator!(void)const " (??7ios_base@std@@QBE_NXZ) already
defined in libboost_program_options-vc100-mt-s-1_46_1.lib(parsers.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: __thiscall
std::ios_base::operator void *(void)const " (??Bios_base@std@@QBEPAXXZ) already
defined in libboost_program_options-vc100-mt-s-1_46_1.lib(parsers.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: bool __thiscall
std::basic_istream<char,struct std::char_traits<char> >::_Ipfx(bool)"
(?_Ipfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QAE_N_N@Z) already defined
in libboost_program_options-vc100-mt-s-1_46_1.lib(parsers.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: virtual __thiscall
std::basic_iostream<char,struct std::char_traits<char>
>::~basic_iostream<char,struct std::char_traits<char> >(void)"
(??1?$basic_iostream@DU?$char_traits@D@std@@@std@@UAE@XZ) already defined in
libboost_program_options-vc100-mt-s-1_46_1.lib(options_description.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: __thiscall
std::basic_iostream<char,struct std::char_traits<char>
>::basic_iostream<char,struct std::char_traits<char> >(class
std::basic_streambuf<char,struct std::char_traits<char> > *)"
(??0?$basic_iostream@DU?$char_traits@D@std@@@std@@QAE@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z)
already defined in
libboost_program_options-vc100-mt-s-1_46_1.lib(options_description.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: int __thiscall
std::basic_streambuf<char,struct std::char_traits<char> >::sbumpc(void)"
(?sbumpc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ) already defined
in libboost_program_options-vc100-mt-s-1_46_1.lib(parsers.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: static unsigned int
__cdecl std::numeric_limits<unsigned int>::max(void)"
(?max@?$numeric_limits@I@std@@SAIXZ) already defined in
libboost_program_options-vc100-mt-s-1_46_1.lib(positional_options.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: bool __thiscall
std::ctype<char>::is(short,char)const " (?is@?$ctype@D@std@@QBE_NFD@Z) already
defined in libboost_program_options-vc100-mt-s-1_46_1.lib(parsers.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: int __thiscall
std::basic_streambuf<char,struct std::char_traits<char> >::snextc(void)"
(?snextc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ) already defined
in libboost_program_options-vc100-mt-s-1_46_1.lib(parsers.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: int __thiscall
std::basic_streambuf<char,struct std::char_traits<char> >::sgetc(void)"
(?sgetc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHXZ) already defined
in libboost_program_options-vc100-mt-s-1_46_1.lib(parsers.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: class std::locale
__thiscall std::ios_base::getloc(void)const "
(?getloc@ios_base@std@@QBE?AVlocale@2@XZ) already defined in
libboost_program_options-vc100-mt-s-1_46_1.lib(parsers.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: class
std::locale::facet * __thiscall std::locale::facet::_Decref(void)"
(?_Decref@facet@locale@std@@QAEPAV123@XZ) already defined in
libboost_program_options-vc100-mt-s-1_46_1.lib(parsers.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: void __thiscall
std::locale::facet::_Incref(void)" (?_Incref@facet@locale@std@@QAEXXZ) already
defined in libboost_program_options-vc100-mt-s-1_46_1.lib(parsers.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: static unsigned int
__cdecl std::ctype<char>::_Getcat(class std::locale::facet const * *,class
std::locale const *)" (?_Getcat@?$ctype@D@std@@SAIPAPBVfacet@locale@2@PBV42@@Z)
already defined in libboost_program_options-vc100-mt-s-1_46_1.lib(parsers.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: __thiscall
std::locale::id::operator unsigned int(void)" (??Bid@locale@std@@QAEIXZ)
already defined in libboost_program_options-vc100-mt-s-1_46_1.lib(parsers.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: bool __thiscall
std::ios_base::fail(void)const " (?fail@ios_base@std@@QBE_NXZ) already defined
in libboost_program_options-vc100-mt-s-1_46_1.lib(parsers.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: virtual __thiscall
std::basic_istream<char,struct std::char_traits<char>
>::~basic_istream<char,struct std::char_traits<char> >(void)"
(??1?$basic_istream@DU?$char_traits@D@std@@@std@@UAE@XZ) already defined in
libboost_program_options-vc100-mt-s-1_46_1.lib(parsers.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: __thiscall
std::basic_istream<char,struct std::char_traits<char>
>::basic_istream<char,struct std::char_traits<char> >(class
std::basic_streambuf<char,struct std::char_traits<char> > *,bool)"
(??0?$basic_istream@DU?$char_traits@D@std@@@std@@QAE@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N@Z)
already defined in libboost_program_options-vc100-mt-s-1_46_1.lib(parsers.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: void __thiscall
std::basic_ios<char,struct std::char_traits<char> >::clear(int,bool)"
(?clear@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXH_N@Z) already defined in
libboost_program_options-vc100-mt-s-1_46_1.lib(parsers.obj)
1>msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: void __thiscall
std::basic_istream<char,struct std::char_traits<char> >::`vbase
destructor'(void)" (??_D?$basic_istream@DU?$char_traits@D@std@@@std@@QAEXXZ)
already defined in libboost_program_options-vc100-mt-s-1_46_1.lib(parsers.obj)
1>LINK : fatal error LNK1104: cannot open file
'libboost_thread-vc100-mt-gd-1_46_1.lib'
2>------ Build started: Project: las2txt, Configuration: Debug Win32 ------
2> las2txt.cpp
2> laskernel.cpp
2> Generating Code...
2>LINK : fatal error LNK1104: cannot open file
'libboost_thread-vc100-mt-gd-1_46_1.lib'
========== Build: 0 succeeded, 2 failed, 1 up-to-date, 0 skipped ==========
_______________________________________________
Liblas-devel mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/liblas-devel