micmacIGN / micmac

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

Error at end of MicMac compilation Kubuntu 20.10 #171

Open jfvilleforceix opened 3 years ago

jfvilleforceix commented 3 years ago

I try to compile MicMac on Kubuntu 20.10 with following commands : git clone https://github.com/micmacIGN/micmac.git create build and go in build cmake -DWITH_QT5=1 ..

-- The C compiler identification is GNU 10.2.0
-- The CXX compiler identification is GNU 10.2.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
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so    
-- -----> OpenGL found
-- -----> using Qt 5.14.2
-- -----> Compile with c++11 support
-- -- FLAG:  -std=c++11
-- Found Git: /usr/bin/git (found version "2.27.0")  
-- -- Git executable found
-- Derniere revision git de MicMac : v1.0.beta13-1075-g5de059761
-- Found X11: /usr/include    
-- 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
-- PoissonRecon/SurfaceTrimmer: OpenMP enabled
-- Configuring done
-- Generating done
-- Build files have been written to: /opt/micmac/build

make install -j33 -k

and I get this message at the very end of the compilation :

[100%] Linking CXX executable mm3d
[100%] Linking CXX executable SaisieQT
make[2]: Leaving directory '/opt/micmac/build'
[100%] Built target SaisieQT
/usr/bin/ld: ../libelise.a(cEtapeMecComp.cpp.o): in function `cEtapeMecComp::InterpFloat() const':
cEtapeMecComp.cpp:(.text+0xe95): undefined reference to `cInterpolateurIm2D<float>* InterpoleOfEtape<float, double>(cEtapeMEC const
&, float*, double*)'
collect2: error: ld returned 1 exit status
make[2]: *** [src/CBinaires/CMakeFiles/mm3d.dir/build.make:106: src/CBinaires/mm3d] Error 1
make[2]: Leaving directory '/opt/micmac/build'
make[1]: *** [CMakeFiles/Makefile2:657: src/CBinaires/CMakeFiles/mm3d.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[100%] Linking CXX executable PoissonRecon
make[2]: Leaving directory '/opt/micmac/build'
[100%] Built target PoissonRecon
make[1]: Leaving directory '/opt/micmac/build'
make: *** [Makefile:130: all] Error 2
yjmenezes commented 3 years ago

try it:

sudo apt-get update

sudo apt-get install libxext6


De: JF Villeforceix @.> Enviado: quarta-feira, 14 de abril de 2021 13:58 Para: micmacIGN/micmac @.> Cc: Subscribed @.***> Assunto: [micmacIGN/micmac] Error at end of MicMac compilation Kubuntu 20.10 (#171)

I try to compile MicMac on Kubuntu 20.10 with following commands : git clone https://github.com/micmacIGN/micmac.git create build and go in build cmake -DWITH_QT5=1 ..

-- The C compiler identification is GNU 10.2.0 -- The CXX compiler identification is GNU 10.2.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 -- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so -- -----> OpenGL found -- -----> using Qt 5.14.2 -- -----> Compile with c++11 support -- -- FLAG: -std=c++11 -- Found Git: /usr/bin/git (found version "2.27.0") -- -- Git executable found -- Derniere revision git de MicMac : v1.0.beta13-1075-g5de059761 -- Found X11: /usr/include -- 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 -- PoissonRecon/SurfaceTrimmer: OpenMP enabled -- Configuring done -- Generating done -- Build files have been written to: /opt/micmac/build

make install -j33 -k

and I get this message at the very end of the compilation :

[100%] Linking CXX executable mm3d [100%] Linking CXX executable SaisieQT make[2]: Leaving directory '/opt/micmac/build' [100%] Built target SaisieQT /usr/bin/ld: ../libelise.a(cEtapeMecComp.cpp.o): in function cEtapeMecComp::InterpFloat() const': cEtapeMecComp.cpp:(.text+0xe95): undefined reference tocInterpolateurIm2D InterpoleOfEtape<float, double>(cEtapeMEC const &, float, double*)' collect2: error: ld returned 1 exit status make[2]: [src/CBinaires/CMakeFiles/mm3d.dir/build.make:106: src/CBinaires/mm3d] Error 1 make[2]: Leaving directory '/opt/micmac/build' make[1]: [CMakeFiles/Makefile2:657: src/CBinaires/CMakeFiles/mm3d.dir/all] Error 2 make[1]: Waiting for unfinished jobs.... [100%] Linking CXX executable PoissonRecon make[2]: Leaving directory '/opt/micmac/build' [100%] Built target PoissonRecon make[1]: Leaving directory '/opt/micmac/build' make: [Makefile:130: all] Error 2

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/micmacIGN/micmac/issues/171, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABEN5XJHWWIPROQ62S4RNFTTIW3UBANCNFSM425VYZMA.

Zinc-OS commented 3 years ago

I have the same issue on arch.

jfvilleforceix commented 3 years ago

try it: sudo apt-get update sudo apt-get install libxext6

Done this but not solving my error.

muellerbernd commented 3 years ago

I have the same issue on arch.

Hey I had the same issue but I solved it as described in my gist(https://gist.github.com/muellerbernd/a41fb84f5d529ca8624a504187852376). Hope it helps you too.