On a fresh ubuntu install, after configuring everything. I get an error
terminate called after throwing an instance of 'std::system_error'
what(): Enable multithreading to use std::thread: Operation not permitted
Aborted (core dumped)
This error seams to come from a lack of the option -lpthread for the compiler. However, cmakefiles seem to be adding this option.
I tried to add it manually with -DCMAKE_CXX_FLAGS=" -lpthread " but that did not work either.
Further info: Cmake warned me (but did not give an error)
-- Looking for include file pthread.h -- Looking for include file pthread.h - not found -- Could NOT find Threads (missing: Threads_FOUND)
Might have something to do with my specific cmake version: see http://stackoverflow.com/questions/16909008/cmake-error-try-compile-pthreads-of-type-executable