1.软件包下载网址:http://roipac.org/cgi-bin/moin.cgi/ContribSoftware
2.boost1.58库的编译:http://www.cnblogs.com/loadofleaf/p/5668109.html
$tar xf boost_1_58_0.tar.gz
$cd boost_1_58_0/
$./bootstrap.sh
$./b2
$sudo ./b2 install
3.修改tsx/src/Header.cpp,注释掉60,61行,与96,97行如下代码.
std::string formatCheck("CSAR");
if (formatCheck.compare(format) != 0) {throw std::runtime_error(std::string("Not a valid COSAR file"));}
sar-0.6编译:
$cd /home/lu/StaMPS/sar-0.6
$./configure CC="gcc -std=c++0x" CXX="g++ -std=c++11" --with-boost=/usr/local CPPFLAGS='-I/usr/include' LDFLAGS='-L/usr/lib'
$make
$sudo make install
注:必须指定boost 、 hdf5、 tiff的库路径,且源码中用到了C++11的特性,需要加上CC=”gcc -std=c++0x” CXX=”g++ -std=c++11”命令选项。
本文提供了一步一步的指导,帮助读者完成Boost 1.58库的编译安装,并详细说明了如何配置及编译sar-0.6软件包。特别强调了对于C++11特性的支持以及必要库路径的指定。
2965

被折叠的 条评论
为什么被折叠?



