cdcseacave / openMVS

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

Error while building #622

Open gladguy opened 3 years ago

gladguy commented 3 years ago

/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 ?

kevinsmia1939 commented 3 years ago

Need more info, show the full build log.

gladguy commented 3 years ago

Thanks Kevin I managed that issue

SBCV commented 3 years ago

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