Am Sonntag, 20. Oktober 2013 um 19:39:05, schrieb Kornel Benko 
<[email protected]>
> Today's change(eeb0a99d3379):
> 
> [ 35%] Building CXX object 
> src/tools/CMakeFiles/align_image_stack.dir/align_image_stack.cpp.o
> /usr/src/hugin/hugin_hg/src/tools/align_image_stack.cpp: In function ‘int 
> main(int, char**)’:
> /usr/src/hugin/hugin_hg/src/tools/align_image_stack.cpp:749:18: error: 
> ‘required_argument’ was not declared in this scope
> /usr/src/hugin/hugin_hg/src/tools/align_image_stack.cpp:750:18: error: 
> ‘no_argument’ was not declared in this scope
> /usr/src/hugin/hugin_hg/src/tools/align_image_stack.cpp:752:5: error: 
> elements of array ‘main(int, char**)::option longOptions []’ have incomplete 
> type
> /usr/src/hugin/hugin_hg/src/tools/align_image_stack.cpp:752:5: error: storage 
> size of ‘longOptions’ isn’t known
> /usr/src/hugin/hugin_hg/src/tools/align_image_stack.cpp:754:77: error: 
> ‘getopt_long’ was not declared in this scope
> make[2]: *** 
> [src/tools/CMakeFiles/align_image_stack.dir/align_image_stack.cpp.o] Error 1
> make[1]: *** [src/tools/CMakeFiles/align_image_stack.dir/all] Error 2
> 

This patch helps.

        Kornel
diff -r 362028c7c50f src/tools/align_image_stack.cpp
--- a/src/tools/align_image_stack.cpp	Sun Oct 20 13:27:24 2013 +0200
+++ b/src/tools/align_image_stack.cpp	Sun Oct 20 19:51:23 2013 +0200
@@ -46,9 +46,8 @@
 #include <nona/Stitcher.h>
 #include <algorithms/basic/CalculateOptimalROI.h>
 
-#ifdef WIN32
- #include <getopt.h>
-#else
+#include <getopt.h>
+#ifndef WIN32
  #include <unistd.h>
 #endif
 

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to