pangolin
pangolin copied to clipboard
cmake .. make a error
why does it lack of a package configuration file named pybind11Config.cmake or pybind11-config.cmake when I run "cmake .. ". the github introduction doesn't have a demostration on this.
`(visualize3D) E:\3D可视化\pangolin\build>cmake .. -- Selecting Windows SDK version to target Windows 10.0.14393. -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) CMake Warning (dev) in CMakeModules/FindMediaFoundation.cmake: A logical block opening on the line
E:/3D可视化/pangolin/CMakeModules/FindMediaFoundation.cmake:13 (IF)
closes on the line
E:/3D可视化/pangolin/CMakeModules/FindMediaFoundation.cmake:15 (ENDIF)
with mis-matching arguments. Call Stack (most recent call first): src/CMakeLists.txt:427 (find_package) This warning is for project developers. Use -Wno-dev to suppress it.
-- MediaFoundation Found and Enabled -- libpng Found and Enabled -- libjpeg Found and Enabled -- libtiff Found and Enabled -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) CMake Warning at python/CMakeLists.txt:3 (find_package): By not providing "Findpybind11.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "pybind11", but CMake did not find one.
Could not find a package configuration file provided by "pybind11" with any of the following names:
pybind11Config.cmake
pybind11-config.cmake
Add the installation prefix of "pybind11" to CMAKE_PREFIX_PATH or set "pybind11_DIR" to a directory containing one of the above files. If "pybind11" provides a separate development package or SDK, be sure it has been installed.
CMake Error at external/pybind11/tools/FindPythonLibsNew.cmake:122 (message): Python config failure: Python is 64-bit, chosen compiler is 32-bit Call Stack (most recent call first): external/pybind11/tools/pybind11Tools.cmake:16 (find_package) python/CMakeLists.txt:9 (include)
-- Configuring incomplete, errors occurred! See also "E:/3D可视化/pangolin/build/CMakeFiles/CMakeOutput.log". See also "E:/3D可视化/pangolin/build/CMakeFiles/CMakeError.log".`
I have a similar issue
I finally worked around this. I installed pybind11 in base anaconda and added the path in pangolin/python/CMakeLists.txt
I use pip install pybind11
and add the line
list(APPEND CMAKE_PREFIX_PATH "C:/Users/{your_user_name_here}/AppData/Local/Programs/Python/Python39/Lib/site-packages/pybind11/share/cmake/")
in pangolin/python/CMakeLists.txt before the line find_package(pybind11)
After that, I get some errors:
if given arguments: “14“ “IN_LIST“ “supported_standards“ Unknown arguments specified
My solution is to change cmake_minimum_required( VERSION 2.6 )
to the CMAKE version you installed.
Hope this one can help.