=-6ren">
gpt4 book ai didi

c++ - 在Ubuntu 18.04上找不到MPI_C和MPI cmake

转载 作者:行者123 更新时间:2023-12-02 10:29:00 27 4
gpt4 key购买 nike

- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Checking for module 'libusb-1.0>=1.0.17'
-- Found libusb-1.0, version 1.0.21
-- Checking for module 'opencv>=3.0'
-- Found opencv, version 3.2.0
-- Checking for module 'libcaer>=2.0'
-- Found libcaer, version 3.3.7
-- Could NOT find MPI_C (missing: MPI_C_WORKS)
-- Found MPI_CXX: /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so (found version "3.1")
CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find MPI (missing: MPI_C_FOUND) (found version "3.1")
Call Stack (most recent call first):
/usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.10/Modules/FindMPI.cmake:1444 (find_package_handle_standard_args)
CMakeLists.txt:193 (find_package)
尝试一切导出路径完成我在google上发现的所有内容仍然有此烦人的错误。
Reading package lists... Done
Building dependency tree
Reading state information... Done
cmake is already the newest version (3.10.2-1ubuntu2.18.04.1).
哪个命令结果:
endrel@Siraly:~/Developer/BrainHarmonics/build$ which mpicc
/usr/bin/mpicc
endrel@Siraly:~/Developer/BrainHarmonics/build$ which mpicxx
/usr/bin/mpicxx

最佳答案

FindMPI.cmake module:

If the find procedure fails for a variable MPI_<lang>_WORKS, then the settings detected by or passed to the module did not work and even a simple MPI test program failed to compile.


-- Could NOT find MPI_C (missing: MPI_C_WORKS)


找到了您的mpicc,但可能无法正常工作。
也许您的 CMakeLists.txt是错误的,但是您没有提供它的内容,所以很难说。

关于c++ - 在Ubuntu 18.04上找不到MPI_C和MPI cmake,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63087881/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com