Skip to content

请教个问题,我不能成功的编译,环境是正常的。 #42

@uer7e67

Description

@uer7e67

我使用了unbuntu,
执行 cmake -S. -Bbuild -DBUILD_EXTERNAL=ON -DCMAKE_BUILD_TYPE=Release -DENABLE_PRECOMPILED_HEADERS=OFF && cmake --build build --target install -j8 这个命令的时候,
`
gmake[2]: *** [CMakeFiles/pybind11-populate.dir/build.make:99: pybind11-populate-prefix/src/pybind11-populate-stamp/pybind11-populate-download] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/pybind11-populate.dir/all] Error 2
gmake: *** [Makefile:91: all] Error 2

CMake Error at /usr/share/cmake-3.22/Modules/FetchContent.cmake:1087 (message):
Build step for pybind11 failed: 2
Call Stack (most recent call first):
/usr/share/cmake-3.22/Modules/FetchContent.cmake:1216:EVAL:2 (__FetchContent_directPopulate)
/usr/share/cmake-3.22/Modules/FetchContent.cmake:1216 (cmake_language)
/usr/share/cmake-3.22/Modules/FetchContent.cmake:1259 (FetchContent_Populate)
cmake/external/pybind11.cmake:17 (FetchContent_MakeAvailable)
CMakeLists.txt:71 (include)`

就卡到这里了。 这是为什么,c++,gcc,cmake,都符合要求

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions