micmacIGN / micmac

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

Compiling MMVII as described can't link ANN_lib nor elise_lib #242

Closed luc-girod closed 8 months ago

luc-girod commented 8 months ago

Hei!

So, I'm getting ready for next week's training session, but the instruction to compile fail me. I have a clean Ubuntu 22.04, with all the dependencies installed (I think). But the CMAKE fails as it's looking for ANN_lib nor elise_lib, and fails...

Any tips? Should I compile the first gen mm3d?

~/git/micmac/MMVII/build$ cmake ..
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Setting build type to 'RelWithDebInfo' as none was specified.
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
-- Qt5 found. Will compile vMMVII
-- Configuring done
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
ANN_lib
    linked by target "MMVII" in directory /home/lucg_wsl/git/micmac/MMVII
elise_lib
    linked by target "MMVII" in directory /home/lucg_wsl/git/micmac/MMVII

-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.
meynardc commented 8 months ago

Hi Luc !

Yes, you have to compile MicMac V1 (mm3d) first. Currently, MMVII is highly dependant on mm3D. Hence the message about ANN_lib and elise_lib not found.

luc-girod commented 8 months ago

image

Ah yeah, I need new glasses :|