Toybrick

标题: rga 下载源码后编译不过 [打印本页]

作者: lily393    时间: 2020-11-23 17:43
标题: rga 下载源码后编译不过
想问下,是不适用于这个平台么???
平台:firefly  
下载后的设置:
SET(TOOLCHAIN_HOME "/usr/bin/")

# this is required
#SET(CMAKE_SYSTEM_NAME Linux)


# specify the cross compiler
SET(CMAKE_C_COMPILER /usr/bin/aarch64-linux-gnu-gcc)
SET(CMAKE_CXX_COMPILER /usr/bin/aarch64-linux-gnu-g++)
set(CMAKE_CXX_STANDARD 11)


# where is the target environment
SET(CMAKE_FIND_ROOT_PATH  ${TOOLCHAIN_HOME})

# search for programs in the build host directories (not necessary)
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# for libraries and headers in the target directories
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)




报的错:
[ 50%] Building CXX object CMakeFiles/rga.dir/core/NormalRgaApi.cpp.o
/home/firefly/rk3399/src/rga_develop/linux-rga-im2d/core/NormalRgaApi.cpp:326:32: error: ‘RECT_t’ has not been declared
                                RECT_t *clip,
                                ^
/home/firefly/rk3399/src/rga_develop/linux-rga-im2d/core/NormalRgaApi.cpp: In function ‘int NormalRgaSetDstVirtualInfo(rga_req*, long unsigned int, long unsigned int, long unsigned int, unsigned int, unsigned int, int*, unsigned int, unsigned char)’:
/home/firefly/rk3399/src/rga_develop/linux-rga-im2d/core/NormalRgaApi.cpp:344:28: error: request for member ‘xmin’ in ‘* clip’, which is of non-class type ‘int’
     msg->clip.xmin = clip->xmin;
                            ^
/home/firefly/rk3399/src/rga_develop/linux-rga-im2d/core/NormalRgaApi.cpp:345:28: error: request for member ‘xmax’ in ‘* clip’, which is of non-class type ‘int’
     msg->clip.xmax = clip->xmax;
                            ^
/home/firefly/rk3399/src/rga_develop/linux-rga-im2d/core/NormalRgaApi.cpp:346:28: error: request for member ‘ymin’ in ‘* clip’, which is of non-class type ‘int’
     msg->clip.ymin = clip->ymin;
                            ^
/home/firefly/rk3399/src/rga_develop/linux-rga-im2d/core/NormalRgaApi.cpp:347:28: error: request for member ‘ymax’ in ‘* clip’, which is of non-class type ‘int’
     msg->clip.ymax = clip->ymax;
                            ^



作者: lily393    时间: 2020-11-24 10:57
编过了,是我自己没配好




欢迎光临 Toybrick (https://t.rock-chips.com/) Powered by Discuz! X3.3