How to activate openCamLib after compiling it

Here's the place for discussion related to CAM/CNC and the development of the Path module.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
DarkPhoinix
Posts: 77
Joined: Thu May 02, 2019 2:30 pm

Re: How to activate openCamLib after compiling it

Post by DarkPhoinix »

Hi all,
I have a trouble with opencamlib:
-------------------------------------------
cmake txt:

/Use Python V3
USE_PY_3:BOOL=ON
------------------------------------------
version:

OS: Ubuntu 18.04.2 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.1.
Build type: Release
Python version: 3.6.7
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Italian/Italy (it_IT)
----------------------------------------------
lib dir:

pappo@pappo-VirtualBox:/usr/local/lib/opencamlib$ ls -l
totale 1356
lrwxrwxrwx 1 root root 21 mag 5 12:49 libocl.so -> libocl.so.2018.08.122
-rw-r--r-- 1 root root 1387680 mag 5 12:47 libocl.so.2018.08.122
-------------------------------------------------------------------------------------
upgrade pip setuptools:

root@pappo-VirtualBox:/home/pappo/opencamlib/build# pip3 install --upgrade setuptools
Collecting setuptools
Downloading https://files.pythonhosted.org/packages ... ne-any.whl (575kB)
100% |████████████████████████████████| 583kB 2.0MB/s
Installing collected packages: setuptools
Found existing installation: setuptools 39.0.1
Not uninstalling setuptools at /usr/lib/python3/dist-packages, outside environment /usr
Successfully installed setuptools-41.0.1


pappo@pappo-VirtualBox:/usr/local/lib/opencamlib$
-------------------------------------------------------------
etc:

pappo@pappo-VirtualBox:/$ cat /etc/ld.so.conf.d/libc.conf
# libc default configuration
/usr/local/lib
-----------------------------------------------------------------
python 3 shell import libocl ocl OCL:

Python 3.6.7 (default, Oct 22 2018, 11:32:17)
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import libocl
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'libocl'
>>> import ocl
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'ocl'
>>> import OCL
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'OCL'

---------------------------------------------------------------------------------------------
pip3:

root@pappo-VirtualBox:/home/pappo/opencamlib/build# pip3 install libocl.so
Collecting libocl.so
Could not find a version that satisfies the requirement libocl.so (from versions: )
No matching distribution found for libocl.so
------------------------------------------------------------------------
The problem is Python3? Wrong version of gcc and g++? need to put any file in Mod dir ?
DarkPhoinix
Posts: 77
Joined: Thu May 02, 2019 2:30 pm

Re: How to activate openCamLib after compiling it

Post by DarkPhoinix »

Image
User avatar
sliptonic
Veteran
Posts: 3457
Joined: Tue Oct 25, 2011 10:46 pm
Location: Columbia, Missouri
Contact:

Re: How to activate openCamLib after compiling it

Post by sliptonic »

It's not that we're ignoring your post. The rest of this thread deals with essentially this same issue. There's an installation issue related to Python3 and we don't have a solution yet.
DarkPhoinix
Posts: 77
Joined: Thu May 02, 2019 2:30 pm

Re: How to activate openCamLib after compiling it

Post by DarkPhoinix »

sliptonic wrote: Wed May 08, 2019 2:38 am It's not that we're ignoring your post. The rest of this thread deals with essentially this same issue. There's an installation issue related to Python3 and we don't have a solution yet.
Thank you very much, now I know it's not my fault!
Erich Schulz
Posts: 141
Joined: Tue May 07, 2019 10:50 pm
Location: Brisbane, Australia

Re: How to activate openCamLib after compiling it

Post by Erich Schulz »

Is there a wiki page on ocl?

If not, should their be?
Russ4262
Posts: 941
Joined: Sat Jun 30, 2018 3:22 pm
Location: Oklahoma
Contact:

Re: How to activate openCamLib after compiling it

Post by Russ4262 »

Good morning,
Erich Schulz wrote: Tue Jun 04, 2019 10:27 pm Is there a wiki page on ocl?

If not, should their be?
Current information about OCL within the wiki is here: Path Surface.


chrisb wrote:ping
However, I think it needs to be relocated to the Path 3D Surface wiki page.

Russ
User avatar
kkremitzki
Veteran
Posts: 2511
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: How to activate openCamLib after compiling it

Post by kkremitzki »

It wouldn't hurt to have a page specifically for it (how to build it on different platforms, integration/usage notes etc) while the situation with its packaging gets taken care of.
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
Erich Schulz
Posts: 141
Joined: Tue May 07, 2019 10:50 pm
Location: Brisbane, Australia

Re: How to activate openCamLib after compiling it

Post by Erich Schulz »

Cool. I have been bold and started a stub
Erich Schulz
Posts: 141
Joined: Tue May 07, 2019 10:50 pm
Location: Brisbane, Australia

Re: How to activate openCamLib after compiling it

Post by Erich Schulz »

stub is here:

https://www.freecadweb.org/wiki/OpenCamLib

it would probablly benefit from other's experience
chrisb
Veteran
Posts: 53930
Joined: Tue Mar 17, 2015 9:14 am

Re: How to activate openCamLib after compiling it

Post by chrisb »

As OCL may be used from different operations it should indeed live in its own page, which can then be referenced. Erich, can you please move the stuff from 3D Surface to the new page?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Post Reply