C++ 汇编Liblas

C++ 汇编Liblas,c++,visual-studio-2010,boost,cmake,liblas,C++,Visual Studio 2010,Boost,Cmake,Liblas,我正在尝试安装libLAS库。我正在使用Microsoft Visual Studio 2010、windows 7和Cmake 2.8.10.2。到目前为止,我已经安装了Boost 1.51,并遵循了本教程: 在cmake出现了一些问题之后,我创建了.sln,我现在正试图编译它。特别是,我正在尝试构建项目“liblas”。 我收到37个错误,都是这样的: Error 1 error LNK2001: unresolved external symbol "class boost::s

我正在尝试安装libLAS库。我正在使用Microsoft Visual Studio 2010、windows 7和Cmake 2.8.10.2。到目前为止,我已经安装了Boost 1.51,并遵循了本教程:

在cmake出现了一些问题之后,我创建了.sln,我现在正试图编译它。特别是,我正在尝试构建项目“liblas”。 我收到37个错误,都是这样的:

Error   1   error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" (?generic_category@system@boost@@YAAEBVerror_category@12@XZ)  C:\temp\libLAS\buildout\src\writer.cpp.obj
编辑以添加其他错误:

2>     Creating library C:/temp/libLAS/buildout/bin/Release/liblas.lib and object C:/temp/libLAS/buildout/bin/Release/liblas.exp
2>writer.cpp.obj : error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" (?generic_category@system@boost@@YAAEBVerror_category@12@XZ)
2>header.cpp.obj : error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" (?generic_category@system@boost@@YAAEBVerror_category@12@XZ)
2>reader.cpp.obj : error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" (?generic_category@system@boost@@YAAEBVerror_category@12@XZ)
2>header.cpp.obj : error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" (?generic_category@system@boost@@YAAEBVerror_category@12@XZ)
2>point.cpp.obj : error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" (?generic_category@system@boost@@YAAEBVerror_category@12@XZ)
2>point.cpp.obj : error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" (?generic_category@system@boost@@YAAEBVerror_category@12@XZ)
2>reader.cpp.obj : error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" (?generic_category@system@boost@@YAAEBVerror_category@12@XZ)
2>utility.cpp.obj : error LNK2019: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" (?generic_category@system@boost@@YAAEBVerror_category@12@XZ) referenced in function "public: __cdecl std::basic_ostringstream<char,struct std::char_traits<char>,class std::allocator<char> >::basic_ostringstream<char,struct std::char_traits<char>,class std::allocator<char> >(int)" (??0?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@H@Z)
2>writer.cpp.obj : error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" (?generic_category@system@boost@@YAAEBVerror_category@12@XZ)
2>index.obj : error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" (?generic_category@system@boost@@YAAEBVerror_category@12@XZ)
2>transform.obj : error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" (?generic_category@system@boost@@YAAEBVerror_category@12@XZ)
2>cachedreader.obj : error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" (?generic_category@system@boost@@YAAEBVerror_category@12@XZ)
2>header.cpp.obj : error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" (?generic_category@system@boost@@YAAEBVerror_category@12@XZ)
2>indexoutput.obj : error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" (?generic_category@system@boost@@YAAEBVerror_category@12@XZ)
2>chipper.obj : error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" (?generic_category@system@boost@@YAAEBVerror_category@12@XZ)
2>factory.obj : error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" (?generic_category@system@boost@@YAAEBVerror_category@12@XZ)
2>filter.obj : error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::generic_category(void)" (?generic_category@system@boost@@YAAEBVerror_category@12@XZ)
2>writer.cpp.obj : error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::system_category(void)" (?system_category@system@boost@@YAAEBVerror_category@12@XZ)
2>libboost_thread-vc100-mt-1_51.lib(thread.obj) : error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::system_category(void)" (?system_category@system@boost@@YAAEBVerror_category@12@XZ)
2>header.cpp.obj : error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::system_category(void)" (?system_category@system@boost@@YAAEBVerror_category@12@XZ)
2>reader.cpp.obj : error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::system_category(void)" (?system_category@system@boost@@YAAEBVerror_category@12@XZ)
2>header.cpp.obj : error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::system_category(void)" (?system_category@system@boost@@YAAEBVerror_category@12@XZ)
2>point.cpp.obj : error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::system_category(void)" (?system_category@system@boost@@YAAEBVerror_category@12@XZ)
2>point.cpp.obj : error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::system_category(void)" (?system_category@system@boost@@YAAEBVerror_category@12@XZ)
2>reader.cpp.obj : error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::system_category(void)" (?system_category@system@boost@@YAAEBVerror_category@12@XZ)
2>utility.cpp.obj : error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::system_category(void)" (?system_category@system@boost@@YAAEBVerror_category@12@XZ)
2>writer.cpp.obj : error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::system_category(void)" (?system_category@system@boost@@YAAEBVerror_category@12@XZ)
2>index.obj : error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::system_category(void)" (?system_category@system@boost@@YAAEBVerror_category@12@XZ)
2>transform.obj : error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::system_category(void)" (?system_category@system@boost@@YAAEBVerror_category@12@XZ)
2>cachedreader.obj : error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::system_category(void)" (?system_category@system@boost@@YAAEBVerror_category@12@XZ)
2>header.cpp.obj : error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::system_category(void)" (?system_category@system@boost@@YAAEBVerror_category@12@XZ)
2>indexoutput.obj : error LNK2019: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::system_category(void)" (?system_category@system@boost@@YAAEBVerror_category@12@XZ) referenced in function "void __cdecl boost::system::`dynamic initializer for 'native_ecat''(void)" (??__Enative_ecat@system@boost@@YAXXZ)
2>chipper.obj : error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::system_category(void)" (?system_category@system@boost@@YAAEBVerror_category@12@XZ)
2>factory.obj : error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::system_category(void)" (?system_category@system@boost@@YAAEBVerror_category@12@XZ)
2>filter.obj : error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::system_category(void)" (?system_category@system@boost@@YAAEBVerror_category@12@XZ)
2>libboost_thread-vc100-mt-1_51.lib(thread.obj) : error LNK2019: unresolved external symbol "public: static class boost::chrono::time_point<class boost::chrono::system_clock,class boost::chrono::duration<__int64,class boost::ratio<1,10000000> > > __cdecl boost::chrono::system_clock::now(void)" (?now@system_clock@chrono@boost@@SA?AV?$time_point@Vsystem_clock@chrono@boost@@V?$duration@_JV?$ratio@$00$0JIJGIA@@boost@@@23@@23@XZ) referenced in function "public: bool __cdecl boost::thread::try_join_until(class boost::chrono::time_point<class boost::chrono::system_clock,class boost::chrono::duration<__int64,class boost::ratio<1,1000000000> > > const &)" (?try_join_until@thread@boost@@QEAA_NAEBV?$time_point@Vsystem_clock@chrono@boost@@V?$duration@_JV?$ratio@$00$0DLJKMKAA@@boost@@@23@@chrono@2@@Z)
2>C:\temp\libLAS\buildout\bin\Release\liblas.dll : fatal error LNK1120: 3 unresolved externals
2>
2>Build FAILED.
2>创建库C:/temp/libLAS/buildout/bin/Release/libLAS.lib和对象C:/temp/libLAS/buildout/bin/Release/libLAS.exp
2> writer.cpp.obj:错误LNK2001:未解析的外部符号“类boost::系统::错误\u类别const&\uu cdecl boost::系统::通用\u类别(void)”(?通用_category@system@boost@@YAAEBVerror_category@12@XZ)
2> header.cpp.obj:error LNK2001:未解析的外部符号“class boost::system::error\u category const&\uuu cdecl boost::system::generic\u category(void)”(?generic_category@system@boost@@YAAEBVerror_category@12@XZ)
2> reader.cpp.obj:error LNK2001:未解析的外部符号“class boost::system::error\u category const&\uu cdecl boost::system::generic\u category(void)”(?generic_category@system@boost@@YAAEBVerror_category@12@XZ)
2> header.cpp.obj:error LNK2001:未解析的外部符号“class boost::system::error\u category const&\uuu cdecl boost::system::generic\u category(void)”(?generic_category@system@boost@@YAAEBVerror_category@12@XZ)
2> point.cpp.obj:错误LNK2001:未解析的外部符号“类boost::系统::错误\u类别const&\uuu cdecl boost::系统::通用\u类别(void)”(?通用_category@system@boost@@YAAEBVerror_category@12@XZ)
2> point.cpp.obj:错误LNK2001:未解析的外部符号“类boost::系统::错误\u类别const&\uuu cdecl boost::系统::通用\u类别(void)”(?通用_category@system@boost@@YAAEBVerror_category@12@XZ)
2> reader.cpp.obj:error LNK2001:未解析的外部符号“class boost::system::error\u category const&\uu cdecl boost::system::generic\u category(void)”(?generic_category@system@boost@@YAAEBVerror_category@12@XZ)
2> utility.cpp.obj:错误LNK2019:未解析的外部符号“类boost::系统::错误\u类别const&\uuu cdecl boost::系统::通用\u类别(void)”(?通用_category@system@boost@@YAAEBVerror_category@12@XZ)在函数“public:uu cdecl std::basic_ostringstream::basic_ostringstream(int)”中引用(?0?$basic)_ostringstream@DU?$char_traits@D@性病病毒$allocator@D@2@@std@@QEAA@H@Z)
2> writer.cpp.obj:错误LNK2001:未解析的外部符号“类boost::系统::错误\u类别const&\uu cdecl boost::系统::通用\u类别(void)”(?通用_category@system@boost@@YAAEBVerror_category@12@XZ)
2> index.obj:错误LNK2001:未解析的外部符号“class boost::system::error_category const&uu cdecl boost::system::generic_category(void)”(?generic_category@system@boost@@YAAEBVerror_category@12@XZ)
2> transform.obj:错误LNK2001:未解析的外部符号“class boost::system::error\u category const&\uuuu cdecl boost::system::generic\u category(void)”(?generic_category@system@boost@@YAAEBVerror_category@12@XZ)
2> cachedreader.obj:错误LNK2001:未解析的外部符号“类boost::系统::错误\u类别const&\uu cdecl boost::系统::通用\u类别(void)”(?通用_category@system@boost@@YAAEBVerror_category@12@XZ)
2> header.cpp.obj:error LNK2001:未解析的外部符号“class boost::system::error\u category const&\uuu cdecl boost::system::generic\u category(void)”(?generic_category@system@boost@@YAAEBVerror_category@12@XZ)
2> indexoutput.obj:错误LNK2001:未解析的外部符号“类boost::系统::错误\u类别常量和\uuuuuuCDECL boost::系统::通用\u类别(void)”(?通用_category@system@boost@@YAAEBVerror_category@12@XZ)
2> chipper.obj:错误LNK2001:未解析的外部符号“类boost::系统::错误\u类别const&\uu cdecl boost::系统::通用\u类别(void)”(?通用_category@system@boost@@YAAEBVerror_category@12@XZ)
2> factory.obj:错误LNK2001:未解析的外部符号“class boost::system::error\u category const&\uuuu cdecl boost::system::generic\u category(void)”(?generic_category@system@boost@@YAAEBVerror_category@12@XZ)
2> filter.obj:错误LNK2001:未解析的外部符号“类boost::系统::错误\u类别常量和\uuuuuCDECL boost::系统::通用\u类别(void)”(?通用_category@system@boost@@YAAEBVerror_category@12@XZ)
2> writer.cpp.obj:错误LNK2001:未解析的外部符号“类boost::系统::错误\u类别const和\uu cdecl boost::系统::系统\u类别(void)”(?系统_category@system@boost@@YAAEBVerror_category@12@XZ)
2> libboost_thread-vc100-mt-1_51.lib(thread.obj):错误LNK2001:未解析的外部符号“类boost::系统::错误\u类别const和\uu cdecl boost::系统::系统\u类别(void)”(?系统_category@system@boost@@YAAEBVerror_category@12@XZ)
2> header.cpp.obj:error LNK2001:未解析的外部符号“class boost::system::error\u category const&\uu cdecl boost::system::system\u category(void)”(?系统_category@system@boost@@YAAEBVerror_category@12@XZ)
2> reader.cpp.obj:错误LNK2001:未解析的外部符号“类boost::系统::错误\u类别const和\uu cdecl boost::系统::系统\u类别(void)”(?系统_category@system@boost@@YAAEBVerror_category@12@XZ)
2> header.cpp.obj:error LNK2001:未解析的外部符号“class boost::system::error\u category const&\uu cdecl boost::system::system\u category(void)”(?系统_category@system@boost@@YAAEBVerror_category@12@XZ)
2> point.cpp.obj:错误LNK2001:未解析的外部符号“class boost::system::error_category const&u cdecl boost::system::system_category(void)”(?系统_category@system@boost@@YAAEBVerror_category@12@XZ)
2> point.cpp.obj:错误LNK2001:未解析的外部符号“class boost::system::error_category const&u cdecl boost::system::system_category(void)”(?系统_category@system@boost@@YAAEBVerror_category@12@XZ)
2> reader.cpp.obj:错误LNK2001:未解析的外部符号“class boost::system::error\u category const&\u c
set dest=C:\thirdparty\vs2017\x64
set cmake_command=cmake
set boost_root=C:/thirdparty/vs2017/x64/boost_1_65_0
if NOT [%1]==[] set dest=%~1
if NOT [%2]==[] set cmake_command="%~2"
if NOT [%3]==[] set boost_root=%~3
if [%1]==["--boost-root"] set boost_root=%~2
wget.exe --no-check-certificate https://github.com/libLAS/libLAS-1.6/archive/master.zip -O%cd%\master.zip
7za.exe x %cd%\master.zip -o%dest%
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" amd64
%cmake_command% -DBUILD_STATIC_LIBS=ON -DBOOST_ROOT=%boost_root% -G"Visual Studio 15 2017 Win64" -H%dest%\libLAS-1.6-master -B%dest%\libLAS-1.6-master\build
del %cd%\master.zip
C:
cd %dest%\libLAS-1.6-master\build
%cmake_command% --build . --config Debug --target liblas
%cmake_command% --build . --config Release --target liblas
%cmake_command% --build . --config RelWithDebInfo --target liblas
%cmake_command% --build . --config Debug --target liblas_c
%cmake_command% --build . --config Release --target liblas_c
%cmake_command% --build . --config RelWithDebInfo --target liblas_c