Paddle Lite-Error resolution: run run.sh based on Paddle Lite Demo to compile error and fail to run

run.sh error

Insert picture description here

Question one:

Insert picture description here

Error analysis

The aggregate'std::ifstream inFile' type is incomplete and cannot be defined.
Is the relationship between the header file.

Solution

Add in the code:

#include <fstream>
using namespace std;

Question two:

Insert picture description here

Error analysis

The CV code in the demo is based on the low version of opencv, and our board is equipped with a high version of CV, so you need to change these CV_XXXto just cv::COLOR_BGRA2RGB.
For example, my version is 4.4.0.

Insert picture description here

Solution

These need to CV_XXXbe changed cv::COLOR_BGRA2RGB, and follow the corresponding syntax error can be corrected.

Insert picture description here

Guess you like

Origin blog.csdn.net/qq_45779334/article/details/109907922