I would like to build PDAL with both together support for Python2 and Python3 bindings (on Ubuntu 16.04).
Fig. 1: Screenshot of the Python stuff within cmake-gui.
How could I achieve this?
If a re-compile with Python3 support I end up with such error message when installing, so I have to uninstall it before, which will uninstall the Python2 bindings... :
Selecting previously unselected package pdal-1.7.1-py3. (Reading database ... 546498 files and directories currently installed.) Preparing to unpack .../pdal-1.7.1-py3_20180920-1_amd64.deb ... Unpacking pdal-1.7.1-py3 (20180920-1) ... dpkg: error processing archive /opt/PDAL/build/pdal-1.7.1-py3_20180920-1_amd64.deb (--install): trying to overwrite '/usr/local/bin/pdal', which is also in package pdal-1.7.1 20180823-1 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Errors were encountered while processing: /opt/PDAL/build/pdal-1.7.1-py3_20180920-1_amd64.deb /var/tmp/tmp.TeaEeCUL0y/dpkginstall.log (END)