如何在 QMake 中包含 python.h
how can i include python.h in QMake
INCLUDEPATH = -L/usr/include/python2.7
LIBS +=/usr/local/lib/python2.7
QMAKE_CXXFLAGS +=/usr/local/lib/python2.7
error: cannot find /usr/local/lib/python2.7: File format not recognized
有一个问题。我已经安装了python-all-dev。
必须使用以下格式:
LIBS += -L {path of your library.so} -l{library}
INCLUDEPATH += {path of your headers}
DEPENDPATH += {path of your headers}
在您的情况下:
LIBS += -L /usr/local/lib/python2.7 -lpython2.7
INCLUDEPATH += /usr/include/python2.7
DEPENDPATH += /usr/include/python2.7
相关文章:
- 如何在c++中使用system()来运行包含空格的python脚本
- 我应该包含什么来制作 boost.python 扩展?
- 将包含抽象类和普通类C++包导出到 Python
- 如何强制库(pybind11)包含来自Python3的<Python.h>?
- 在使用PyInstaller冻结Python脚本时包含一个C++可执行文件
- 如何在同时包含C++和Python的项目(多编程语言项目)中使用doxygen
- 在c++中从包含新操作的python中创建的pb图创建图
- 在Qt应用程序中包含Python.h会导致对Qt函数的未定义引用
- Python API用于解析包含数组格式的protobuf数据的二进制文件
- 如何在 QMake 中包含 python.h
- python永远不能调用包含继承逻辑的c++dll或左右文件
- 是否可以将CMAKE SWIG PYTHON AUTO包含在C 标头中
- Python 可以运行脚本的多个实例,每个实例都包含自己的数据吗?
- libclang:添加编译器系统包含路径(Windows中的Python)
- 调用一个 Python 函数,其中包含来自 boost Python 的可变数量的输入参数
- 包含python.h和boost/python.hpp的C++导致SEH异常
- 如何在python中将包含十六进制值的无符号char*数组写入文件
- 将智能指针中包含的对象传递给 Python C++
- 在Qt Creator中包含Python
- 在c++文件CDT中包含Python.h