Installing Caffe with OpenCV 4.2.0 on Ubuntu 20, and received this error message after running 'make all' even though I have libboost-all-dev and libpython3 installed.
LD -o .build_release/lib/libcaffe.so.1.0.0
/usr/bin/ld: cannot find -lboost_python3
/usr/bin/ld: cannot find -lpython3.6m
collect2: error: ld returned 1 exit status
make: *** [Makefile:596: .build_release/lib/libcaffe.so.1.0.0] Error 1
My Makefile.config contains:
PYTHON_LIBRARIES := boost_python3 python3.6m
PYTHON_INCLUDE := /usr/include/python3.6m \
/usr/lib/python3/dist-packages/numpy/core/include
PYTHON_LIB := /usr/lib
INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial/
LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib /usr/lib/x86_64-linux-gnu/hdf5/serial/
I had a feeling I needed to set PATH, LIBRARY_PATH, or LD_LIBRARY_PATH to see these files or soft-link them in existing paths, but I can't even find where these files are located to do so.
Any help would be very much appreciated, thanks!