Friday, June 30, 2017

Bug summary when building caffe in Ubuntu 16.04

## pycaffe installation problems
# bug1
>>> import caffe
ImportError: /home/../anaconda2/lib/python2.7/site-packages/zmq/backend/cython/../../../../.././libstdc++.so.6: versionGLIBCXX_3.4.21' not found (required by ../python/caffe/_caffe.so)`
>>> quit()
# solution
$ conda install libgcc

# bug2
ImportError: No module named google.protobuf.internal
# solution
$ pip install protobuf
$ /home/username/anaconda2/bin/pip install protobuf

Thursday, June 29, 2017

Bug summary when building caffe in windows

Caffe installation bugs
Though following the official guidelines, there are also some problems related to different version of compilers or libraries.
The official guidelines are in
https://github.com/BVLC/caffe/tree/windows

I use the compiler vs2015 (MSVC=14), while the official one support vs2013, and ninja instead of cmake.

##
# bug 1
Error 'fatal error: pyconfig.h: No such file or directory'

# Solution
Add python path to system path

# bug 2
.\caffe/export.hpp(7): fatal error C1083: Cannot open include file: 'caffe/include_symbols.hpp'
# Solution
It seems the problem with vs2015. I didn't find the internal problem, but had a tricky solution. We may build with vs2013 first and then copy the include_symbols.hpp in the same path, finally the building will be successful.