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”命令选项。