How to activate openCamLib after compiling it
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
-
- Posts: 77
- Joined: Thu May 02, 2019 2:30 pm
Re: How to activate openCamLib after compiling it
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 ?
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 ?
-
- Posts: 77
- Joined: Thu May 02, 2019 2:30 pm
- sliptonic
- Veteran
- Posts: 3459
- Joined: Tue Oct 25, 2011 10:46 pm
- Location: Columbia, Missouri
- Contact:
Re: How to activate openCamLib after compiling it
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.
-
- Posts: 77
- Joined: Thu May 02, 2019 2:30 pm
-
- Posts: 141
- Joined: Tue May 07, 2019 10:50 pm
- Location: Brisbane, Australia
Re: How to activate openCamLib after compiling it
Is there a wiki page on ocl?
If not, should their be?
If not, should their be?
Re: How to activate openCamLib after compiling it
Good morning,
Russ
Current information about OCL within the wiki is here: Path Surface.Erich Schulz wrote: ↑Tue Jun 04, 2019 10:27 pm Is there a wiki page on ocl?
If not, should their be?
However, I think it needs to be relocated to the Path 3D Surface wiki page.chrisb wrote:ping
Russ
- kkremitzki
- Veteran
- Posts: 2515
- Joined: Thu Mar 03, 2016 9:52 pm
- Location: Illinois
Re: How to activate openCamLib after compiling it
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.
-
- Posts: 141
- Joined: Tue May 07, 2019 10:50 pm
- Location: Brisbane, Australia
Re: How to activate openCamLib after compiling it
Cool. I have been bold and started a stub
-
- Posts: 141
- Joined: Tue May 07, 2019 10:50 pm
- Location: Brisbane, Australia
Re: How to activate openCamLib after compiling it
stub is here:
https://www.freecadweb.org/wiki/OpenCamLib
it would probablly benefit from other's experience
https://www.freecadweb.org/wiki/OpenCamLib
it would probablly benefit from other's experience
Re: How to activate openCamLib after compiling it
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.