Opencamlib e Freecad come si fa?

Forum per le domande e le discussioni in Italiano
Forum rules
regole del forum e le informazioni utili

Importante: PRIMA di chiedere aiuto leggete qui!
DarkPhoinix
Posts: 18
Joined: Thu May 02, 2019 2:30 pm

Opencamlib e Freecad come si fa?

Postby DarkPhoinix » Sun May 05, 2019 1:16 pm

Ciao ragazzi sto avendo un pò di problemi a far vedere opencamlib a freecad qualcuno sa dirmi come fare perché non esistono guide precise.
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)

Ma ho anche Windows con la :

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16110 (Git)
Build type: Release
Branch: (HEAD detached at upstream/releases/FreeCAD-0-18)
Hash: f7dccfaa909e5b9da26bf50c4a22ccca9bb10c40
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Italian/Italy (it_IT)


Sto tentando su Linux perchè mi vien più semplice.

-------------------------------------------
cmake txt:

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

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

Grazie.
User avatar
mfv
Posts: 8
Joined: Fri Apr 12, 2019 7:16 am
Location: Veneto, Italy
Contact:

Re: Opencamlib e Freecad come si fa?

Postby mfv » Mon May 06, 2019 10:30 am

Ciao!
DarkPhoinix wrote:
Sun May 05, 2019 1:16 pm
-----------------------------------------------------------------
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
------------------------------------------------------------------------
Noto solo ora che OCL non e' parte di Debian e quindi neppure di Ubuntu.
@kkremitzki ed io ci stiamo lavorando su.
Spero di riuscire a sistemare la cosa in fretta, per quel che conta.
Imagine a red swirl here.
DarkPhoinix
Posts: 18
Joined: Thu May 02, 2019 2:30 pm

Re: Opencamlib e Freecad come si fa?

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

mfv wrote:
Mon May 06, 2019 10:30 am
Noto solo ora che OCL non e' parte di Debian e quindi neppure di Ubuntu.
@kkremitzki ed io ci stiamo lavorando su.
Spero di riuscire a sistemare la cosa in fretta, per quel che conta.

Grazie, su windows con la 0,17 mi funziona ma ho roba molto diversa da quella compilata su linux e non ho assolutamente compilato nulla era precotto.Ho messo una cartella con dei file python nella Dir Mod.
Io,su Linux, ho compilato tutto e fatto un make install ma volevo capire se devo fare qualche link simbolico alla dire di freecad.
DarkPhoinix
Posts: 18
Joined: Thu May 02, 2019 2:30 pm

Re: Opencamlib e Freecad come si fa?

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

/usr/lib/opencamlib
/usr/lib/opencamlib/libocl.so.11.10.84
/usr/lib/python2.7/site-packages/STLTools.py
/usr/lib/python2.7/site-packages/STLTools.pyc
/usr/lib/python2.7/site-packages/STLTools.pyo
/usr/lib/python2.7/site-packages/camvtk.py
/usr/lib/python2.7/site-packages/camvtk.pyc
/usr/lib/python2.7/site-packages/camvtk.pyo
/usr/lib/python2.7/site-packages/procmemory.py
/usr/lib/python2.7/site-packages/procmemory.pyc
/usr/lib/python2.7/site-packages/procmemory.pyo
/usr/lib/python2.7/site-packages/pyocl.py
/usr/lib/python2.7/site-packages/pyocl.pyc
/usr/lib/python2.7/site-packages/pyocl.pyo
/usr/lib64/python2.7/site-packages/ocl.so

noto che tutta questa roba manca con la 3.7