2

I need to update my Point Cloud Library (PCL) that I installed via official instructions with my own version that I just compiled according to this manual. The reason is I need to fix a bug in PCL which is present in the pre-built package that I installed originally.

I do "sudo make install" as in the last step but when I compile my application the bug is still present. If I list libpcl version like this

dpkg -l | grep '^ii' | grep libpcl

it outputs 1.7+trusty1 for libpcl-all package and 1.7.1-3+trusty2 for other libpcl- packages. My compiled version shold be 1.7.2.

Kozuch
  • 121
  • 1
  • 5
  • Err... skype? Wrong copy & paste? – Jan Oct 30 '14 at 11:31
  • I'd first remove the precompiled stuff using `apt-get purge libpcl-all` and then compile and install my own built. – Jan Oct 30 '14 at 11:36
  • This does not help - shows 1.7.1-3+trusty2 still and my fix is not being applied. – Kozuch Oct 30 '14 at 11:44
  • That was just a hint, of course you need to purge all the packages you'd like to replace my self-built ones. – Jan Oct 30 '14 at 12:11

1 Answers1

1

In ubuntu, this manual represents a wrong way to install from source something, that exists in the library. The right one is this:

  1. apt-get source <package>
  2. sudo apt-get build-dep <package>
  3. cd <package>
  4. dpkg-buildpackage -rfakeroot -uc -b
  5. dpkg -i <package>.deb

Full instructions here
For kernel and libs procedure is different.

norq
  • 103
  • 4
Barafu Albino
  • 6,401
  • 1
  • 34
  • 42
  • 1
    Sadly "apt-get source libpcl-all" does not work as it probably is being installed via PPA repository? It outputs following: Picking 'pcl-defaults' as source package instead of 'libpcl-all' E: Unable to find a source package for pcl-defaults – Kozuch Oct 30 '14 at 12:01
  • Then you will need to learn about `checkinstall` utility which is the safets way to install from arbitrary source code. Just set your package version to 9999 to make it precedent all others. – Barafu Albino Oct 30 '14 at 12:05