Toybrick

使用Debian10编译isp出现编译链接的错误

cr7jj

中级会员

积分
456
楼主
发表于 2020-3-4 09:44:40    查看: 8107|回复: 2 | [复制链接]    打印 | 只看该作者
TB-RK3399ProD Debian 系统  gcc  version (4:8.3.0-1).

sudo apt install rockchip-isp 安装isp库
使用编译链接-lcam_engine_cifisp -lcam_ia
gcc编译出现以下错误
  1. /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/8/../../../aarch64-linux-gnu/libcam_ia.so: undefined reference to `std::ostream::operator<<(int)'
  2. /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/8/../../../aarch64-linux-gnu/libcam_engine_cifisp.so: undefined reference to `__cxa_rethrow'
  3. /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/8/../../../aarch64-linux-gnu/libcam_engine_cifisp.so: undefined reference to `typeinfo for std::bad_weak_ptr'
  4. /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/8/../../../aarch64-linux-gnu/libcam_ia.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)'
复制代码

网上说是gcc新旧版本不兼容,编译链接错误
请问如何解决?




回复

使用道具 举报

jefferyzhang

版主

积分
12953
沙发
发表于 2020-3-4 14:39:53 | 只看该作者
你这是c++的代码,要用g++编译,不是gcc
回复

使用道具 举报

Ptolemaeus

中级会员

积分
205
板凳
发表于 2021-3-11 09:01:01 | 只看该作者
官方源里没有编译好的吗?
回复

使用道具 举报

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

本版积分规则

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


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