Skip to content

cmake could not find mpi #4

@linghu114

Description

@linghu114

Hi,

(I have cmake installed; and I'm using Windows 10)
I run in Git to install Asteroid with ./install.sh, but I modified the generator (otherwise it goes to Visual Studio 2022 somehow), so line 4 is: cmake -G "MinGW Makefiles" ..
Then the results came out with cmake configured, but could not find MPI. The result codes are:

$ ./install.sh
-- The C compiler identification is GNU 8.1.0
-- The CXX compiler identification is GNU 8.1.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/+phylogenetics/CodeBlocks/MinGW/bin/gcc.exe - 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: D:/+phylogenetics/CodeBlocks/MinGW/bin/c++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test CXX_STANDARD_14_SUPPORT
-- Performing Test CXX_STANDARD_14_SUPPORT - Success
-- SSE enabled. To disable it, run cmake with -DENABLE_SSE=false
-- AVX enabled. To disable it, run cmake with -DENABLE_AVX=false
-- AVX2 enabled. To disable it, run cmake with -DENABLE_AVX2=false
-- coraxlib libraries: corax_static
-- Could NOT find MPI_C (missing: MPI_C_LIB_NAMES MPI_C_HEADER_DIR MPI_C_WORKS)
-- Could NOT find MPI_CXX (missing: MPI_CXX_LIB_NAMES MPI_CXX_HEADER_DIR MPI_CXX_WORKS)
-- Could NOT find MPI (missing: MPI_C_FOUND MPI_CXX_FOUND)
-- Configuring done (15.4s)
-- Generating done (0.3s)
-- Build files have been written to: D:/+phylogenetics/Asteroid/build
./install.sh: line 5: make: command not found
Now running unit tests...
PLEASE RUN THIS SCRIPT FROM THE ASTEROID ROOT DIRECTORY
./run_tests.sh: line 3: build/bin/test_stepwise_induced: No such file or directory
./run_tests.sh: line 4: build/bin/test_bitvector: No such file or directory
./run_tests.sh: line 5: build/bin/test_mappings: No such file or directory
./run_tests.sh: line 6: build/bin/test_unrooted_trees: No such file or directory
./run_tests.sh: line 7: build/bin/test_internode_distance: No such file or directory

Could you help to figure out the problem? Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions