These two diffs fix two issues: 1. "pragma comment (lib ...)" is specific for MS toolchain, so it should be compiled conditinally, 2. Batch::GetFirstAvailable() returns int, so loop variable i in Batch::RunNextInBatch() should be declared as int in order to avoid signed/unsigned comparison (and warning during compilation).
/J.D. -- A list of frequently asked questions is available at: http://wiki.panotools.org/Hugin_FAQ --- You received this message because you are subscribed to the Google Groups "hugin and other free panoramic software" group. To unsubscribe from this group and stop receiving emails from it, send an email to hugin-ptx+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/hugin-ptx/6db59299-6b07-6160-bd34-2a722e643fd3%40onet.pl. For more options, visit https://groups.google.com/d/optout.
diff -r 2220707c5719 src/hugin1/ptbatcher/Batch.cpp --- a/src/hugin1/ptbatcher/Batch.cpp Wed Feb 28 18:36:07 2018 +0100 +++ b/src/hugin1/ptbatcher/Batch.cpp Sat Mar 03 04:16:51 2018 +0100 @@ -28,8 +28,10 @@ #include <wx/stdpaths.h> #ifdef __WXMSW__ #include <powrprof.h> +#ifdef _MSC_VER #pragma comment(lib, "PowrProf.lib") #endif +#endif BEGIN_EVENT_TABLE(Batch, wxFrame) EVT_END_PROCESS(-1, Batch::OnProcessTerminate) @@ -860,7 +862,7 @@ { bool value; bool repeat = true; - unsigned int i; + int i; while(((i=GetFirstAvailable())!=-1) && repeat) { //execute command line instructions
diff -r 2220707c5719 src/hugin1/ptbatcher/BatchFrame.cpp --- a/src/hugin1/ptbatcher/BatchFrame.cpp Wed Feb 28 18:36:07 2018 +0100 +++ b/src/hugin1/ptbatcher/BatchFrame.cpp Sat Mar 03 04:17:21 2018 +0100 @@ -31,7 +31,9 @@ #include "FailedProjectsDialog.h" #ifdef __WXMSW__ #include <powrprof.h> +#ifdef _MSC_VER #pragma comment(lib, "PowrProf.lib") +#endif #if wxCHECK_VERSION(3,1,0) #include <wx/taskbarbutton.h> #endif