Packages for Quantal (Ubuntu 12.10)

370 views
Skip to first unread message

Anders Wallin

unread,
Nov 4, 2012, 1:53:53 PM11/4/12
to opencamlib
I have updated the PPA with packages for ubuntu 12.10 quantal today:
https://launchpad.net/~anders-e-e-wallin/+archive/cam

I haven't really tested these, but at least the builds and packaging seem to work. If someone has time&energy for packaging work there are probably many possible improvements:
- improve the clarity of the cmake scripts that build the packages
- split into c++binary lib, python lib/module, and -dev lib, each with its own dependencies
- set up a continuous integration server which would run tests, including code-coverage etc. and upload results to a website for each commit.

I will continue improving opencamlib and openvoronoi as time permits.
There's been some interest in using these libraries in Slic3r, Librecad, dxf2gcode, and freecad, so lets hope at least one of those becomes the next(only!) big user of opencamlib and/or openvoronoi...

Also I have unfinished code for cutting-simulation which could result in an insanely-great virtual cutting simulation add-on for linuxcnc if/when I have time to improve it and if there would be a few more interested developers...

Anders

Anders Wallin

unread,
Nov 6, 2012, 12:54:52 AM11/6/12
to opencamlib
Here's a comment I got by email:
kubuntu 12.04 precise

Traceback (most recent call last):
  File "./offset_1.py", line 1, in <module>
    import openvoronoi as ovd
ImportError: libboost_python-py27.so.1.46.1: cannot open shared object file: No such file or directory

this can be fixed with the rather ugly:
"sudo ln -s libboost_python-py27.so.1.48.0 ./libboost_python-py27.so.1.46.1" in /usr/lib

I don't know what is going on here? Does launchpad build/link with one boost-python version and kubuntu provides a different (newer) one?

Anders

Sebastian Kuzminsky

unread,
Nov 6, 2012, 10:32:14 AM11/6/12
to openc...@googlegroups.com
On 11/5/12 22:54 , Anders Wallin wrote:
Here's a comment I got by email:
kubuntu 12.04 precise

Traceback (most recent call last):
  File "./offset_1.py", line 1, in <module>
    import openvoronoi as ovd
ImportError: libboost_python-py27.so.1.46.1: cannot open shared object file: No such file or directory

this can be fixed with the rather ugly:
"sudo ln -s libboost_python-py27.so.1.48.0 ./libboost_python-py27.so.1.46.1" in /usr/lib

I don't know what is going on here? Does launchpad build/link with one boost-python version and kubuntu provides a different (newer) one?

I don't know how launchpad builds packages, but I note that the following versions of libboost-python are in use:

Quantal: 1.49 & 1.50
Precise: 1.46 & 1.48
Lucid: 1.40

Oh, there's the problem: debian/control has an explicit Depends: on a long list of OR'ed libboost-python versions.  If any of those are installed, openvoronoi.deb will install.  But it's built against one particular version of libboost-python, and if the wrong one is installed it won't run.

Look into "Depends: ${python:Depends}" and debhelper's dh_python2.


--
Sebastian Kuzminsky

Anders Wallin

unread,
Nov 8, 2012, 1:08:05 PM11/8/12
to opencamlib



Quantal: 1.49 & 1.50
Precise: 1.46 & 1.48
Lucid: 1.40
Oh, there's the problem: debian/control has an explicit Depends: on a long list of OR'ed libboost-python versions.  If any of those are installed, openvoronoi.deb will install.  But it's built against one particular version of libboost-python, and if the wrong one is installed it won't run.
Look into "Depends: ${python:Depends}" and debhelper's dh_python2.

I naively thought that maybe removing the version number would help, i.e. "libboost-python" as a dependency.
It now seems all packages in the PPA are uninstallable, because the package manager doesn't find "libboost-python" (presumably since there is no version number).
Anyway I think I will focus what little free time I have on the actual coding and algorithms in these libraries, since most people that use them are quite advanced developers and will build from source anyway.

AW
Reply all
Reply to author
Forward
0 new messages