OpenCamLib is not working! Fixed for python 2.7

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: OpenCamLib is not working!

Post by sgrogan »

freman wrote: Sat Jun 01, 2019 4:03 pm command line equiv to what I worked out above , from those bugs :

Code: Select all

cmake -DBUILD_PY_LIB=ON -DBUILD_CXX_LIB=OFF -DUSE_PY_3=OFF ../src

change the location of the source as reqd.
Thanks for closing the loop.
"fight the good fight"
User avatar
zach
Posts: 29
Joined: Thu Apr 04, 2019 4:56 pm
Location: Texas

Re: OpenCamLib is not working! Fixed for python 2.7

Post by zach »

I'm doing further testing but my pull request at https://github.com/aewallin/opencamlib/pull/66 should allow compiling CXX and Python at the same time. I have it working on my Debian unstable distribution. I've replied to the following OCL issues that are relevant as well: https://github.com/aewallin/opencamlib/issues/61, https://github.com/aewallin/opencamlib/issues/63.
GSoC FreeCAD Blog: zachgummow.github.io
User avatar
zach
Posts: 29
Joined: Thu Apr 04, 2019 4:56 pm
Location: Texas

Re: OpenCamLib is not working! Fixed for python 2.7

Post by zach »

My pull request was merged into master today.
GSoC FreeCAD Blog: zachgummow.github.io
User avatar
freman
Veteran
Posts: 2214
Joined: Tue Nov 27, 2018 10:30 pm

Re: OpenCamLib is not working! Fixed for python 2.7

Post by freman »

Nice work. Thanks for the heads up. I'll sync later.
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: OpenCamLib is not working! Fixed for python 2.7

Post by looo »

Thanks, with another fix for windows it seems like ocl is ready for conda. https://github.com/conda-forge/staged-recipes/pull/8474 Only thing missing is a release.
herbk
Veteran
Posts: 2660
Joined: Mon Nov 03, 2014 3:45 pm
Location: Windsbach, Bavarya (Germany)

Re: OpenCamLib is not working! Fixed for python 2.7

Post by herbk »

Hi,
to get OpenCamLib run on OpenSuse Leap 15.1 i try to build it on Openssuse Build Service (OBS).

The readme file of OCL shows some deps, which i can not find a solution for.
libboost-program-options-dev and texlive-full i can't find and i get an error if i write it to the BuildRequires of the .spec file.

For libboost-program-options-dev there are some variations with an versions nr. i can try, but for texlive-full there are only a few hundred pakages at OS. What dos OpenCamLib need from texlive, if i know i can try to find the pakage it contends it...?
Gruß Herbert
User avatar
freman
Veteran
Posts: 2214
Joined: Tue Nov 27, 2018 10:30 pm

Re: OpenCamLib is not working! Fixed for python 2.7

Post by freman »

When I run cmake in the OCL tree I do not see it looking for any textlive installation. That may only be relevant if building the doc ( non default ).

You may not need to get involved with that.

Maybe build it locally by hand and see whether it needs any of that at all.
herbk
Veteran
Posts: 2660
Joined: Mon Nov 03, 2014 3:45 pm
Location: Windsbach, Bavarya (Germany)

Re: OpenCamLib is not working! Fixed for python 2.7

Post by herbk »

Hi freman,
local it dosn't work to, i got a error of a missing LATEX_Compiler, wich is a part of texlive, i install it atm, it's just about 2100 pakages...

Code: Select all

-- Found Doxygen: /usr/bin/doxygen (found version "1.8.14") found components:  doxygen dot 
-- Found doxygen. Documentation can be built with 'make doc' 
-- Could NOT find LATEX (missing: LATEX_COMPILER) 
-- latex command LATEX_COMPILER not found but usually required. You will probably get warnings and user inetraction on doxy run.
-- makeindex command MAKEINDEX_COMPILER not found but usually required.
-- dvips command DVIPS_CONVERTER not found but usually required.
-- pdflatex compiler not found, PDF docs will not be built
-- type:
--  'make' for a normal build
--  'make -j8' to build faster (if you have many cpus)
--  'make install' to install
--  'make package' to build a binary deb-packate
--  'make spackage' to build debian source-packages
--  'make test' to run the tests
-- Configuring incomplete, errors occurred!

Gruß Herbert
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: OpenCamLib is not working!

Post by looo »

looo wrote: Thu May 30, 2019 10:43 am I tried to build opencamlib several times but failed because of different reasons (python3-supports, cmake difficulties). I guess it's best to do this in an interactive way, trying to figure out what the difficulties of the cmake are. Therefor I created a PR for ocl-conda-package. Would be nice if someone can help with getting it done. Most work is about communicating the errors to the developers and finding out the reason of the build-issues... Once done ocl can be installed via conda and we can include the results in the bundles (appimage/ dmg) if wanted.

https://github.com/conda-forge/staged-recipes/pull/8474
https://github.com/aewallin/opencamlib/issues/64
finally done:
https://github.com/conda-forge/opencamlib-feedstock
https://anaconda.org/conda-forge/opencamlib
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: OpenCamLib is not working! Fixed for python 2.7

Post by sgrogan »

looo wrote: Wed Aug 07, 2019 10:16 pmfinally done:
Well, that's pretty freaking awesome!
https://github.com/aewallin/opencamlib/issues/64
"fight the good fight"
Post Reply