Skip to content

Commit

Permalink
core: Make ASP compliant with Boost 1.50
Browse files Browse the repository at this point in the history
-> Thread depends on System
-> FS only ships version 3 now.
  • Loading branch information
Zack Moratto committed Jul 14, 2012
1 parent 7560bc4 commit fcb2612
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions configure.ac
Expand Up @@ -152,7 +152,7 @@ AX_PKG_BOOST([BOOST_PROGRAM_OPTIONS BOOST_SYSTEM BOOST_FILESYSTEM BOOST_THREAD B
BOOST_REGEX, BOOST_REGEX,
[AX_PKG_BOOST_LIB(REGEX, [-lboost_regex], [boost/regex.hpp], [boost::regex(".*");])], [AX_PKG_BOOST_LIB(REGEX, [-lboost_regex], [boost/regex.hpp], [boost::regex(".*");])],
BOOST_DATETIME, BOOST_DATETIME,
[AX_PKG_BOOST_LIB(DATETIME, [-lboost_date_time], [boost/date_time/gregorian/gregorian_types.hpp])], [AX_PKG_BOOST_LIB(DATETIME, [-lboost_date_time], [boost/date_time/gregorian/gregorian_types.hpp], [], [$PKG_BOOST_SYSTEM_LIBS])],
BOOST_THREAD, BOOST_THREAD,
[AX_PKG_BOOST_LIB(THREAD, [-lboost_thread], [boost/thread/thread.hpp], [boost::mutex();], [$PKG_BOOST_DATETIME_LIBS], [boost/thread/condition.hpp])], [AX_PKG_BOOST_LIB(THREAD, [-lboost_thread], [boost/thread/thread.hpp], [boost::mutex();], [$PKG_BOOST_DATETIME_LIBS], [boost/thread/condition.hpp])],
BOOST_IOSTREAMS, BOOST_IOSTREAMS,
Expand Down Expand Up @@ -451,7 +451,7 @@ AM_CONDITIONAL(MAKE_APP_STEREOGUI, [test "$MAKE_APP_STEREOGUI" = "yes"])
# final processing # final processing
################################################## ##################################################


ASP_CPPFLAGS="-I\${top_srcdir}/src $OTHER_CPPFLAGS -DBOOST_FILESYSTEM_VERSION=2" ASP_CPPFLAGS="-I\${top_srcdir}/src $OTHER_CPPFLAGS"
ASP_LDFLAGS="$OTHER_LDFLAGS" ASP_LDFLAGS="$OTHER_LDFLAGS"


# Do this last, to make sure it's not overridden # Do this last, to make sure it's not overridden
Expand Down
2 changes: 1 addition & 1 deletion src/asp/Core/Common.cc
Expand Up @@ -130,7 +130,7 @@ asp::check_command_line( int argc, char *argv[], BaseOptions& opt,


bool asp::has_cam_extension( std::string const& input ) { bool asp::has_cam_extension( std::string const& input ) {
boost::filesystem::path ipath( input ); boost::filesystem::path ipath( input );
std::string ext = ipath.extension(); std::string ext = ipath.extension().string();
if ( ext == ".cahvor" || ext == ".cahv" || if ( ext == ".cahvor" || ext == ".cahv" ||
ext == ".pin" || ext == ".pinhole" || ext == ".pin" || ext == ".pinhole" ||
ext == ".tsai" || ext == ".cmod" || ext == ".tsai" || ext == ".cmod" ||
Expand Down
2 changes: 1 addition & 1 deletion src/asp/Sessions/StereoSession.h
Expand Up @@ -67,7 +67,7 @@ namespace asp {
std::vector<ip::InterestPoint> matched_ip1, matched_ip2; std::vector<ip::InterestPoint> matched_ip1, matched_ip2;
std::string match_filename = std::string match_filename =
fs::path( input_file1 ).replace_extension("").string() + "__" + fs::path( input_file1 ).replace_extension("").string() + "__" +
fs::path( input_file2 ).stem() + ".match"; fs::path( input_file2 ).stem().string() + ".match";


if ( fs::exists( match_filename ) ) { if ( fs::exists( match_filename ) ) {
// Is there a match file linking these 2 image? // Is there a match file linking these 2 image?
Expand Down
2 changes: 1 addition & 1 deletion src/asp/Tools/disparitydebug.cc
Expand Up @@ -71,7 +71,7 @@ void handle_arguments( int argc, char *argv[], Options& opt ) {
positional, positional_desc, usage ); positional, positional_desc, usage );


if ( opt.output_prefix.empty() ) if ( opt.output_prefix.empty() )
opt.output_prefix = fs::path(opt.input_file_name).stem(); opt.output_prefix = fs::path(opt.input_file_name).stem().string();
} }


template <class PixelT> template <class PixelT>
Expand Down
2 changes: 1 addition & 1 deletion src/asp/Tools/mer2camera.cc
Expand Up @@ -59,7 +59,7 @@ void handle_arguments( int argc, char *argv[], Options& opt ) {
positional, positional_desc, usage ); positional, positional_desc, usage );


if ( opt.output_prefix.empty() ) if ( opt.output_prefix.empty() )
opt.output_prefix = fs::path(opt.img_file).stem(); opt.output_prefix = fs::path(opt.img_file).stem().string();
} }


int main( int argc, char** argv ) { int main( int argc, char** argv ) {
Expand Down
2 changes: 1 addition & 1 deletion src/asp/Tools/orthoproject.cc
Expand Up @@ -192,7 +192,7 @@ int main(int argc, char* argv[]) {
// If the user hasn't specified a stereo session type, we take a // If the user hasn't specified a stereo session type, we take a
// guess here based on the file suffixes. // guess here based on the file suffixes.
if ( opt.stereo_session.empty() ) { if ( opt.stereo_session.empty() ) {
std::string ext = fs::path(opt.camera_model_file).extension(); std::string ext = fs::path(opt.camera_model_file).extension().string();
if ( ext == ".cahvor" || ext == ".cmod" || if ( ext == ".cahvor" || ext == ".cmod" ||
ext == ".cahv" || ext == ".pin" || ext == ".tsai" ) { ext == ".cahv" || ext == ".pin" || ext == ".tsai" ) {
vw_out() << "\t--> Detected pinhole camera files. Executing pinhole stereo pipeline.\n"; vw_out() << "\t--> Detected pinhole camera files. Executing pinhole stereo pipeline.\n";
Expand Down
2 changes: 1 addition & 1 deletion src/asp/Tools/stereo_corr.cc
Expand Up @@ -170,7 +170,7 @@ approximate_search_range( std::string const& left_image,
right_ip_file = fs::path( right_image ).replace_extension("vwip").string(), right_ip_file = fs::path( right_image ).replace_extension("vwip").string(),
match_file = match_file =
fs::path( left_image ).replace_extension("").string() + "__" + fs::path( left_image ).replace_extension("").string() + "__" +
fs::path( right_image ).stem() + ".match"; fs::path( right_image ).stem().string() + ".match";


// Building / Loading Interest point data // Building / Loading Interest point data
if ( fs::exists(match_file) ) { if ( fs::exists(match_file) ) {
Expand Down

0 comments on commit fcb2612

Please sign in to comment.