Linker errors: MongoDB CXX Driver on Linux

Hey,

this flag is there because of the precompiled boost libs that ship with Cinder – They are compiled with the old ABI ( i.e a version of gcc < 5.1 ) and we need this flag to make them work with newer versions of gcc ( >= 5.1 ) This has been causing some headaches especially if the user happens to have boost installed already in the system and we are currently in the process of thinking what is the best way to move forward with this.

What I would try in your case and at this point is to use system installed boost libs instead of the ones that ship with Cinder. To do that first completely remove the boost submodule that ships with Cinder. Then install ( if you haven’t already ) the dev packages for boost-system and boost-filesystem through apt. After that configure Cinder through CMake with :

cmake .. -DCINDER_BOOST_USE_SYSTEM=1

and from then on continue as usual.

A note that Cinder ships with boost 1.60 and Ubuntu 16.04 has 1.58 as far as I remember. As long as you completely remove the boost submodule that ships with Cinder this should be fine though. If not let us know and we can try to figure out another way.

Hope this helps.
Petros

1 Like