|
地板
楼主 |
发表于 2022-1-24 16:01:55
|
只看该作者
src/CMakeFiles/easymedia.dir/c_api/rkmedia_api.cc.o
[ 90%] Building CXX object src/CMakeFiles/easymedia.dir/c_api/rkmedia_utils.cc.o
[ 93%] Building CXX object src/CMakeFiles/easymedia.dir/c_api/rkmedia_buffer.cc.o
[ 96%] Building CXX object src/CMakeFiles/easymedia.dir/c_api/osd/color_table.cc.o
/home/dc/rk356x_linux_210809/BSP/rkmedia-master2/rkmedia-master/src/c_api/osd/color_table.cc: In function ‘RK_U8 find_argb_color_tbl_by_order(const RK_U32*, RK_U32, RK_U32)’:
/home/dc/rk356x_linux_210809/BSP/rkmedia-master2/rkmedia-master/src/c_api/osd/color_table.cc:54:26: error: ‘abs’ was not declared in this scope
distance = abs(ap - a) + abs(rp - r) + abs(gp - g) + abs(bp - b);
^
/home/dc/rk356x_linux_210809/BSP/rkmedia-master2/rkmedia-master/src/c_api/osd/color_table.cc: In function ‘RK_U8 find_argb_color_tbl_by_dichotomy(const RK_U32*, RK_U32, RK_U32)’:
/home/dc/rk356x_linux_210809/BSP/rkmedia-master2/rkmedia-master/src/c_api/osd/color_table.cc:87:21: error: ‘abs’ was not declared in this scope
if (abs(delta0) > abs(delta1))
^
src/CMakeFiles/easymedia.dir/build.make:806: recipe for target 'src/CMakeFiles/easymedia.dir/c_api/osd/color_table.cc.o' failed
make[2]: *** [src/CMakeFiles/easymedia.dir/c_api/osd/color_table.cc.o] Error 1
CMakeFiles/Makefile2:105: recipe for target 'src/CMakeFiles/easymedia.dir/all' failed
make[1]: *** [src/CMakeFiles/easymedia.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2 |
|