OS: macOS 10.12
clang++ : Apple LLVM version 8.1.0 (clang-802.0.38)
step1: I want to use dlib and opencv on android project. The dlib-android build is ok. But when linking dlib with my source file. The compiler complains as follows:
step2: I add dlib/all/source.cpp to my source files. But when compiling source.cpp, the compiler complains another error.
../matrix/matrix_utilities.h:2665:29: error: static_assert expression is not an integral constant expression COMPILE_TIME_ASSERT(pixel_traits<P>::num > 0);
step3: I also make a small test by using below command to compile dlib example face_detection_ex.cpp.
For dlib-android repo, the compiler complains with the same error as the step2.
For dlib repo, the compilation of face_detection_ex.cpp is ok .
OS: macOS 10.12 clang++ : Apple LLVM version 8.1.0 (clang-802.0.38)
step1: I want to use dlib and opencv on android project. The dlib-android build is ok. But when linking dlib with my source file. The compiler complains as follows:
_"USER_ERROR__missing_dlib_all_source_cpp_file__OR__inconsistent_use_of_DEBUG_or_ENABLE_ASSERTS_preprocessor_directives_"
step2: I add dlib/all/source.cpp to my source files. But when compiling source.cpp, the compiler complains another error.
../matrix/matrix_utilities.h:2665:29: error: static_assert expression is not an integral constant expression COMPILE_TIME_ASSERT(pixel_traits<P>::num > 0);
step3: I also make a small test by using below command to compile dlib example face_detection_ex.cpp.
For dlib-android repo, the compiler complains with the same error as the step2. For dlib repo, the compilation of face_detection_ex.cpp is ok .
g++ -std=c++11 -DDLIB_PNG_SUPPORT -DDLIB_JPEG_SUPPORT -DUSE_AVX_INSTRUCTIONS=ON -I.. ../dlib/all/source.cpp -I/usr/local/opt/X11/include/ -I/usr/local/Cellar/jpeg/8d/include -lpthread -L/usr/local/opt/X11/lib -lX11 face_detection_ex.cpp -o face_detection_ex -L/usr/local/Cellar/libpng/1.6.29/lib -lpng16 -L/usr/local/Cellar/jpeg/8d/lib -ljpeg