ztsec / xtp_api_python

253 stars 113 forks source link

在 python3.7 下的编译问题 #1

Open Rick1125 opened 5 years ago

Rick1125 commented 5 years ago

source 目录下执行bash build.sh,运行提示错误: CMake Error at /usr/local/Cellar/cmake/3.15.0/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:137 (message): Could NOT find Boost (missing: python3) (found suitable version "1.70.0", minimum required is "1.66.0")

经查boost 文档,find_package 需要指定 python 版本的前缀,即python3 => python37

此处需要在 CMakeLists.txt 中修改python3为python37,但如何兼容python3.x,没有想好具体方案。