【发布时间】:2016-01-15 21:42:25
【问题描述】:
我正在使用 Jamroot/boost-bjam 为 C++ 代码构建 python 绑定:
alias boost_dependencies
: /boost/python//boost_python
/boost/thread//boost_thread
;
# Platform architecture provided as an environment variable
import os ;
local ARCH = [ os.environ ARCH ] ;
# Set up the project-wide requirements that everything uses the
# boost_python library from the project whose global ID is
# /boost/python.
project
: requirements <library>boost_dependencies
<include>../
<include>../../
: requirements
<library-path>../../thirdparty/opencv/lib/
<linkflags>-lm
<linkflags>-lpthread
<linkflags>-lcrypto
<linkflags>-lssl
;
# Declare the three extension modules. You can specify multiple
# source files after the colon separated by spaces.
python-extension test_library : src/Test.cpp
我想链接 opencv 项目 (../../thirdparty/opencv/lib/) 中的共享库,例如 mac 上的 libopencv_core.dylib、libopencv_video.dylib 等。如何在 Jamroot 文件中指定库并安装它们?
【问题讨论】:
标签: python c++ boost shared-libraries bjam