How to activate openCamLib after compiling it

Here's the place for discussion related to CAM/CNC and the development of the Path module.
DarkPhoinix
Posts: 18
Joined: Thu May 02, 2019 2:30 pm

Re: How to activate openCamLib after compiling it

Postby DarkPhoinix » Sun May 05, 2019 11:25 am

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: 18
Joined: Thu May 02, 2019 2:30 pm

Re: How to activate openCamLib after compiling it

Postby DarkPhoinix » Tue May 07, 2019 10:13 pm

Image
User avatar
sliptonic
Posts: 1917
Joined: Tue Oct 25, 2011 10:46 pm
Contact:

Re: How to activate openCamLib after compiling it

Postby sliptonic » 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.
DarkPhoinix
Posts: 18
Joined: Thu May 02, 2019 2:30 pm

Re: How to activate openCamLib after compiling it

Postby DarkPhoinix » Wed May 08, 2019 10:43 pm

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

Postby Erich Schulz » Tue Jun 04, 2019 10:27 pm

Is there a wiki page on ocl?

If not, should their be?
Russ4262
Posts: 490
Joined: Sat Jun 30, 2018 3:22 pm

Re: How to activate openCamLib after compiling it

Postby Russ4262 » Wed Jun 05, 2019 12:51 pm

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
Posts: 2161
Joined: Thu Mar 03, 2016 9:52 pm
Location: Texas

Re: How to activate openCamLib after compiling it

Postby kkremitzki » Wed Jun 05, 2019 6:24 pm

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

Postby Erich Schulz » Wed Jun 05, 2019 8:09 pm

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

Postby Erich Schulz » Wed Jun 05, 2019 11:55 pm

stub is here:

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

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

Re: How to activate openCamLib after compiling it

Postby chrisb » Thu Jun 06, 2019 6:14 am

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?