cdcseacave / openMVS

open Multi-View Stereo reconstruction library
http://cdcseacave.github.io
GNU Affero General Public License v3.0
3.39k stars 912 forks source link

openmvs boolean #213

Closed dxqxiaoqiang closed 7 years ago

dxqxiaoqiang commented 7 years ago

when i install openmvs ,i meet with the following error:

``
[ 40%] Building CXX object libs/IO/CMakeFiles/IO.dir/ImageJPG.cpp.o
In file included from /home/dxq/openMVS-master/libs/IO/../Common/Common.h:176:0,
                 from /home/dxq/openMVS-master/libs/IO/Common.h:18,
                 from /home/dxq/openMVS-master/openMVS_build/libs/IO/cotire/IO_CXX_prefix.cxx:4,
                 from /home/dxq/openMVS-master/openMVS_build/libs/IO/cotire/IO_CXX_prefix.hxx:4:
/home/dxq/openMVS-master/libs/IO/../Common/Types.h:312:18: error: expected identifier before numeric constant
 #define FALSE    0
                  ^
/home/dxq/openMVS-master/libs/IO/../Common/Types.h:312:18: error: expected ‘}’ before numeric constant
/home/dxq/openMVS-master/libs/IO/../Common/Types.h:312:18: error: expected unqualified-id before numeric constant
In file included from /usr/local/include/jpeglib.h:27:0,
                 from /home/dxq/openMVS-master/libs/IO/ImageJPG.cpp:19:
/usr/local/include/jmorecfg.h:263:38: error: ‘boolean’ does not name a type
 typedef enum { FALSE = 0, TRUE = 1 } boolean;
                                      ^~~~~~~
In file included from /home/dxq/openMVS-master/libs/IO/ImageJPG.cpp:19:0:
/usr/local/include/jpeglib.h:103:3: error: ‘boolean’ does not name a type
   boolean sent_table;  /* TRUE when table has been output */
   ^~~~~~~
/usr/local/include/jpeglib.h:119:3: error: ‘boolean’ does not name a type
   boolean sent_table;  /* TRUE when table has been output */
   ^~~~~~~
/usr/local/include/jpeglib.h:169:3: error: ‘boolean’ does not name a type
   boolean component_needed; /* do we need the value of this component? */
   ^~~~~~~
/usr/local/include/jpeglib.h:270:3: error: ‘boolean’ does not name a type
   jpeg_common_fields;  /* Fields common to both master struct types */
   ^
/usr/local/include/jpeglib.h:285:3: error: ‘boolean’ does not name a type
   jpeg_common_fields;  /* Fields shared with jpeg_decompress_struct */
   ^
/usr/local/include/jpeglib.h:350:3: error: ‘boolean’ does not name a type
   boolean raw_data_in;  /* TRUE=caller supplies downsampled data */
   ^~~~~~~
/usr/local/include/jpeglib.h:351:3: error: ‘boolean’ does not name a type
   boolean arith_code;  /* TRUE=arithmetic coding, FALSE=Huffman */
   ^~~~~~~
/usr/local/include/jpeglib.h:352:3: error: ‘boolean’ does not name a type
   boolean optimize_coding; /* TRUE=optimize entropy encoding parms */
   ^~~~~~~
/usr/local/include/jpeglib.h:353:3: error: ‘boolean’ does not name a type
   boolean CCIR601_sampling; /* TRUE=first samples are cosited */
   ^~~~~~~
/usr/local/include/jpeglib.h:354:3: error: ‘boolean’ does not name a type
   boolean do_fancy_downsampling; /* TRUE=apply fancy downsampling */
   ^~~~~~~
/usr/local/include/jpeglib.h:368:3: error: ‘boolean’ does not name a type
   boolean write_JFIF_header; /* should a JFIF marker be written? `*/`
   ^~~~~~~
/usr/local/include/jpeglib.h:378:3: error: ‘boolean’ does not name a type
   boolean write_Adobe_marker; /* should an Adobe marker be written? */
   ^~~~~~~
/usr/local/include/jpeglib.h:397:3: error: ‘boolean’ does not name a type
   boolean progressive_mode; /* TRUE if scan script uses progressive mode */
   ^~~~~~~
/usr/local/include/jpeglib.h:453:3: error: ‘boolean’ does not name a type
   jpeg_common_fields;  /* Fields shared with jpeg_compress_struct */
   ^
/usr/local/include/jpeglib.h:477:3: error: ‘boolean’ does not name a type
   boolean buffered_image; /* TRUE=multiple output passes */
   ^~~~~~~
/usr/local/include/jpeglib.h:478:3: error: ‘boolean’ does not name a type
   boolean raw_data_out;  /* TRUE=downsampled data wanted */

^~~

make[2]: *** [libs/IO/CMakeFiles/IO.dir/ImageJPG.cpp.o] Error 1
CMakeFiles/Makefile2:391: recipe for target 'libs/IO/CMakeFiles/IO.dir/all' failed
make[1]: *** [libs/IO/CMakeFiles/IO.dir/all] Error 2
Makefile129: recipe for target 'all' failed
make: *** [all] Error 2
i know  that there is some wrong about the head file but i do not know how to deal with it  @cdcseacave
cdcseacave commented 7 years ago

I close this issue since the details asked are missing (OS, etc)