OpenFrameworks + Python

大憨熊 提交于 2020-01-15 09:35:40

问题


Is there any bindings to execute functions in OpenFrameworks (C++ toolkit) using Python 2.7? Or any alternative for this available?


回答1:


Experiments on python 2.6 has been made, see @Babu answer. But not updates..

I don't know a lot about it but you can try to have a look at SIP (even i think it is an hard task to let it work completely):

SIP is a tool for quickly writing Python modules that interface with C++ and C libraries. Its home page is at http://riverbankcomputing.co.uk/software/sip/intro. It was written by Phil Thompson who is still actively maintaining it.




回答2:


I don't think there is a binding available for Python 2.7. For 2.6, it's available here,

For Windows: http://forum.openframeworks.cc/index.php/topic,3031.0.html

For OSX: http://forum.openframeworks.cc/index.php/topic,2763.0.html




回答3:


I am also very interested by Python bindings, but it seems quite hard to implement... That's why things like cppyy could be really handy! I didn't have a close look yet, but it's definitely on my todo list.




回答4:


Interesting thing to checkout when working with OpenFrameWorks + Python is using BeautifulSoup to parse HTML and use that in OPenFrameworks to visualize the informations.



来源:https://stackoverflow.com/questions/16889590/openframeworks-python

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!