diff --git a/src/BuildTiles/Parallel/Makefile.am b/src/BuildTiles/Parallel/Makefile.am index 825ae543..28d96884 100644 --- a/src/BuildTiles/Parallel/Makefile.am +++ b/src/BuildTiles/Parallel/Makefile.am @@ -11,6 +11,6 @@ fgfs_tools_client_SOURCES = client.cxx fgfs_tools_client_LDADD = -lsgbucket -lsgmisc INCLUDES += \ - -I$(top_builddir)/src \ - -I$(top_builddir)/src/Lib \ - -I$(top_builddir)/src/Construct + -I$(top_srcdir)/src \ + -I$(top_srcdir)/src/Lib \ + -I$(top_srcdir)/src/Construct diff --git a/src/BuildTiles/Parallel/client.cxx b/src/BuildTiles/Parallel/client.cxx index 76e115fa..8e76ebd8 100644 --- a/src/BuildTiles/Parallel/client.cxx +++ b/src/BuildTiles/Parallel/client.cxx @@ -186,7 +186,7 @@ bool construct_tile( const FGBucket& b, const string& result_file ) { command = command + " --work-dir=" + work_base; command = command + " --output-dir=" + output_base; command = command + " --tile-id=" + b.gen_index_str(); - for (int i = 0; i < load_dirs.size(); i++) { + for (int i = 0; i < (int)load_dirs.size(); i++) { command = command + " " + load_dirs[i]; } command = command + "> " + result_file + " 2>&1"; @@ -237,12 +237,13 @@ usage (const string name) cout << "[ --output-dir=" << endl; cout << " --work-dir=" << endl; cout << " --host=
" << endl; - cout << " --port= ]" << endl; + cout << " --port=" << endl; + cout << " --rude ]" << endl; cout << "" << endl; exit(-1); } -main(int argc, char *argv[]) { +int main(int argc, char *argv[]) { long int tile, last_tile; bool rude = false; bool result; @@ -283,8 +284,11 @@ main(int argc, char *argv[]) { else cout << "Running in polite mode" << endl; for (int i = arg_pos; i < argc; i++) { - load_dirs.push_back(argv[i]); - cout << "Load directory: " << argv[i] << endl; + string dir; + dir = work_base + "/"; + dir += argv[i]; + load_dirs.push_back( dir ); + cout << "Load directory: " << dir << endl; } // get hostname and pid @@ -322,4 +326,6 @@ main(int argc, char *argv[]) { sleep( BUSY_WAIT_TIME ); } } + + return 0; } diff --git a/src/BuildTiles/Parallel/fgfs-launch-clients b/src/BuildTiles/Parallel/fgfs-launch-clients index b649bafe..5a943db8 100755 --- a/src/BuildTiles/Parallel/fgfs-launch-clients +++ b/src/BuildTiles/Parallel/fgfs-launch-clients @@ -100,7 +100,7 @@ for i in $CLIENTS_RUDE; do # KILL_COMMAND="killall $CLIENT" # ssh -n $i "$KILL_COMMAND" - RMT_COMMAND="source ~/.profile; nice $CLIENT $SERVER_HOST $SERVER_PORT $WORK_BASE $OUTPUT_DIR -r" + RMT_COMMAND="source ~/.profile; nice $CLIENT --host=$SERVER_HOST --port=$SERVER_PORT --work-dir=$WORK_BASE --output-dir=$OUTPUT_DIR --rude AirportArea AirportObj GSHHS-Ponds GSHHS-Islands GSHHS-Lakes GSHHS-LandMass USA-Hydro USA-Urban DEM-3 DEM-30" echo "client command:" echo "" echo "$RMT_COMMAND" @@ -127,4 +127,4 @@ for i in $CLIENTS_NICE; do echo "$RMT_COMMAND" echo "" ssh -n $i "$RMT_COMMAND > $LOG_FILE 2>&1 &" -done \ No newline at end of file +done