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 ?