Multimedia Computing and Computer Vision Lab

FAQ & troubleshooting


Should CMake fail to complete the configuration, you can always have a look at the file CMakeFiles/CMakeOutput.log in the build folder to find the protocol. It usually contains useful hints to quickly resolve problems.


Missing memory errors

Errors like

occured so far only on virtual machines with very limited memory. Even in this case, just restarting the build with a single thread often resolved the issue.


/usr/bin/ld: warning:, needed by [...]/anaconda/lib/, not found

This issue arises when using the current Anaconda/Miniconda installation with the OpenCV package installed. The fix is to add the Anaconda installation's lib path to the LD_LIBRARY_PATH by adding the following to your .bashrc:

export LD_LIBRARY_PATH="/your/path/to/anaconda/lib:$LD_LIBRARY_PATH"

When doing so, also other software will detect and use Anaconda's OpenCV libraries.

error while loading shared libraries: cannot open shared object file: No such file or directory

Resolution: add the MATLAB folder containing the libraries and binary files to your LD_LIBRARY_PATH: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/MATLAB/R20XXc/bin/glnxa64 and run the build again. To make this permanent, open ~/.bashrc and add this line at the end.


I cannot pass my data into the fit/predict-methods of a tree/forest!

Resolution: even for the high-level languages Python and Matlab, I decided to implement a strict, non-converting interface for all functions (in contrast to, e.g., scikit-learn). The reasoning behind this was simple: when working with more than 100Gb of image-data, starting a copy operation to convert its type could be fatal it there is not enough memory. Additionally, due to restrictions of Boost Python, it was necessary to always require 2D arrays. Go through the following checklist:

  1. Check that both arrays (data AND annotations) are two dimensional, i.e., check X.ndim for both inputs! Are they all 2? If not, you can use np.atleast_2d(X).T to enforce this.

  2. Check the datatype of the inputs (data AND annotations) (e.g., visually in Matlab, in Python with X.dtype). Do they match the datatypes of your Soil? If not, you can cast in Python with, e.g., X.astype('uint32') and in Matlab with, e.g., uint32(X).

  3. In Python, check that both input matrices (data AND annotations) are in C contiguous layout, i.e., check X.flags for C_CONTIGUOUS. Is it True? If not, you can use the command np.ascontiguousarray(X), to enforce this.

What is the template parameterization of the Array class?

The class is templated as Array<dtype, ndims, ncontiguous>.


DLL load failed ...

A required .dll file is missing. You can find out which one by opening the .dll file in the x64 dependency walker. If you are using the precompiled library for Python, most probably the Visual C++ x64 redistributables for VS2013 are missing (download them here).


MATLAB error: version `GLIBCXX_X.Y.ZZ′ not found

Resolution: This is a very annoying issue related to the way MATLAB searches for the system libraries. For luck, it is easy to resolve. I especially like the last line of the article ;) :

After running this command in my terminal, the world calms down.

boost_python3 library can not be found

Resolution: The precompiled boost libraries are suffixed with their full Python 3 version. You can just create a symlink to them by running

cd /usr/lib/x86_64-linux-gnu/
sudo ln -s libboost_python-py3[X].so

replacing [X] with the provided Python version.