我按照这个方法
cd dlib-19.17
mkdir build
cd build
cmake ..
cmake --build . --config Release
最后一步出现错误
cmake --build . --config
[root@database build]# cmake --build . --config Release
Consolidate compiler generated dependencies of target dlib
[ 1%] Building CXX object dlib/CMakeFiles/dlib.dir/bigint/bigint_kernel_1.cpp.o
In file included from /dlib19.22/dlib/bigint/../vectorstream.h:6:0,
from /dlib19.22/dlib/bigint/../serialize.h:243,
from /dlib19.22/dlib/bigint/bigint_kernel_1.h:8,
from /dlib19.22/dlib/bigint/bigint_kernel_1.cpp:5:
/dlib19.22/dlib/bigint/../vectorstream/vectorstream.h:31:34: error: invalid use of dependent type ‘dlib::vectorstream::vector_streambuf<CharType>::size_type’
size_type read_pos = 0; // buffer[read_pos] == next byte to read from buffer
^
gmake[2]: *** [dlib/CMakeFiles/dlib.dir/bigint/bigint_kernel_1.cpp.o] Error 1
gmake[1]: *** [dlib/CMakeFiles/dlib.dir/all] Error 2
gmake: *** [all] Error 2