I see, what you are saying, and I don't want to do that. Google protobuf is just one of the many libraries that Caffe requires.
Note that you only need to recompile C++ libraries that export functions using STL (e.g., std::string). As blitz does not export such functions, I can link against blitz that was compiled with GCC 4.
My current work-around looks like follows:
1. Install a conda environment without bob, but with bob's dependencies:
$ conda create -n base python=2.7 libblitz
$ conda install -n base cython pip giflib libtiff
2. Compile all Bob packages from source, using the conda ``base`` environment
3. Compile OpenCV (required by Caffe) and install it manually into the conda ``base`` environment
I had to disable TIFF as this does not seem to work with Caffe (next step)
4. Compile Caffe using Bob (from source) and OpenCV (from the base conda environment)
This seems to have worked fine.
So, my question still is: is there a way to provide Bob packages compiled with GCC 5 in conda -- without overwriting the ones compiled with GCC 4? If yes, how difficult, you think, would it be to do that?
Thanks
Manuel