上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 23 下一页
摘要: For Python2 sudo pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ --upgrade pip For Python3 sudo pip3 install -i https://pypi.tuna.tsinghua.ed 阅读全文
posted @ 2018-08-09 10:34 Anonymous596 阅读(161) 评论(0) 推荐(0)
摘要: 我一般很少用到。 Talk is cheap, show you the code. Output is, 完。 阅读全文
posted @ 2018-06-25 15:44 Anonymous596 阅读(196) 评论(0) 推荐(0)
摘要: WxWidgets Compared To Other Toolkits Some general notes: wxWidgets not only works for C++, but also has bindings for python, perl, php, java, lua, lis 阅读全文
posted @ 2018-06-20 16:06 Anonymous596 阅读(865) 评论(0) 推荐(0)
摘要: SCons Pros: Based on a full-fledged programming language, Python. This means you can make the build system do pretty much anything you can figure out 阅读全文
posted @ 2018-05-12 16:29 Anonymous596 阅读(382) 评论(0) 推荐(0)
摘要: 问题: 安装编译完 Boost 后,如果不设置 BOOST_ROOT 和 BOOST_BUILD_PATH 则可能导致使用 bjam 时定位到 Boost 默认的路径 /usr/share/boost-build,而如果此目录下已有系统默认的 Boost 相关安装文件,就会导致 Boost 当前版本 阅读全文
posted @ 2018-05-05 12:33 Anonymous596 阅读(3363) 评论(0) 推荐(0)
摘要: 问题: Ubuntu 14.04,gcc 4.8.4,以默认方式编译 boost 1.67 后,使用 Boost.Python 时,gcc 提示找不到 boost python 链接库。 方案: 查看默认的编译库路径 /usr/local/lib/,发现其下已经有动态链接文件 libboost_py 阅读全文
posted @ 2018-05-03 21:07 Anonymous596 阅读(7693) 评论(0) 推荐(0)
摘要: ldconfig: configure dynamic linker run-time binds. 比如,我编译完 boost 后(boost 的有些库需要编译后生成动态或静态库使用,例如 Python,Regex 等,详见 Boost 说明文档),需要将编译库路径,比如 /usr/local/l 阅读全文
posted @ 2018-05-02 16:27 Anonymous596 阅读(7197) 评论(0) 推荐(1)
摘要: CMake 允许开发者编写平台无关的 CMakeLists.txt 文件来定制整个编译流程,然后再根据目标用户的平台进一步生成所需的本地化 Makefile 和工程文件,如 Linux 的Makefile 或 Windows 的 Visual Studio 工程。从而做到 Write once, r 阅读全文
posted @ 2018-03-16 21:06 Anonymous596 阅读(667) 评论(0) 推荐(0)
摘要: 用 C/C++ 扩展 Python。 - 如果仅使用标准 C 库函数,则可以使用 Python 自带的 ctypes 模块,或者使用 cffi。 - 如果要使用自定义 C/C++ 函数,又不怕写 wrapper 麻烦,则可以使用 Python C API。 - 如果专门针对 C++ 模块打包,可以尝 阅读全文
posted @ 2018-03-15 21:08 Anonymous596 阅读(377) 评论(0) 推荐(0)
摘要: Python 编写完扩展包并 build 好后,可以采用 $ sudo ./setup.py install 安装。采用这种方式安装的扩展包,可以使用 pip list 查看到,但不能直接使用 pip uninstall 卸载,pip 会明确提示这种安装包卸载不干净。 一个迂回的方法是: 1) 在 阅读全文
posted @ 2018-03-15 15:12 Anonymous596 阅读(2374) 评论(0) 推荐(0)
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 23 下一页