OpenCAMlib for Windows
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: OpenCAMlib for Windows
thank you
Re: OpenCAMlib for Windows
Gauthier,
Thank you!
I was able to build ocl.pyd using your instructions and files without difficulty. I had tried several times before but always got into trouble somewhere.
Gene
Thank you!
I was able to build ocl.pyd using your instructions and files without difficulty. I had tried several times before but always got into trouble somewhere.
Gene
Re: OpenCAMlib for Windows
Gauthier wrote: ↑Mon Dec 26, 2016 2:26 pm But, it's OK for now , I forked a new release on : https://github.com/fra589/opencamlib.
Thanks guys for the Win work!
Do to a recent help request this has bubbled up on my list.
I'm a little concerned following Gauthier's procedure for the dependencies. Using a Python27 compiled with VS2008, as a dependency to build boost_1.62 w/VS2013, to be used in FreeCAD which uses both Python27 and boost_1.55 compiled with VS2013 makes me nervous. I guess everything in ocl.pyd is statically linked and that's why it works. Anyway it would be more convienient to link against the FreeCAD libpack.
So I tried this. The first problem I encounter was ocl is trying to link against "libboost_python-vc120-mt-1_55.lib", in the libpack this is called "boost_python-vc120-mt-1_55.lib", so I made a copy and re-named (I also did the same with the corrresponding .dll file) now I'm stuck with an "unresolved external"
Code: Select all
Error 52 error LNK2001: unresolved external symbol "struct boost::python::self_ns::self_t boost::python::self_ns::self" (?self@self_ns@python@boost@@3Uself_t@123@A) C:\Users\Chris\GitHub\opencamlib\Windows\ocl_geometry.obj OpenCamLib
Error 53 error LNK1120: 1 unresolved externals C:\Users\Chris\GitHub\opencamlib\Windows\x64\Release X64\ocl.pyd OpenCamLib
"fight the good fight"
Re: OpenCAMlib for Windows
Hi sgrogan,
include OCL in the libpack is à good idea... I will be happy to help...
Unfortunately, my time is not extendable and I can't do it now... I'm busy until September...
The procedure I used was for compiling OCL from scratch.
As the OCL dependency (boost) are already in the libpack, the idea for including it is to use the libpack itself to build the libpack ocl.pyd.
To do this, you can try to go directly go to the procedure item #3. and put the path of the needed files from the libpack, then build the ocl.pyd libpack version...
@++;
Gauthier.
include OCL in the libpack is à good idea... I will be happy to help...
Unfortunately, my time is not extendable and I can't do it now... I'm busy until September...
The procedure I used was for compiling OCL from scratch.
As the OCL dependency (boost) are already in the libpack, the idea for including it is to use the libpack itself to build the libpack ocl.pyd.
To do this, you can try to go directly go to the procedure item #3. and put the path of the needed files from the libpack, then build the ocl.pyd libpack version...
@++;
Gauthier.
Re: OpenCAMlib for Windows
Rather than try to figure out why you are getting that error, I modified the cmake file to work on windows: https://github.com/peterlama/opencamlib/tree/win-cmake. It should make the Windows directory obsolete.
Using the above branch, do the following to build ocl (of course adjust paths to your system)
Using the above branch, do the following to build ocl (of course adjust paths to your system)
Code: Select all
cd opencamlib
mkdir build
cd build
cmake -DCMAKE_PREFIX_PATH="D:\FreeCADLibs_11.5.2_x64_VC12" -DCMAKE_INSTALL_PREFIX=../install -G"Visual Studio 12 2013 Win64" ..
build solution
build INSTALL project
Re: OpenCAMlib for Windows
is it possible to make a PR for opencamlib?
Re: OpenCAMlib for Windows
It does compile on linux, but it is using the wrong python version if build with python3.
I am also using this patches for conda (the second is py3-specific):
https://github.com/looooo/FreeCAD_Conda ... oost.patch
https://github.com/looooo/FreeCAD_Conda ... _py3.patch
py2 should work with conda +linux and the boost.patch.
I am also using this patches for conda (the second is py3-specific):
https://github.com/looooo/FreeCAD_Conda ... oost.patch
https://github.com/looooo/FreeCAD_Conda ... _py3.patch
py2 should work with conda +linux and the boost.patch.
Re: OpenCAMlib for Windows
Thank-you very, very much peterl94!!!
Worked perfectly for me (I think) I built 32 and 64 bit versions and added ocl.pyd to the developer build bundles (0.17.11528)
Win testing Appreciated.
"fight the good fight"