S32DS How to Include the Dlib and Boost library like OpenCV?

cancel
Showing results for 
Search instead for 
Did you mean: 

S32DS How to Include the Dlib and Boost library like OpenCV?

289 Views
Contributor II

When I try to build a face recognition with dlib and opencv library by S32DS, It's trouble, I cannot  link to dlib library and boost library. It's showing the next code: "Unresolved Inclusion: <dlib/xxxxx>". 

What should I do to solve the problem? 

Tags (2)
0 Kudos
2 Replies

12 Views
NXP Employee
NXP Employee

Hi Steve, 

do you have correct include paths for header files? The error looks like that some header file is not visible for compiler. Can you attach console output? 

Jiri 

0 Kudos

12 Views
Contributor II

make -j4 all
Building file: ../src/FaceRecognizer.cpp
Building file: ../src/Gabor.cpp
Executing target #1 ../src/FaceRecognizer.cpp
Building file: ../src/KernelController.cpp
Executing target #2 ../src/Gabor.cpp
Executing target #3 ../src/KernelController.cpp
Invoking: Standard S32DS C++ Compiler
aarch64-linux-gnu-g++ "@src/FaceRecognizer.args" -MMD -MP -MF"src/FaceRecognizer.d" -MT"src/FaceRecognizer.o" -c -o "src/FaceRecognizer.o" "../src/FaceRecognizer.cpp"
Invoking: Standard S32DS C++ Compiler
Invoking: Standard S32DS C++ Compiler
aarch64-linux-gnu-g++ "@src/KernelController.args" -MMD -MP -MF"src/KernelController.d" -MT"src/KernelController.o" -c -o "src/KernelController.o" "../src/KernelController.cpp"
aarch64-linux-gnu-g++ "@src/Gabor.args" -MMD -MP -MF"src/Gabor.d" -MT"src/Gabor.o" -c -o "src/Gabor.o" "../src/Gabor.cpp"
Building file: ../src/OpencvExtension.cpp
Executing target #4 ../src/OpencvExtension.cpp
Invoking: Standard S32DS C++ Compiler
aarch64-linux-gnu-g++ "@src/OpencvExtension.args" -MMD -MP -MF"src/OpencvExtension.d" -MT"src/OpencvExtension.o" -c -o "src/OpencvExtension.o" "../src/OpencvExtension.cpp"
In file included from d:\nxp\s32ds_vision_v2.0\cross_tools\gcc-aarch64-linux-gnu-4_9\aarch64-linux-gnu\include\c++\4.9.3\array:35:0,
from D:/NXP/workspaceS32DS.Vision.2.0/ProjectLinux/include/ImageFeatureExtractors.h:4,
from D:/NXP/workspaceS32DS.Vision.2.0/ProjectLinux/include/FaceRecognizer.h:2,
from ../src/FaceRecognizer.cpp:1:
d:\nxp\s32ds_vision_v2.0\cross_tools\gcc-aarch64-linux-gnu-4_9\aarch64-linux-gnu\include\c++\4.9.3\bits\c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the \
^
In file included from d:\nxp\s32ds_vision_v2.0\cross_tools\gcc-aarch64-linux-gnu-4_9\aarch64-linux-gnu\include\c++\4.9.3\array:35:0,
from D:/NXP/workspaceS32DS.Vision.2.0/ProjectLinux/include/ImageFeatureExtractors.h:4,
from ../src/Gabor.cpp:1:
d:\nxp\s32ds_vision_v2.0\cross_tools\gcc-aarch64-linux-gnu-4_9\aarch64-linux-gnu\include\c++\4.9.3\bits\c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the \
^
In file included from d:\nxp\s32ds_vision_v2.0\cross_tools\gcc-aarch64-linux-gnu-4_9\aarch64-linux-gnu\include\c++\4.9.3\atomic:38:0,
from D:/NXP/workspaceS32DS.Vision.2.0/ProjectLinux/include/KernelController.h:7,
from ../src/KernelController.cpp:1:
d:\nxp\s32ds_vision_v2.0\cross_tools\gcc-aarch64-linux-gnu-4_9\aarch64-linux-gnu\include\c++\4.9.3\bits\c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the \
^
In file included from ../src/KernelController.cpp:1:0:
D:/NXP/workspaceS32DS.Vision.2.0/ProjectLinux/include/KernelController.h:16:41: fatal error: boost/property_tree/ptree.hpp: No such file or directory
#include <boost/property_tree/ptree.hpp>
^
compilation terminated.
In file included from d:\nxp\s32ds_vision_v2.0\cross_tools\gcc-aarch64-linux-gnu-4_9\aarch64-linux-gnu\include\c++\4.9.3\array:35:0,
from D:/NXP/workspaceS32DS.Vision.2.0/ProjectLinux/include/OpencvExtension.h:5,
from ../src/OpencvExtension.cpp:1:
d:\nxp\s32ds_vision_v2.0\cross_tools\gcc-aarch64-linux-gnu-4_9\aarch64-linux-gnu\include\c++\4.9.3\bits\c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the \
^
make: *** [src/subdir.mk:149: src/KernelController.o] Error 1

... ....

D:/NXP/workspaceS32DS.Vision.2.0/ProjectLinux/include/OpencvExtension.h:16:52: error: 'std::array' has not been declared
cv::Mat GammaCorrection(const cv::Mat &src, std::array<unsigned char, 256> &GammaLookTable);

0 Kudos