OpenCamLib is not working! Fixed for python 2.7

Having trouble installing or compiling FreeCAD? Get help here.
User avatar
sgrogan
Posts: 5536
Joined: Wed Oct 22, 2014 5:02 pm

Re: OpenCamLib is not working!

Postby sgrogan » Sat Jun 01, 2019 4:12 pm

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.
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

Postby zach » Thu Jun 06, 2019 11:44 pm

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

Postby zach » Fri Jun 07, 2019 5:09 pm

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

Re: OpenCamLib is not working! Fixed for python 2.7

Postby freman » Fri Jun 07, 2019 5:22 pm

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

Re: OpenCamLib is not working! Fixed for python 2.7

Postby looo » Sat Jun 08, 2019 4:38 am

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.
please help with my conda-packaging efforts: https://liberapay.com/looooo/
minimalistic blog: https://looooo.github.io/mini-blog/
herbk
Posts: 1663
Joined: Mon Nov 03, 2014 3:45 pm
Location: Windsbach, Bavarya (Germany)

Re: OpenCamLib is not working! Fixed for python 2.7

Postby herbk » Sat Jun 15, 2019 11:02 am

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
Posts: 867
Joined: Tue Nov 27, 2018 10:30 pm

Re: OpenCamLib is not working! Fixed for python 2.7

Postby freman » Sat Jun 15, 2019 11:13 am

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
Posts: 1663
Joined: Mon Nov 03, 2014 3:45 pm
Location: Windsbach, Bavarya (Germany)

Re: OpenCamLib is not working! Fixed for python 2.7

Postby herbk » Sat Jun 15, 2019 3:35 pm

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
Posts: 3024
Joined: Mon Nov 11, 2013 5:29 pm

Re: OpenCamLib is not working!

Postby looo » Wed Aug 07, 2019 10:16 pm

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
please help with my conda-packaging efforts: https://liberapay.com/looooo/
minimalistic blog: https://looooo.github.io/mini-blog/
User avatar
sgrogan
Posts: 5536
Joined: Wed Oct 22, 2014 5:02 pm

Re: OpenCamLib is not working! Fixed for python 2.7

Postby sgrogan » Wed Aug 07, 2019 10:21 pm

looo wrote:
Wed Aug 07, 2019 10:16 pm
finally done:
Well, that's pretty freaking awesome!
https://github.com/aewallin/opencamlib/issues/64