opencamlib icon indicating copy to clipboard operation
opencamlib copied to clipboard

How to build the lib used for python project

Open 1127378627 opened this issue 5 years ago • 3 comments

I cannot make a lib for python, anyone can do this job?

1127378627 avatar Dec 23 '20 10:12 1127378627

what platform are you on? what did you try and what error message did you get?

on travis it looks like all linux build variants are working: https://travis-ci.org/github/aewallin/opencamlib

aewallin avatar Dec 23 '20 18:12 aewallin

Win10 X64,Intel(R) Core(TM) i5-9300H CPU.  I want to use opencamlib in my pythonOCC project, Python 3.6 or Python 3.7. Do you have any suggestions? Is possible to use the python lib which complied in linux systerm or must build on Win10, that I can use the opencamlib in python like this: import opencamlib, ...

------------------ 原始邮件 ------------------ 发件人: "aewallin/opencamlib" <[email protected]>; 发送时间: 2020年12月24日(星期四) 凌晨2:41 收件人: "aewallin/opencamlib"<[email protected]>; 抄送: "发帖人体"<[email protected]>;"Author"<[email protected]>; 主题: Re: [aewallin/opencamlib] How to build the lib used for python project (#89)

what platform are you on? what did you try and what error message did you get?

on travis it looks like all linux build variants are working: https://travis-ci.org/github/aewallin/opencamlib

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

1127378627 avatar Dec 24 '20 02:12 1127378627

You need to build the python module under Windows in order to import in a windows python environment.

One alternative to visual studio could be the cygwin environment (https://www.cygwin.com/) - which should allow building opencamlib in a very similar environment to native linux. If travis supports cygwin this would be a good addition to the automatic travis builds.

aewallin avatar Dec 27 '20 13:12 aewallin

We now have pre-compiled OpenCAMLib libraries for Windows, macOS and Linux (Python V3.7 - v3.11), it should be as simple as:

pip install opencamlib

vespakoen avatar Dec 18 '22 12:12 vespakoen