micmacIGN / micmac

Free open-source photogrammetry software tools
http://micmac.ensg.eu
Other
705 stars 151 forks source link

problème installation sous Ubuntu 18.04 #115

Open yopyop25 opened 5 years ago

yopyop25 commented 5 years ago

Bonjour,

J'ai aussi un problème de compilation Voici mes commandes pour l'install

git clone https://github.com/micmacIGN/micmac.git micmac
cd micmac
mkdir build
cd build
cmake ../

-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- -----> Compile with c++11 support
-- -- FLAG:  -std=c++11
-- Found Git: /usr/bin/git (found version "2.17.1") 
-- -- Git executable found
-- Derniere revision git de MicMac : v1.0.beta13-388-ged76c476e
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- PoissonRecon/SurfaceTrimmer: OpenMP enabled
-- Configuring done
-- Generating done
-- Build files have been written to: /home/yopyop/Build/micmac_github/micmac/build

make -j4

Scanning dependencies of target SurfaceTrimmer
[ 19%] Building CXX object CodeExterne/Poisson/CMakeFiles/SurfaceTrimmer.dir/src/SurfaceTrimmer.cpp.o
[ 19%] Building CXX object src/CMakeFiles/elise.dir/bitm/matrix.cpp.o
/home/yopyop/Build/micmac_github/micmac/src/bitm/lpts.cpp: In member function ‘Im2D<Type, Type_Base> Data_Liste_Pts<Type, Type_Base>::image()’:
/home/yopyop/Build/micmac_github/micmac/src/bitm/lpts.cpp:400:10: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
      dup._is_copie = true;
          ^~~~~~~~~
cc1plus: all warnings being treated as errors
src/CMakeFiles/elise.dir/build.make:1550: recipe for target 'src/CMakeFiles/elise.dir/bitm/lpts.cpp.o' failed
make[2]: *** [src/CMakeFiles/elise.dir/bitm/lpts.cpp.o] Error 1
make[2]: *** Attente des tâches non terminées....
[ 19%] Linking CXX executable SurfaceTrimmer
[ 19%] Built target SurfaceTrimmer
CMakeFiles/Makefile2:308: recipe for target 'src/CMakeFiles/elise.dir/all' failed
make[1]: *** [src/CMakeFiles/elise.dir/all] Error 2
make[1]: *** Attente des tâches non terminées....
[ 20%] Linking CXX executable PoissonRecon
[ 20%] Built target PoissonRecon
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

J'ai recommencé dans un autre dossier en rechargeant les sources.

J'ai même pas lancé le make install...

Yohan

erupnik commented 5 years ago

bonjour, cela devrait etre lié au réglage de compilateur qui fait que tous les avertisement sont considerés en tant que erreurs ? : cc1plus: all warnings being treated as errors