openMVS icon indicating copy to clipboard operation
openMVS copied to clipboard

Error while building

Open gladguy opened this issue 3 years ago • 3 comments

/home/waheed/dent3d/openMVS/libs/Common/Types.h: In member function ‘int SEACAVE::Float::Floor2Int() const’: /home/waheed/dent3d/openMVS/libs/Common/Types.h:1173:94: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] inline int Floor2Int() const { const double d((double)v.f + FLOOR_FIX); return ((int)&d) >> 16; } ^ /home/waheed/dent3d/openMVS/libs/Common/Types.h: In member function ‘int SEACAVE::Float::Ceil2Int() const’: /home/waheed/dent3d/openMVS/libs/Common/Types.h:1176:99: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] inline int Ceil2Int() const { const double d((double)v.f + 1.0 + FLOOR_FIX); return ((int)&d) >> 16; } ^ CMake Error at /home/waheed/dent3d/openMVS/build/Cotire.cmake:1826 (message): cotire: error 1 precompiling /home/waheed/dent3d/openMVS_build/libs/Common/cotire/Common_CXX_prefix.hxx. Call Stack (most recent call first): /home/waheed/dent3d/openMVS/build/Cotire.cmake:3421 (cotire_precompile_prefix_header)

Error while building

cmake . ../openMVS -DCMAKE_BUILD_TYPE=Release -DVCG_DIR="../vcglib" make -j2 && sudo make install

libs/Common/CMakeFiles/Common.dir/build.make:62: recipe for target 'libs/Common/cotire/Common_CXX_prefix.hxx.gch' failed make[2]: *** [libs/Common/cotire/Common_CXX_prefix.hxx.gch] Error 1 CMakeFiles/Makefile2:179: recipe for target 'libs/Common/CMakeFiles/Common.dir/all' failed make[1]: *** [libs/Common/CMakeFiles/Common.dir/all] Error 2 Makefile:129: recipe for target 'all' failed make: *** [all] Error 2

Can you please give some idea ?

gladguy avatar Oct 18 '20 19:10 gladguy

Need more info, show the full build log.

kevinsmia1939 avatar Oct 30 '20 03:10 kevinsmia1939

Thanks Kevin I managed that issue

gladguy avatar Nov 09 '20 02:11 gladguy

Usually it is a good (and common) practice to describe your solution here as a reference for others - and potentially for the gladguy from the future who forgot how the solution looked like ;) In any cases, if the problem has been solved, please close the issue

SBCV avatar Nov 19 '20 20:11 SBCV