cmake
python
find_package(PythonLibs REQUIRED)
include_directories(${PYTHON_INCLUDE_DIRS})
target_link_libraries(nv3DReconstruction ${PYTHON_LIBRARIES})
header.h
include "python2.7/Python.h"
main.cpp
Py_Initialize();
cmake
python
find_package(PythonLibs REQUIRED)
include_directories(${PYTHON_INCLUDE_DIRS})
target_link_libraries(nv3DReconstruction ${PYTHON_LIBRARIES})
header.h
include "python2.7/Python.h"
main.cpp
Py_Initialize();
本文标题:#新的技术# C++调用Python脚本
本文链接:https://www.haomeiwen.com/subject/ihhmsftx.html
网友评论