5

Boost: compile latest source or use add-apt-repository

I’m at a junction should I go one way or another…?

Boost 1.55 is part of Raspian Jessie stable, and the advice when installing Domoticz is to use the latest Boost (by compiling the source...), ie. now 1.61, though “as of 19th December 2015 that is version 1.60.”.

(Edit: following advice I have successfully built Domoticz on top of Boost 1.55 using gcc 4:4.9.2-2 (just had to let it have 3 bites at the make)).

I can do one of the following:

a) Ignore the downloaded source (hey ho!) and start with the following and stay within the apt-get system but perhaps stay on the bleeding edge of Boost?

(Edit: I got errors trying to go this way and backed off.):

sudo add-apt-repository ppa:boost-latest/ppa

etc

b) Compile the downloaded source outside of the apt-get system (this seems like a bad idea unless I can re-connect it with the apt-get system...)

(Edit: This seemed unnecessary unless necessary! :-p, so again I backed off.)

I have appropriate backups using rpi-clone to a set of SD cards ;)

  • I have a backup of pre-Boost 1.55 removal (“you will get linking errors if you don't remove the old Boost library”).

  • I have since downloaded Boost 1.61 and could compile it (just doing another separate rpi-clone backup to another SD card)…

Any suggestions welcome…

I've seen these:

closed as primarily opinion-based by Braiam, garethTheRed, jimmij, slm Jul 5 '16 at 19:33

Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise. If this question can be reworded to fit the rules in the help center, please edit the question.

  • I'm not clear why you don't want to use the Boost that is packaged for the release you are using. Can you clarify? – Faheem Mitha May 21 '16 at 11:12
  • Hi @faheem, It has been recommended that I use the latest Boost libraries (domoticz.com/wiki/…) – Geoff May 21 '16 at 13:00
  • Well, Ok. I see the recommendation. But they don't say why they recommend it. – Faheem Mitha May 21 '16 at 16:45
  • It's not uncommon for devs to give advice like this. Ignore them. They say it because they don't value packaging systems, and find them a burden they want to work around rather than learn. They are narrowly focussed on just their code and don't really give a damn about anything else (especially not the OS their code will run on, or integrating with the rest of your system, their code is special). Many think that packaging is a waste of time, all you need is a git repo or a source tarball. Been there before 1990s, it sucked. Those who fail to learn from history are doomed to repeat it – cas May 21 '16 at 23:31
  • @cas you're missing the fact that (more often than not) the packages in a distro's standard repos can be out of date, and features may be missing, hence the "use the latest version/use x version". this also can be the case when distros have different package versions between them, which could cause conflicts and build issues if the dev has tailored their code to work with a specific version of the package. it also can ensure that the package which they want you to use is installed in a standard/specific location, something which might very over distros (but that is rarely the case). – Joe May 22 '16 at 11:44

Browse other questions tagged or ask your own question.