Toybrick

rga 下载源码后编译不过

lily393

注册会员

积分
56
楼主
发表于 2020-11-23 17:43:49    查看: 7194|回复: 1 | [复制链接]    打印 | 只看该作者
想问下,是不适用于这个平台么???
平台: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

注册会员

积分
56
沙发
 楼主| 发表于 2020-11-24 10:57:10 | 只看该作者
编过了,是我自己没配好
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表